Code: Select all
...
...
btVector3 world_min( -1000, -1000, -500 );
btVector3 world_max( 1000, 1000, 500 );
config = new btDefaultCollisionConfiguration();
dispatcher = new btCollisionDispatcher( config );
cache = new btAxisSweep3( world_min, world_max );
solver = new btSequentialImpulseConstraintSolver();
world = new btDiscreteDynamicsWorld( dispatcher,
cache,
solver,
config );
// gravity on earth = 9.80665 m / s2
world->setGravity( btVector3( 0.0, 0.0, -9.80665f ) );
...
...
And this simple initialization take 42 Meg on the iPhone, here's a screenshot from instruments (leaks template).
Is there any way to reduce the amount of memory use? Especially that on iPhone your app. overall memory shouldn't be more than around 64 meg... this take almost everything. Is there any way to reduce that amount at the cost of less precision or something. Cuz this is way to high and not acceptable...