Fixed spinning at a very high framerate

main
Sam Lantinga 2022-09-02 15:06:49 -07:00
parent 47f2373dc1
commit 6bcf2c1521
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ loop(void *arg)
}
}
SDL_Delay(16);
SDL_RenderPresent(screen);
#ifdef __EMSCRIPTEN__