Commit 391dd0d94b625ae9f7edec2b7514a2f6ba9fb670

Sam Lantinga 2022-07-01T13:35:41

Don't spin as quickly as possible in the checkkeys rendering loop

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/test/checkkeys.c b/test/checkkeys.c
index 385b806..9167c5c 100644
--- a/test/checkkeys.c
+++ b/test/checkkeys.c
@@ -228,6 +228,9 @@ loop()
     SDLTest_TextWindowDisplay(textwin, renderer);
     SDL_RenderPresent(renderer);
 
+    /* Slow down framerate */
+    SDL_Delay(100);
+
 #ifdef __EMSCRIPTEN__
     if (done) {
         emscripten_cancel_main_loop();