mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 19:19:41 +08:00
checkkeys: Sleeping for 100ms every frame makes the program too unresponsive.
Makes it feel like there's a bug in SDL's text input handling. 10ms is fine.
This commit is contained in:
+1
-1
@@ -434,7 +434,7 @@ static void loop(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Slow down framerate */
|
/* Slow down framerate */
|
||||||
SDL_Delay(100);
|
SDL_Delay(10);
|
||||||
|
|
||||||
#ifdef SDL_PLATFORM_EMSCRIPTEN
|
#ifdef SDL_PLATFORM_EMSCRIPTEN
|
||||||
if (done) {
|
if (done) {
|
||||||
|
|||||||
Reference in New Issue
Block a user