- minor adjustments

This commit is contained in:
Magnus Norddahl 2019-03-17 21:14:51 +01:00
commit 40ee32a0ce
8 changed files with 30 additions and 17 deletions

View file

@ -583,12 +583,4 @@ bool FGLRenderState::SetDepthClamp(bool on)
return res;
}
void FGLRenderState::CheckTimer(uint64_t ShaderStartTime)
{
// if firstFrame is not yet initialized, initialize it to current time
// if we're going to overflow a float (after ~4.6 hours, or 24 bits), re-init to regain precision
if ((firstFrame == 0) || (screen->FrameTime - firstFrame >= 1 << 24) || ShaderStartTime >= firstFrame)
firstFrame = screen->FrameTime;
}
}