Give 1ms instead of 0, since 0 may not give any time at all. Let's see
if this helps keyboard lag. I could swear I tried this, but CVS says otherwise ...
This commit is contained in:
@@ -576,7 +576,7 @@ static void GameLoop()
|
|||||||
DISPLAY->Flip();
|
DISPLAY->Flip();
|
||||||
|
|
||||||
if(g_bHasFocus)
|
if(g_bHasFocus)
|
||||||
SDL_Delay( 0 ); // give some time to other processes and threads
|
SDL_Delay( 1 ); // give some time to other processes and threads
|
||||||
else
|
else
|
||||||
SDL_Delay( 10 );// 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