mirror of https://github.com/encounter/SDL.git
Don't spin as quickly as possible in the checkkeys rendering loop
This commit is contained in:
parent
89624485cc
commit
391dd0d94b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue