add debug fastforward
This commit is contained in:
@@ -51,8 +51,8 @@ float ClientSimulation::Update(float a_Delta) {
|
||||
// TODO: handle freezes (m_CurrentTime > 2 * m_StepTime)
|
||||
static const float stepTimeSecond = static_cast<float>(m_StepTime) / 1000.0f;
|
||||
m_CurrentTime += a_Delta;
|
||||
if (m_CurrentTime > stepTimeSecond) {
|
||||
m_CurrentTime = std::fmod(m_CurrentTime, stepTimeSecond);
|
||||
while (m_CurrentTime > stepTimeSecond) {
|
||||
m_CurrentTime -= stepTimeSecond;
|
||||
Step();
|
||||
}
|
||||
return (float)m_CurrentTime / stepTimeSecond;
|
||||
|
||||
Reference in New Issue
Block a user