deltatime

This commit is contained in:
2026-03-12 21:23:31 +01:00
parent 74159a6fda
commit 4c07694a25
7 changed files with 28 additions and 13 deletions

View File

@@ -9,6 +9,8 @@
#include <functional>
namespace Game {
using clock = std::chrono::steady_clock;
class GameManager {
public:
GameManager() { LOG("Created GameManager"); };
@@ -21,5 +23,6 @@ namespace Game {
int getTargetUpdatesPerSecond() { return mTargetUpdatesPerSecond; }
private:
int mTargetUpdatesPerSecond = 60;
clock::time_point mLastUpdate;
};
}