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

This commit is contained in:
Sam Lantinga 2022-07-01 13:35:41 -07:00
parent 89624485cc
commit 391dd0d94b
1 changed files with 3 additions and 0 deletions

View File

@ -228,6 +228,9 @@ loop()
SDLTest_TextWindowDisplay(textwin, renderer); SDLTest_TextWindowDisplay(textwin, renderer);
SDL_RenderPresent(renderer); SDL_RenderPresent(renderer);
/* Slow down framerate */
SDL_Delay(100);
#ifdef __EMSCRIPTEN__ #ifdef __EMSCRIPTEN__
if (done) { if (done) {
emscripten_cancel_main_loop(); emscripten_cancel_main_loop();