Fix paused frame overflow, thanks Rye!

This commit is contained in:
Lirusaito
2019-07-31 14:22:27 -04:00
parent aee0e75971
commit 2580ca7afd
13 changed files with 21 additions and 21 deletions

View File

@@ -56,8 +56,8 @@ struct LLFrameTimer
double mStartTime;
double mExpiry;
static double getCurrentTime(void);
static U32 sFrameCount;
static U32 getFrameCount() { return sFrameCount; }
static U64 sFrameCount;
static U64 getFrameCount() { return sFrameCount; }
F64 getStartTime() const { return mStartTime; }
void reset(double expiration) { mStartTime = getCurrentTime(); mExpiry = mStartTime + expiration; }
bool hasExpired(void) const { return getCurrentTime() > mExpiry; }
@@ -114,7 +114,7 @@ class LL_COMMON_API AISyncKey
{
private:
LLFrameTimer mFrameTimer; // This timer is started at the moment the sync key is created.
U32 mStartFrameCount; // The frame count at which the timer was started.
U64 mStartFrameCount; // The frame count at which the timer was started.
public:
// Constructor.