From 1471ef003a6110c21fb1f76e057aea11c4664821 Mon Sep 17 00:00:00 2001 From: wareya Date: Thu, 18 Mar 2021 13:53:00 -0400 Subject: [PATCH] fix async physics interpolation --- apps/openmw/mwphysics/mtphysics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwphysics/mtphysics.cpp b/apps/openmw/mwphysics/mtphysics.cpp index 2b0db5b82..1fa6251f8 100644 --- a/apps/openmw/mwphysics/mtphysics.cpp +++ b/apps/openmw/mwphysics/mtphysics.cpp @@ -186,9 +186,11 @@ namespace MWPhysics mPostStepBarrier = std::make_unique(mNumThreads, [&]() { if (mRemainingSteps) + { --mRemainingSteps; + updateActorsPositions(); + } mNextJob.store(0, std::memory_order_release); - updateActorsPositions(); }); mPostSimBarrier = std::make_unique(mNumThreads, [&]()