Improved performance of convex collision shapes, cache local AABB instead of recomputation. This fixes issue with very slow performance in larger .bsp levels.

Moved some asserts into 'btFullAssert', which is disabled by default (see btScalar.h to enable them). This is to speed-up debugging.
This commit is contained in:
ejcoumans
2007-02-26 04:59:05 +00:00
parent 559c4e85d8
commit b73900bc60
18 changed files with 102 additions and 21 deletions

View File

@@ -100,7 +100,9 @@ void UserCollisionAlgorithm::initPhysics()
delete[] gVertices;
btCollisionShape* trimeshShape = new btBvhTriangleMeshShape(trimesh);
bool useQuantizedBvhTree = false;
// btTriangleMesh uses a subpart for each triangle, this is not compatible with compressed quantized bvh node
btCollisionShape* trimeshShape = new btBvhTriangleMeshShape(trimesh,useQuantizedBvhTree);
//ConstraintSolver* solver = new btSequentialImpulseConstraintSolver;