diff options
Diffstat (limited to 'src/engine.hpp')
-rw-r--r-- | src/engine.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/engine.hpp b/src/engine.hpp index ab6f16b..c2b3b58 100644 --- a/src/engine.hpp +++ b/src/engine.hpp @@ -36,19 +36,23 @@ private: entityx::EntityManager entities; entityx::SystemManager systems; + int fps; + std::thread logicThread; std::thread physicsThread; + std::thread debugThread; void logicLoop(void); void physicsLoop(void); - void renderLoop(void); + void renderLoop(int& fpsCounter); bool shouldRun(void); public: Engine(void) : entities(events), - systems(entities, events) {} + systems(entities, events), + fps(0) {} /** * Initializes the game engine. |