From 2383cfbb63668380db68a20999f2c1c6dcc4deb5 Mon Sep 17 00:00:00 2001 From: PickTheKiwi Date: Wed, 2 Jul 2025 06:49:35 +1200 Subject: [PATCH] Reformat info text --- game/test_ground.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/test_ground.gd b/game/test_ground.gd index 118e6b3..c2135cd 100644 --- a/game/test_ground.gd +++ b/game/test_ground.gd @@ -8,8 +8,8 @@ func _ready() -> void: # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: - $VBoxContainer/Fps.text = "FPS: " + str(Performance.get_monitor(Performance.TIME_FPS)) - $VBoxContainer/Frametime.text = "FrameTime: " + str(Engine.get_physics_interpolation_fraction()) - $VBoxContainer/PT.text = "Process time: "+ str(Performance.get_monitor(Performance.TIME_PROCESS)) - $VBoxContainer/VideoMemory.text ="Video memory Used: " + str(Performance.get_monitor(Performance.RENDER_VIDEO_MEM_USED)) + $VBoxContainer/Fps.text = "FPS: %s" % Performance.get_monitor(Performance.TIME_FPS) + $VBoxContainer/Frametime.text = "FrameTime: %s" % snapped(Engine.get_physics_interpolation_fraction(), 0.000001) + $VBoxContainer/PT.text = "Process time: %s ms" % snapped(Performance.get_monitor(Performance.TIME_PROCESS)*1000, 0.001) + $VBoxContainer/VideoMemory.text ="Video memory Used: %s MB" % snapped(Performance.get_monitor(Performance.RENDER_VIDEO_MEM_USED)/1024**2, 0.001) pass