A Third-Person-Shooter Godot game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

9 lines
356 B

extends Label
func _process(_delta):
if Input.is_action_just_pressed("toggle_debug"):
visible = !visible
text = "FPS: " + str(Engine.get_frames_per_second())
text += "\nVSync: " + ("on" if ProjectSettings.get_setting("display/window/vsync/use_vsync") else "off")
text += "\nMemory: " + "%3.2f" % (OS.get_static_memory_usage() / 1048576.0) + " MiB"