OBT/1.0.14
Fixed parallelism count issue Added SingleThreadWorker to handle single-thread related works Fixed incorrect order when updating gaps Potentially Fixed #39
This commit is contained in:
@@ -681,12 +681,12 @@ namespace Barotrauma
|
||||
{
|
||||
// if crashed, go ask the god damn physics engine :(
|
||||
var shuffledGaps = gapList.OrderBy(g => Rand.Int(int.MaxValue)).ToList();
|
||||
Parallel.ForEach(gapList, parallelOptions, gap =>
|
||||
Parallel.ForEach(shuffledGaps, parallelOptions, gap =>
|
||||
{
|
||||
gap.ResetWaterFlowThisFrame();
|
||||
gap.Update(deltaTime, cam);
|
||||
});
|
||||
FarseerPhysics.Dynamics.Body.QueueDisable();
|
||||
SingleThreadWorker.GlobalWorker.RunActions();
|
||||
},
|
||||
// Powered components update
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user