btBvhTriangleMeshShape construction speed...
btBvhTriangleMeshShape construction speed...
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.
- Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
- Contact:
Re: btBvhTriangleMeshShape construction speed...
You should be able to (de) serialize pre-constructed btBvhTriangleMeshShapes, completely eliminating build times.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.
See #define SERIALIZE_TO_DISK in Demos/ConcaveDemo/ConcavePhysicsDemo.cpp
Hope this helps,
Erwin