btBvhTriangleMeshShape construction speed...

Post Reply
reltham
Posts: 66
Joined: Fri Oct 12, 2007 6:28 pm
Location: San Diego

btBvhTriangleMeshShape construction speed...

Post by reltham »

Is there a way to make btBvhTriangleMeshShapes to build faster? I have code loading up was meshes and building btBvhTriangleMeshShapes and it's taking quite a long time (on the order of minutes) for around 5000 total objects.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: btBvhTriangleMeshShape construction speed...

Post by Erwin Coumans »

reltham wrote:Is there a way to make btBvhTriangleMeshShapes to build faster? I have code loading up was meshes and building btBvhTriangleMeshShapes and it's taking quite a long time (on the order of minutes) for around 5000 total objects.
You should be able to (de) serialize pre-constructed btBvhTriangleMeshShapes, completely eliminating build times.

See #define SERIALIZE_TO_DISK in Demos/ConcaveDemo/ConcavePhysicsDemo.cpp

Hope this helps,
Erwin
Post Reply