# HG changeset patch # User Cameron Gutman # Date 1541285202 25200 # Sat Nov 03 15:46:42 2018 -0700 # Node ID f3b3d8fc86cc1e5128acf07b9ccc77808f3d8593 # Parent ca6e41ade79a464964aa369c88bfb8a8e8105768 Reduce delay to 1 ms in SDL_WaitEventTimeout() and SDL_WaitEvent() The 10 ms delay effectively caps input polling at 100 Hz and rendering at 100 FPS if applications use these functions in their event loop. The delay may also lead to dropped frames even at 60 FPS due if they are unlucky enough to hit the delay and rendering takes longer than 6 ms. diff -r ca6e41ade79a -r f3b3d8fc86cc src/events/SDL_events.c --- a/src/events/SDL_events.c Fri Nov 02 21:34:17 2018 -0400 +++ b/src/events/SDL_events.c Sat Nov 03 15:46:42 2018 -0700 @@ -705,7 +705,7 @@ /* Timeout expired and no events */ return 0; } - SDL_Delay(10); + SDL_Delay(1); break; default: /* Has events */