From eff34c523b4816bb06ffbc19e6d368cac35f538c Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 17 Oct 2023 16:49:31 -0400 Subject: large refactor for tick rate and handling vkPresentMode --- src/game-settings.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/game-settings.hpp') diff --git a/src/game-settings.hpp b/src/game-settings.hpp index a624bd6..cc20233 100644 --- a/src/game-settings.hpp +++ b/src/game-settings.hpp @@ -7,20 +7,23 @@ struct GameSettings { bool isGameRunning = true; bool isGamePaused = false; - bool isFramerateUnlocked = true; bool isShowingEditor = true; bool isRenderingDebug = false; std::chrono::steady_clock steadyClock; int64_t targetFPS = 144; int64_t minFPS = 20; - double deltaPerFrame = 1 / double(targetFPS); - double minimumDeltaPerFrame = 1 / double(minFPS); + double deltaPerFrame = 1.0 / double(targetFPS); + double minimumDeltaPerFrame = 1.0 / double(minFPS); struct { bool isShowingConsole = true; bool isShowingEntityList = true; bool isShowingSceneEditor = true; bool isShowingUBO = true; } editorSettings; + struct { + bool isFramerateUnlocked = false; + bool isWaitingForVsync = true; + } graphicsSettings; }; extern GameSettings pkeSettings; -- cgit v1.2.3