You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Display CPU and GPU model name in the editor visual profiler
This shows the information from the remote device, which will typically differ from the local device in remote debugging scenarios.
This commit is contained in:
@@ -513,6 +513,10 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, uint64_t p_thread
|
||||
frame_data.write[i] = p_data[i];
|
||||
}
|
||||
performance_profiler->add_profile_frame(frame_data);
|
||||
} else if (p_msg == "visual:hardware_info") {
|
||||
const String cpu_name = p_data[0];
|
||||
const String gpu_name = p_data[1];
|
||||
visual_profiler->set_hardware_info(cpu_name, gpu_name);
|
||||
} else if (p_msg == "visual:profile_frame") {
|
||||
ServersDebugger::VisualProfilerFrame frame;
|
||||
frame.deserialize(p_data);
|
||||
|
||||
Reference in New Issue
Block a user