diff options
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; |
