removed some profiling in the innerloop, it hurts performance
This commit is contained in:
@@ -435,6 +435,7 @@ btScalar btSequentialImpulseConstraintSolver::solveGroupCacheFriendlySetup(btCol
|
|||||||
(void)stackAlloc;
|
(void)stackAlloc;
|
||||||
(void)debugDrawer;
|
(void)debugDrawer;
|
||||||
|
|
||||||
|
|
||||||
if (!(numConstraints + numManifolds))
|
if (!(numConstraints + numManifolds))
|
||||||
{
|
{
|
||||||
// printf("empty\n");
|
// printf("empty\n");
|
||||||
@@ -774,7 +775,6 @@ btScalar btSequentialImpulseConstraintSolver::solveGroupCacheFriendlyIterations(
|
|||||||
|
|
||||||
for (j=0;j<numConstraints;j++)
|
for (j=0;j<numConstraints;j++)
|
||||||
{
|
{
|
||||||
BT_PROFILE("solveConstraint");
|
|
||||||
btTypedConstraint* constraint = constraints[j];
|
btTypedConstraint* constraint = constraints[j];
|
||||||
///todo: use solver bodies, so we don't need to copy from/to btRigidBody
|
///todo: use solver bodies, so we don't need to copy from/to btRigidBody
|
||||||
|
|
||||||
@@ -801,7 +801,6 @@ btScalar btSequentialImpulseConstraintSolver::solveGroupCacheFriendlyIterations(
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
BT_PROFILE("resolveSingleCollisionCombinedCacheFriendly");
|
|
||||||
int numPoolConstraints = m_tmpSolverConstraintPool.size();
|
int numPoolConstraints = m_tmpSolverConstraintPool.size();
|
||||||
for (j=0;j<numPoolConstraints;j++)
|
for (j=0;j<numPoolConstraints;j++)
|
||||||
{
|
{
|
||||||
@@ -813,7 +812,6 @@ btScalar btSequentialImpulseConstraintSolver::solveGroupCacheFriendlyIterations(
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
BT_PROFILE("resolveSingleFrictionCacheFriendly");
|
|
||||||
int numFrictionPoolConstraints = m_tmpSolverFrictionConstraintPool.size();
|
int numFrictionPoolConstraints = m_tmpSolverFrictionConstraintPool.size();
|
||||||
|
|
||||||
for (j=0;j<numFrictionPoolConstraints;j++)
|
for (j=0;j<numFrictionPoolConstraints;j++)
|
||||||
|
|||||||
Reference in New Issue
Block a user