Bullet taking way to much ram! [HELP] :(

Post Reply
johnsonalpha
Posts: 73
Joined: Fri May 01, 2015 8:23 pm

Bullet taking way to much ram! [HELP] :(

Post by johnsonalpha »

I'm simulating 200,000 boxes offline and bullet is taking up almost 11 gigs of ram i have 12gigs is there a setting in bullet to limit the amount of ram bullet has access to use?
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: Bullet taking way to much ram! [HELP] :(

Post by Basroil »

~12gb for 200k boxes puts it at ~60KB per box. Either your have a lot of simultaneous collisions and the high memory overhead that implies, or you have a leak somewhere :wink:

As for limiting bullet memory, you'll need to make your own allocator and then proper error catching methods for when a new object can't be created due to memory constraints. Or of course just use 32bit executables which means you'll be limited to at most 4GB (or 2GB on Windows without using certain methods)
Post Reply