Reduce dynamic memory allocation, fixes Issue 573

Thanks to Anton Breusov for the patch
This commit is contained in:
erwin.coumans
2011-12-12 16:47:41 +00:00
parent 665829bd81
commit 606d65d95b
4 changed files with 182 additions and 164 deletions

View File

@@ -27,6 +27,8 @@ class btTypedConstraint;
class btActionInterface;
class btIDebugDraw;
struct InplaceSolverIslandCallback;
#include "LinearMath/btAlignedObjectArray.h"
@@ -35,6 +37,9 @@ class btIDebugDraw;
class btDiscreteDynamicsWorld : public btDynamicsWorld
{
protected:
btAlignedObjectArray<btTypedConstraint*> m_sortedConstraints;
InplaceSolverIslandCallback* m_solverIslandCallback;
btConstraintSolver* m_constraintSolver;