implemented patch by Vroonsh to optimize island management with many static objects.

It can be disabled by commenting out the #define STATIC_SIMULATION_ISLAND_OPTIMIZATION in Bullet/src/BulletCollision/CollisionDispatch/btUnionFind.h

See also Issue 406
This commit is contained in:
erwin.coumans
2010-07-20 00:21:52 +00:00
parent 5b70a895a5
commit f5e6f87427
3 changed files with 70 additions and 15 deletions

View File

@@ -18,7 +18,10 @@ subject to the following restrictions:
#include "LinearMath/btAlignedObjectArray.h"
#define USE_PATH_COMPRESSION 1
#define USE_PATH_COMPRESSION 1
///see for discussion of static island optimizations by Vroonsh here: http://code.google.com/p/bullet/issues/detail?id=406
#define STATIC_SIMULATION_ISLAND_OPTIMIZATION 1
struct btElement
{