Explorar o código

Fixed spinning at a very high framerate

Sam Lantinga %!s(int64=3) %!d(string=hai) anos
pai
achega
6bcf2c1521
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      test/testjoystick.c

+ 1 - 0
test/testjoystick.c

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