mirror of
https://github.com/godotengine/tps-demo.git
synced 2026-01-04 22:10:23 +03:00
10 lines
356 B
GDScript
10 lines
356 B
GDScript
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"
|