mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 22:36:43 +00:00
Physics is not running while paused, so zero the stats for the async
thread instead of keeping whatever value was before the pause.
This commit is contained in:
parent
bc4047d815
commit
9d90e250cf
1 changed files with 7 additions and 0 deletions
|
@ -1861,6 +1861,13 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
doPhysics (duration, frameStart, frameNumber, stats);
|
doPhysics (duration, frameStart, frameNumber, stats);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// zero the async stats if we are paused
|
||||||
|
stats.setAttribute(frameNumber, "physicsworker_time_begin", 0);
|
||||||
|
stats.setAttribute(frameNumber, "physicsworker_time_taken", 0);
|
||||||
|
stats.setAttribute(frameNumber, "physicsworker_time_end", 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void World::updatePlayer()
|
void World::updatePlayer()
|
||||||
|
|
Loading…
Reference in a new issue