Quellcode durchsuchen

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.

(cherry picked from commit 7212ab1c2a12db7a81b1b13cc28e860cb9cfa138)
Ryan C. Gordon vor 2 Wochen
Ursprung
Commit
affc61cc5e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      test/checkkeys.c

+ 1 - 1
test/checkkeys.c

@@ -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) {