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:
Hugo Locurcio 2024-11-11 19:51:54 +01:00
parent 0f5f3bc954
commit 3e8a24d0da
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
4 changed files with 22 additions and 2 deletions

View file

@ -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);