This commit is contained in:
NotAlwaysTrue
2025-12-28 13:02:31 +08:00
parent 559aeb3c3f
commit 42af6f2ec0
2 changed files with 5 additions and 8 deletions
@@ -655,13 +655,13 @@ namespace Barotrauma
// First phase: parallel updates that have no order dependencies
Parallel.Invoke(parallelOptions,
// Hull parallel update
() =>
{
Parallel.ForEach(hullList, parallelOptions, hull =>
// basically nothing here is thread-safe so
foreach(var hull in hullList)
{
hull.Update(deltaTime, cam);
});
}
},
// Structure parallel update
() =>