Fix profiler frame number stops updating when window is minimized

This commit is contained in:
SkyJJ 2020-03-31 03:49:29 +02:00
parent dfed5efea3
commit c1ee20a05d
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ struct RemoteDebugger::ServersProfiler {
void _send_frame_data(bool p_final) { void _send_frame_data(bool p_final) {
DebuggerMarshalls::ServersProfilerFrame frame; DebuggerMarshalls::ServersProfilerFrame frame;
frame.frame_number = Engine::get_singleton()->get_frames_drawn(); frame.frame_number = Engine::get_singleton()->get_idle_frames();
frame.frame_time = frame_time; frame.frame_time = frame_time;
frame.idle_time = idle_time; frame.idle_time = idle_time;
frame.physics_time = physics_time; frame.physics_time = physics_time;