NcStudios / NcEngine

NcEngine: 3D game engine written in modern C++ and Vulkan
https://ncstudios.itch.io/
MIT License
36 stars 2 forks source link

StepTimer #612

Closed McCallisterRomer closed 2 months ago

McCallisterRomer commented 2 months ago

resolves #606, resolves #417

Replacing TimeModule with a StepTimer. Rather than having time calculation be a step in the update loop, things are inverted so time calculation conditionally fires the update loop. This allows setting a fixed time step for the whole loop, rather than just physics. It can still be set to a variable time step mode.

Since I was already updating Config with the new EngineSettings, I also put a thread count option in there to knock out #417.