feat: add limit fps setting feature and fix close window in settings

This commit is contained in:
2025-12-12 14:20:31 +01:00
parent ae1349a0dc
commit a9d7a7ca74
6 changed files with 26 additions and 10 deletions
+5 -2
View File
@@ -56,8 +56,11 @@ void StartGame(App *app)
void UpdateGame(App *app)
{
GameState *g = &app->game;
SetTargetFPS(0);
if (app->flags.limitFPS){
SetTargetFPS(60);
} else {
SetTargetFPS(0);
}
StartGame(app);