From 00da4d690af08d45788d770f9aadc9548438f074 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 26 Sep 2019 10:38:12 -0400 Subject: made Config static; added fps measure/text --- src/engine.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/engine.hpp') 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. -- cgit v1.2.3