mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +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:
parent
0f5f3bc954
commit
3e8a24d0da
4 changed files with 22 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue