Page 1 of 1

btBvhTriangleMeshShape construction speed...

Posted: Mon Jul 14, 2008 6:49 pm
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.

Re: btBvhTriangleMeshShape construction speed...

Posted: Mon Jul 14, 2008 6:58 pm
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