1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-16 16:10:58 +00:00

fix async physics interpolation

This commit is contained in:
wareya 2021-03-18 13:53:00 -04:00
parent 68c1adec0f
commit 1471ef003a

View File

@ -186,9 +186,11 @@ namespace MWPhysics
mPostStepBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
{
if (mRemainingSteps)
{
--mRemainingSteps;
mNextJob.store(0, std::memory_order_release);
updateActorsPositions();
}
mNextJob.store(0, std::memory_order_release);
});
mPostSimBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()