瀏覽代碼

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.
Ryan C. Gordon 1 周之前
父節點
當前提交
7212ab1c2a
共有 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 */
-    SDL_Delay(100);
+    SDL_Delay(10);
 
 #ifdef SDL_PLATFORM_EMSCRIPTEN
     if (done) {