From ea74eec6f852ac7cf8e4207ac0dd98714a6cc001 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Tue, 26 Mar 2024 22:23:50 -0500 Subject: [PATCH] Set VSync once the settings loads, since emscripten builds do not respect the vsync parameter at the very start of launching. --- Adventures in Lestoria/GameSettings.cpp | 1 + Adventures in Lestoria/TODO.txt | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Adventures in Lestoria/GameSettings.cpp b/Adventures in Lestoria/GameSettings.cpp index ebf1476b..a9b4dc78 100644 --- a/Adventures in Lestoria/GameSettings.cpp +++ b/Adventures in Lestoria/GameSettings.cpp @@ -150,6 +150,7 @@ void GameSettings::Initialize(){ if(loadSystemFile.HasProperty("VSync")){ GameSettings::SetVSync(loadSystemFile["VSync"].GetBool()); Component(SETTINGS,"VSync Checkbox")->SetChecked(loadSystemFile["VSync"].GetBool()); + game->SetVSync(GameSettings::VSyncEnabled()); } if(loadSystemFile.HasProperty("Controller Icons")){ const int maxIterations=10; diff --git a/Adventures in Lestoria/TODO.txt b/Adventures in Lestoria/TODO.txt index 64b27a3d..3dc25abf 100644 --- a/Adventures in Lestoria/TODO.txt +++ b/Adventures in Lestoria/TODO.txt @@ -1,7 +1,5 @@ Equip Gear using Start menu tutorial -Manual aim does not override movement choice. - ============================================ Make another actions config file for the main build (The app # is different) \ No newline at end of file