Browse Source

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

Sam Lantinga 3 years ago
parent
commit
391dd0d94b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/checkkeys.c

+ 3 - 0
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();