deltatime window
This commit is contained in:
@@ -25,6 +25,7 @@ namespace Game {
|
||||
void run(std::stop_token stopToken);
|
||||
void setTargetUpdatesPerSecond(int target) { mTargetUpdatesPerSecond = target; }
|
||||
int getTargetUpdatesPerSecond() { return mTargetUpdatesPerSecond; }
|
||||
float getLastDelta() { return mLastDelta; }
|
||||
|
||||
static void setSharedData(const std::string& key, std::string data);
|
||||
static std::string getSharedData(const std::string& key);
|
||||
@@ -34,5 +35,6 @@ namespace Game {
|
||||
int mTargetUpdatesPerSecond = TARGET_UPDATE_RATE;
|
||||
clock::time_point mLastUpdate;
|
||||
static std::unordered_map<std::string, std::string> mSharedStrings;
|
||||
float mLastDelta = 0.f;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user