How much slower are meshes than primitives when they are static?
I would like to know because I am trying to decide if I should make maps with lots of btBoxShapes or just a single btBvhTriangleMeshShape.
Thanks,
Qcrist
Speed of btBoxShapes vs btBvhTriangleMeshShape
-
- Posts: 225
- Joined: Wed Jan 07, 2009 11:43 am
- Location: London
Re: Speed of btBoxShapes vs btBvhTriangleMeshShape
Hard to tell without testing really, will depend on your map.
Individual boxshapes would get culled at broadphase level where as a single BVHMesh would always collide at that point. But BvhTriangleMesh is pretty efficient in the narrowphase anyway. You could of course have a mixture of both (multiple triangle meshes and or boxes depednding on how you want your map to look.
Individual boxshapes would get culled at broadphase level where as a single BVHMesh would always collide at that point. But BvhTriangleMesh is pretty efficient in the narrowphase anyway. You could of course have a mixture of both (multiple triangle meshes and or boxes depednding on how you want your map to look.