mimimizing memory consumption for console development

ex.bamtang
Posts: 1
Joined: Thu Jun 12, 2008 11:18 pm

mimimizing memory consumption for console development

Post by ex.bamtang »

Hi,

I'm totally new to the bullet physics engine, as far as I can see it's a awesome!!

Trying to port the hello world sample, I had changed the next part of the library in order to get bullet working under 24 MB of memory ;):

Code: Select all

struct	btDefaultCollisionConstructionInfo
{
		m_defaultMaxPersistentManifoldPoolSize(65535),
		m_defaultMaxCollisionAlgorithmPoolSize(65535),
		m_defaultStackAllocatorSize(5*1024*1024)
by

Code: Select all

struct	btDefaultCollisionConstructionInfo
{
		m_defaultMaxPersistentManifoldPoolSize(1024),
		m_defaultMaxCollisionAlgorithmPoolSize(1024),
		m_defaultStackAllocatorSize(1*1024*1024)
I have the hello world working here, however I don't know the *real* consequences of this, I think this limits the number of physics objects the engine can simulate any time...
Some information about this?

Also if someone could point me to another parts of the engine that need to be changed in order to
minimize the memory consumption it would be great.

Many thanks!