aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-02 21:23:11 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:00 +0200
commitab0f67d0716826002a76f8f797e337940f2162a5 (patch)
tree0a3277a332b55eb54679eac4301236718c113f02 /src
parent3cac7f33284df2a556f3dc367efe74f60aec3d8e (diff)
perf: decrease update speeds
Diffstat (limited to 'src')
-rw-r--r--src/engine/engine.hpp2
-rw-r--r--src/game/game.hpp2
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
{