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:
@@ -370,6 +370,12 @@ class ServersDebugger::VisualProfiler : public EngineProfiler {
|
||||
public:
|
||||
void toggle(bool p_enable, const Array &p_opts) {
|
||||
RS::get_singleton()->set_frame_profiling_enabled(p_enable);
|
||||
|
||||
// Send hardware information from the remote device so that it's accurate for remote debugging.
|
||||
Array hardware_info;
|
||||
hardware_info.push_back(OS::get_singleton()->get_processor_name());
|
||||
hardware_info.push_back(RenderingServer::get_singleton()->get_video_adapter_name());
|
||||
EngineDebugger::get_singleton()->send_message("visual:hardware_info", hardware_info);
|
||||
}
|
||||
|
||||
void add(const Array &p_data) {}
|
||||
|
||||
Reference in New Issue
Block a user