mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 16:15:31 +00:00
fix async physics interpolation
This commit is contained in:
parent
68c1adec0f
commit
1471ef003a
1 changed files with 3 additions and 1 deletions
|
@ -186,9 +186,11 @@ namespace MWPhysics
|
|||
mPostStepBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
||||
{
|
||||
if (mRemainingSteps)
|
||||
{
|
||||
--mRemainingSteps;
|
||||
updateActorsPositions();
|
||||
}
|
||||
mNextJob.store(0, std::memory_order_release);
|
||||
updateActorsPositions();
|
||||
});
|
||||
|
||||
mPostSimBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
||||
|
|
Loading…
Reference in a new issue