give a bit more time when we don't have focus
This commit is contained in:
@@ -594,6 +594,6 @@ static void GameLoop()
|
|||||||
if(g_bHasFocus)
|
if(g_bHasFocus)
|
||||||
SDL_Delay( 0 ); // give some time to other processes and threads
|
SDL_Delay( 0 ); // give some time to other processes and threads
|
||||||
else
|
else
|
||||||
SDL_Delay( 5 ); // give some time to other processes and threads
|
SDL_Delay( 10 );// give some time to other processes and threads
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user