Merge branch 'GoaLitiuM-fix_editor_sleep' into 1.6

This commit is contained in:
Wojtek Figat
2023-04-04 17:57:53 +02:00

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;
}