diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-10-17 16:49:31 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-10-17 16:49:31 -0400 |
| commit | eff34c523b4816bb06ffbc19e6d368cac35f538c (patch) | |
| tree | 26678623a8b854c99598da149e14e183087e9670 /src/game-settings.hpp | |
| parent | f5917baf1f3f7f1766ae3730727f83f7a708439c (diff) | |
large refactor for tick rate and handling vkPresentMode
Diffstat (limited to 'src/game-settings.hpp')
| -rw-r--r-- | src/game-settings.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
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; |
