Add memory usage to the Voxel demo

This commit is contained in:
Aaron Franke
2020-07-08 13:26:28 -04:00
parent 2434876738
commit bd05e88ce0

View File

@@ -12,6 +12,7 @@ func _process(_delta):
text = "Position: " + _vector_to_string_appropriate_digits(player.transform.origin)
text += "\nEffective render distance: " + str(voxel_world.effective_render_distance)
text += "\nLooking: " + _cardinal_string_from_radians(player.transform.basis.get_euler().y)
text += "\nMemory: " + "%3.0f" % (OS.get_static_memory_usage() / 1048576.0) + " MiB"
text += "\nFPS: " + str(Engine.get_frames_per_second())