diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-02 21:23:11 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:00 +0200 |
commit | ab0f67d0716826002a76f8f797e337940f2162a5 (patch) | |
tree | 0a3277a332b55eb54679eac4301236718c113f02 /src | |
parent | 3cac7f33284df2a556f3dc367efe74f60aec3d8e (diff) |
perf: decrease update speeds
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/engine.hpp | 2 | ||||
-rw-r--r-- | 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 <memory> #include <unordered_map> -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 <list> #include <memory> -constexpr auto GENERATION_UPDATE_SPEED_MILLIS = 1000; +constexpr auto GENERATION_UPDATE_SPEED_MILLIS = 200; class Game : public IGame { |