Fix #6477 by sleeping for 16ms when minimized.

This commit is contained in:
Sacha 2014-07-01 13:29:39 +10:00
parent c0e6f26bb5
commit 86284aa91a

View File

@ -135,8 +135,10 @@ void UpdateScreenScale(int width, int height) {
}
void UpdateRunLoop() {
if (windowHidden)
if (windowHidden) {
sleep_ms(16);
return;
}
NativeUpdate(input_state);
{
@ -174,7 +176,7 @@ void Core_RunLoop() {
time_update();
UpdateRunLoop();
#if defined(USING_WIN_UI)
if (!Core_IsStepping()) {
if (!windowHidden && !Core_IsStepping()) {
GL_SwapBuffers();
}
#endif