Cache verified customMsTickRate
The `customTickRateMs()` function is being called every millisecond, adding the verification to every call leads to unnecessary overhead. The tick rate is verified when loading and when saving.
This commit is contained in:
@@ -144,6 +144,7 @@ private:
|
||||
uint64_t m_lastFrame = 0;
|
||||
int m_vsyncTooLateCounter = 0;
|
||||
int m_customTickRateCounter = 0;
|
||||
int m_verifiedCustomTickRateMs = 0;
|
||||
|
||||
input::SteamIVRInput m_actions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user