Fixed spinning rendering too fast

main
Sam Lantinga 2023-01-02 16:04:08 -08:00
parent e3c1749f5b
commit b06e310c08
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ void loop()
menurect.h = viewport.h - y; menurect.h = viewport.h - y;
draw_modes_menu(window, renderer, menurect); draw_modes_menu(window, renderer, menurect);
SDL_Delay(16);
SDL_RenderPresent(renderer); SDL_RenderPresent(renderer);
} }
} }