btBvhTriangleMeshShape construction speed...
-
- Posts: 66
- Joined: Fri Oct 12, 2007 6:28 pm
- Location: San Diego
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.
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
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