Remove extra sleep when Editor is not focused

The engine is already sleeping the extra time between frames
This commit is contained in:
2023-03-26 13:06:05 +03:00
parent 809a1041b3
commit c505561118

View File

@@ -696,12 +696,6 @@ void EditorImpl::OnUpdate()
// Boost our priority back to normal
Platform::SetThreadPriority(ThreadPriority::Normal);
}
if (!hasFocus)
{
// Sleep for a bit to not eat up all CPU time
PROFILE_CPU_NAMED("Sleep");
Platform::Sleep(5);
}
HasFocus = hasFocus;
}