deltatime
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user