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:
parent
68c1adec0f
commit
1471ef003a
@ -186,9 +186,11 @@ namespace MWPhysics
|
|||||||
mPostStepBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
mPostStepBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
||||||
{
|
{
|
||||||
if (mRemainingSteps)
|
if (mRemainingSteps)
|
||||||
|
{
|
||||||
--mRemainingSteps;
|
--mRemainingSteps;
|
||||||
mNextJob.store(0, std::memory_order_release);
|
|
||||||
updateActorsPositions();
|
updateActorsPositions();
|
||||||
|
}
|
||||||
|
mNextJob.store(0, std::memory_order_release);
|
||||||
});
|
});
|
||||||
|
|
||||||
mPostSimBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
mPostSimBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
||||||
|
Loading…
Reference in New Issue
Block a user