ソースを参照

Reduce CPU usage in testgamecontroller

Sam Lantinga 3 年 前
コミット
0687128c96
1 ファイル変更1 行追加1 行削除
  1. 1 1
      test/testgamecontroller.c

+ 1 - 1
test/testgamecontroller.c

@@ -508,7 +508,7 @@ loop(void *arg)
             }
         }
     }
-
+    SDL_Delay(16);
     SDL_RenderPresent(screen);
 
 #ifdef __EMSCRIPTEN__