浏览代码

Fixed spinning at a very high framerate

Sam Lantinga 4 年之前
父节点
当前提交
6bcf2c1521
共有 1 个文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      test/testjoystick.c

+ 1 - 0
test/testjoystick.c

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