diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-05-14 09:35:25 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-05-14 10:05:32 +0800 |
commit | d33e79f29976f523068cfd3cc2161f0995ff3ffe (patch) | |
tree | 9a380baaafe703054c327077f8bd8f193a8b3906 /main | |
parent | 557f63d03796db78255f055b6d06cb5f9195ff7e (diff) | |
download | redot-engine-d33e79f29976f523068cfd3cc2161f0995ff3ffe.tar.gz |
Make performance monitor names translatable
Diffstat (limited to 'main')
-rw-r--r-- | main/performance.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/main/performance.cpp b/main/performance.cpp index 9d4e2ae9d5..8eda697b16 100644 --- a/main/performance.cpp +++ b/main/performance.cpp @@ -106,41 +106,41 @@ int Performance::_get_node_count() const { String Performance::get_monitor_name(Monitor p_monitor) const { ERR_FAIL_INDEX_V(p_monitor, MONITOR_MAX, String()); static const char *names[MONITOR_MAX] = { - "time/fps", - "time/process", - "time/physics_process", - "time/navigation_process", - "memory/static", - "memory/static_max", - "memory/msg_buf_max", - "object/objects", - "object/resources", - "object/nodes", - "object/orphan_nodes", - "raster/total_objects_drawn", - "raster/total_primitives_drawn", - "raster/total_draw_calls", - "video/video_mem", - "video/texture_mem", - "video/buffer_mem", - "physics_2d/active_objects", - "physics_2d/collision_pairs", - "physics_2d/islands", + PNAME("time/fps"), + PNAME("time/process"), + PNAME("time/physics_process"), + PNAME("time/navigation_process"), + PNAME("memory/static"), + PNAME("memory/static_max"), + PNAME("memory/msg_buf_max"), + PNAME("object/objects"), + PNAME("object/resources"), + PNAME("object/nodes"), + PNAME("object/orphan_nodes"), + PNAME("raster/total_objects_drawn"), + PNAME("raster/total_primitives_drawn"), + PNAME("raster/total_draw_calls"), + PNAME("video/video_mem"), + PNAME("video/texture_mem"), + PNAME("video/buffer_mem"), + PNAME("physics_2d/active_objects"), + PNAME("physics_2d/collision_pairs"), + PNAME("physics_2d/islands"), #ifndef _3D_DISABLED - "physics_3d/active_objects", - "physics_3d/collision_pairs", - "physics_3d/islands", + PNAME("physics_3d/active_objects"), + PNAME("physics_3d/collision_pairs"), + PNAME("physics_3d/islands"), #endif // _3D_DISABLED - "audio/driver/output_latency", - "navigation/active_maps", - "navigation/regions", - "navigation/agents", - "navigation/links", - "navigation/polygons", - "navigation/edges", - "navigation/edges_merged", - "navigation/edges_connected", - "navigation/edges_free", + PNAME("audio/driver/output_latency"), + PNAME("navigation/active_maps"), + PNAME("navigation/regions"), + PNAME("navigation/agents"), + PNAME("navigation/links"), + PNAME("navigation/polygons"), + PNAME("navigation/edges"), + PNAME("navigation/edges_merged"), + PNAME("navigation/edges_connected"), + PNAME("navigation/edges_free"), }; |