From a5bf6a12549e1b40428b25f72acf209ed445a369 Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Tue, 13 Feb 2007 16:47:04 +0000 Subject: [PATCH] use solvermode 'randomized' and not warmstarting --- Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp b/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp index 176c76239..28cc841c6 100644 --- a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp +++ b/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp @@ -318,6 +318,9 @@ void CcdPhysicsDemo::initPhysics() #else //default constraint solver btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver; + //default solverMode is SOLVER_RANDMIZE_ORDER. Warmstarting seems not to improve convergence, see + //solver->setSolverMode(btSequentialImpulseConstraintSolver::SOLVER_USE_WARMSTARTING | btSequentialImpulseConstraintSolver::SOLVER_RANDMIZE_ORDER); + #endif