diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-07 01:13:59 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-07 01:13:59 -0400 |
commit | b0d7712fa08aefa2694b629037eeed2c170b1eab (patch) | |
tree | 3cfc5f2c2d99426050fb01acb5e6c66da557a0c9 /src/engine.hpp | |
parent | 0976af2860bd48621ff1fa9481d6748b58ee9679 (diff) |
Added physics loop function that runs in it's own thread
Diffstat (limited to 'src/engine.hpp')
-rw-r--r-- | src/engine.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine.hpp b/src/engine.hpp index 26b1c45..ab6f16b 100644 --- a/src/engine.hpp +++ b/src/engine.hpp @@ -37,8 +37,10 @@ private: entityx::SystemManager systems; std::thread logicThread; + std::thread physicsThread; void logicLoop(void); + void physicsLoop(void); void renderLoop(void); bool shouldRun(void); |