Bugfix: TimeInfo objects were missing for substeps, resulting in
very stuttering game play.
This commit is contained in:
parent
4bd7848431
commit
c0333fe0f7
@ -311,6 +311,16 @@ void MainLoop::run()
|
|||||||
|
|
||||||
for(int i=0; i<num_steps; i++)
|
for(int i=0; i<num_steps; i++)
|
||||||
{
|
{
|
||||||
|
// Create the TimeStepInfo structure. For the first iteration
|
||||||
|
// this is done before the irr_driver update (since this needs
|
||||||
|
// to store input events at the event), but for any further
|
||||||
|
// substep another TimeStepInfo needs to be created here.
|
||||||
|
if (World::getWorld() && RewindManager::get()->isEnabled() && i>0)
|
||||||
|
{
|
||||||
|
RewindManager::get()
|
||||||
|
->addNextTimeStep(World::getWorld()->getTime(), dt);
|
||||||
|
}
|
||||||
|
|
||||||
// Enable last substep in last iteration
|
// Enable last substep in last iteration
|
||||||
m_is_last_substep = (i == num_steps - 1);
|
m_is_last_substep = (i == num_steps - 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user