summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-14 12:07:14 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-14 12:07:14 +0200
commit2f1aaca167aea1cd95e6bf4e17fe812a5a6975b6 (patch)
tree6f8845b6cbd002ae114ea4a19ce02d0803e28f9c /main
parent147e73732849eab3ff328135c8a4cf1af5fd08ec (diff)
parentd33e79f29976f523068cfd3cc2161f0995ff3ffe (diff)
downloadredot-engine-2f1aaca167aea1cd95e6bf4e17fe812a5a6975b6.tar.gz
Merge pull request #91927 from timothyqiu/monitor-names
Make performance monitor names translatable
Diffstat (limited to 'main')
-rw-r--r--main/performance.cpp66
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"),
};