disable all debug printout

This commit is contained in:
jingyuc
2021-10-11 11:24:17 -04:00
parent 07cfa9a433
commit bd6e49bcc1
2 changed files with 3 additions and 11 deletions

View File

@@ -15,7 +15,6 @@
#include "btDeformableMultiBodyConstraintSolver.h"
#include <iostream>
#include <chrono>
#include <thread>
// override the iterations method to include deformable/multibody contact
btScalar btDeformableMultiBodyConstraintSolver::solveDeformableGroupIterations(btCollisionObject** bodies, int numBodies, btCollisionObject** deformableBodies, int numDeformableBodies, btPersistentManifold** manifoldPtr, int numManifolds, btTypedConstraint** constraints, int numConstraints, const btContactSolverInfo& infoGlobal, btIDebugDraw* debugDrawer)
@@ -42,11 +41,6 @@ btScalar btDeformableMultiBodyConstraintSolver::solveDeformableGroupIterations(b
// solver body velocity <- rigid body velocity
writeToSolverBody(bodies, numBodies, infoGlobal);
std::cout << "iter: " << iteration << "\tres: " << m_leastSquaresResidual << '\t';
std::cout << "------------------\n";
// std::cout << infoGlobal.m_leastSquaresResidualThreshold << '\n';
// std::cout << maxIterations << '\n';
if (m_leastSquaresResidual <= infoGlobal.m_leastSquaresResidualThreshold || (iteration >= (maxIterations - 1)))
{
#ifdef VERBOSE_RESIDUAL_PRINTF
@@ -66,8 +60,6 @@ btScalar btDeformableMultiBodyConstraintSolver::solveDeformableGroupIterations(b
break;
}
}
std::cout << "======next step=========\n";
// std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
return 0.f;
}