From 6bcf2c152156989e419f76c3f2d716bdcf5c546d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 2 Sep 2022 15:06:49 -0700 Subject: [PATCH] Fixed spinning at a very high framerate --- test/testjoystick.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testjoystick.c b/test/testjoystick.c index db9a3a156..91d02de5b 100644 --- a/test/testjoystick.c +++ b/test/testjoystick.c @@ -259,6 +259,7 @@ loop(void *arg) } } + SDL_Delay(16); SDL_RenderPresent(screen); #ifdef __EMSCRIPTEN__