Skip to content

Commit

Permalink
Merge pull request #497 from aaronfranke/voxel-memory
Browse files Browse the repository at this point in the history
Add memory usage to the Voxel demo
  • Loading branch information
aaronfranke authored Jul 9, 2020
2 parents 2434876 + bd05e88 commit 8d9d58f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 3d/voxel/menu/debug.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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())


Expand Down

0 comments on commit 8d9d58f

Please sign in to comment.