mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 00:39:42 +00:00
Merge branch 'async_interp' into 'master'
Fix async physics interpolation Closes #5908 See merge request OpenMW/openmw!670
This commit is contained in:
commit
7831ba3d5d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
updateActorsPositions();
|
||||||
|
}
|
||||||
mNextJob.store(0, std::memory_order_release);
|
mNextJob.store(0, std::memory_order_release);
|
||||||
updateActorsPositions();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mPostSimBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
mPostSimBarrier = std::make_unique<Misc::Barrier>(mNumThreads, [&]()
|
||||||
|
|
Loading…
Reference in a new issue