Преглед изворни кода

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 пре 2 недеља
родитељ
комит
ec65d10e07
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {