From 391dd0d94b625ae9f7edec2b7514a2f6ba9fb670 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 1 Jul 2022 13:35:41 -0700 Subject: [PATCH] Don't spin as quickly as possible in the checkkeys rendering loop --- test/checkkeys.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/checkkeys.c b/test/checkkeys.c index 385b80629..9167c5c0a 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();