delay more if we don't have focus

This commit is contained in:
Glenn Maynard
2003-02-28 08:44:52 +00:00
parent 2be3ec534c
commit 0918725cc1
+1 -1
View File
@@ -591,6 +591,6 @@ static void GameLoop()
if(g_bHasFocus)
SDL_Delay( 0 ); // give some time to other processes and threads
else
SDL_Delay( 2 ); // give more time to other processes and threads, but not so much that we skip sound
SDL_Delay( 5 ); // give some time to other processes and threads
}
}