parallel solver: small tweaks and fixes

This commit is contained in:
Lunkhound
2018-03-06 02:28:23 -08:00
parent 45fd4acf6e
commit eec478709a
4 changed files with 14 additions and 50 deletions

View File

@@ -940,7 +940,7 @@ void btSequentialImpulseConstraintSolverMt::solveGroupCacheFriendlySplitImpulseI
{
int iPhase = batchedCons.m_phaseOrder[ iiPhase ];
const btBatchedConstraints::Range& phase = batchedCons.m_phases[ iPhase ];
int grainSize = 8;
int grainSize = batchedCons.m_phaseGrainSize[iPhase];
leastSquaresResidual += btParallelSum( phase.begin, phase.end, grainSize, loop );
}
}