1
0
Fork 0

Spectre/Game/GameTime: remove useless m_inLoop variable.

This commit is contained in:
Henrik Hautakoski 2020-12-16 16:39:06 +01:00
parent d49d91a294
commit ed876ca64d
2 changed files with 2 additions and 9 deletions

View file

@ -29,14 +29,10 @@ Time GameTime::getElapsed() const
bool GameTime::beginFrame()
{
m_inLoop = false;
accumulateTime();
if (m_acc > m_slice) {
m_inLoop = true;
}
return m_inLoop;
// Signal if we should tick
return m_acc > m_slice;
}
bool GameTime::tick()
@ -51,7 +47,6 @@ bool GameTime::tick()
void GameTime::reset()
{
m_watch.restart();
m_inLoop = false;
}
void GameTime::accumulateTime()