Merge branch 'async_interp' into 'master'

Fix async physics interpolation

Closes #5908

See merge request OpenMW/openmw!670
pull/593/head
AnyOldName3 4 years ago
commit 7831ba3d5d

@ -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…
Cancel
Save