Commit 6bcf2c152156989e419f76c3f2d716bdcf5c546d

Sam Lantinga 2022-09-02T15:06:49

Fixed spinning at a very high framerate

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/test/testjoystick.c b/test/testjoystick.c
index db9a3a1..91d02de 100644
--- a/test/testjoystick.c
+++ b/test/testjoystick.c
@@ -259,6 +259,7 @@ loop(void *arg)
         }
     }
 
+    SDL_Delay(16);
     SDL_RenderPresent(screen);
 
 #ifdef __EMSCRIPTEN__