1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Allow custom monitors to select desired type

This commit is contained in:
devloglogan
2025-09-09 21:34:22 -05:00
parent 9cd297b6f2
commit 1a8306bbc1
9 changed files with 151 additions and 28 deletions

View File

@@ -62,11 +62,16 @@ public:
last_perf_time = pt;
Array custom_monitor_names = performance->call("get_custom_monitor_names");
Array custom_monitor_types = performance->call("get_custom_monitor_types");
Array custom_monitor_data;
custom_monitor_data.push_back(custom_monitor_names);
custom_monitor_data.push_back(custom_monitor_types);
uint64_t monitor_modification_time = performance->call("get_monitor_modification_time");
if (monitor_modification_time > last_monitor_modification_time) {
last_monitor_modification_time = monitor_modification_time;
EngineDebugger::get_singleton()->send_message("performance:profile_names", custom_monitor_names);
EngineDebugger::get_singleton()->send_message("performance:profile_names", custom_monitor_data);
}
int max = performance->get("MONITOR_MAX");