aboutsummaryrefslogtreecommitdiff
path: root/main/performance.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2017-07-25 02:29:28 +0200
committerPedro J. Estébanez2017-08-01 01:50:56 +0200
commit3ad68c282ec423080a3e3958b187aaf2e48297c5 (patch)
tree20ffecfbbc550804d60191b8c7561d439a9d8c53 /main/performance.cpp
parent85088275c5e6db63755e8dfd23d5f53d2d5c96ef (diff)
downloadgodot-3ad68c282ec423080a3e3958b187aaf2e48297c5.tar.gz
godot-3ad68c282ec423080a3e3958b187aaf2e48297c5.tar.zst
godot-3ad68c282ec423080a3e3958b187aaf2e48297c5.zip
Diffstat (limited to 'main/performance.cpp')
-rw-r--r--main/performance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/performance.cpp b/main/performance.cpp
index c819e15f7..3d8e21bf3 100644
--- a/main/performance.cpp
+++ b/main/performance.cpp
@@ -117,8 +117,8 @@ float Performance::get_monitor(Monitor p_monitor) const {
case TIME_FIXED_PROCESS: return _fixed_process_time;
case MEMORY_STATIC: return Memory::get_mem_usage();
case MEMORY_DYNAMIC: return MemoryPool::total_memory;
- case MEMORY_STATIC_MAX: return MemoryPool::max_memory;
- case MEMORY_DYNAMIC_MAX: return 0;
+ case MEMORY_STATIC_MAX: return Memory::get_mem_max_usage();
+ case MEMORY_DYNAMIC_MAX: return MemoryPool::max_memory;
case MEMORY_MESSAGE_BUFFER_MAX: return MessageQueue::get_singleton()->get_max_buffer_usage();
case OBJECT_COUNT: return ObjectDB::get_object_count();
case OBJECT_RESOURCE_COUNT: return ResourceCache::get_cached_resource_count();