LeveController delta time limited to 200 ms

This commit is contained in:
MihailRis 2024-05-25 10:17:55 +03:00
parent 43903bb378
commit e8a703f814

View File

@ -146,7 +146,7 @@ void LevelScreen::update(float delta) {
controller->getLevel()->getWorld()->updateTimers(delta);
animator->update(delta);
}
controller->update(delta, !inputLocked, hud->isPause());
controller->update(glm::min(delta, 0.2f), !inputLocked, hud->isPause());
hud->update(hudVisible);
}