Explorar el Código

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

Sam Lantinga hace 3 años
padre
commit
391dd0d94b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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();