From ab0f67d0716826002a76f8f797e337940f2162a5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 2 Jun 2022 21:23:11 +0200 Subject: perf: decrease update speeds --- src/engine/engine.hpp | 2 +- src/game/game.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/engine.hpp b/src/engine/engine.hpp index 4fb4707..1562bbb 100644 --- a/src/engine/engine.hpp +++ b/src/engine/engine.hpp @@ -11,7 +11,7 @@ #include #include -constexpr auto MIN_TIME_SINCE_LAST_UPDATE_MILLIS = 40; +constexpr auto MIN_TIME_SINCE_LAST_UPDATE_MILLIS = 20; class CLIGameEngine : public ICLIGameEngine, public yacppdic::AutoWirable< diff --git a/src/game/game.hpp b/src/game/game.hpp index d29f4b6..7e43c7c 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -16,7 +16,7 @@ #include #include -constexpr auto GENERATION_UPDATE_SPEED_MILLIS = 1000; +constexpr auto GENERATION_UPDATE_SPEED_MILLIS = 200; class Game : public IGame { -- cgit v1.2.3-18-g5258