Closed GoogleCodeExporter closed 8 years ago
The program seems to allocate a whole bunch of unmanaged memory, which suggests
that Bullet is generating lots of new contact points as the simulation
progresses. I think what's happening is that you're hitting the heap memory
limit for 32-bit applications. At 1.433 seconds the memory usage is at around 2
GB.
You can try to compile Bullet&BulletSharp as 64-bit or duplicate the scenario
in C++ to check if it's really an unmanaged issue.
Original comment by andres.traks
on 18 Apr 2013 at 6:38
Yup, confirmed. The 64-bit version peaked at about 5.6 GB of memory usage, so
you definitely need that. The simulation got very slow after a few seconds as
you'd expect with so many collision objects, so I only waited 6 seconds of game
time, but I expect that it would proceed without error.
It's a pretty interesting test case for Bullet&BulletSharp though. :)
Original comment by andres.traks
on 23 Nov 2013 at 7:43
Sorry for not replying for so long. Thank you very much for following up on
this. I never did get around to doing a 64-bit build, as much as I wanted to.
It was a really interesting exercise. I was investigating it for a rough
simulation of granular material on a conveyor, as a first pass before
performing simulations with more physically based simulations, something
LIGGGHTS (http://cfdem.dcs-computing.com/?q=OpenSourceDEM) does very well. The
interesting part is LIGGGHTS is hundreds of times slower, but uses much much
less memory. What was very interesting though is I was getting very grossly
similar behaviour from bullet sharp, and I think if I got the memory
consumption under control it would be a useful tool.
So yes - I agree, a very interesting test case! I can produce any number of
similar of scenarios should you be interested.
Thanks again!
Original comment by p...@eveandphil.com
on 26 Nov 2013 at 11:30
There is now a 64-bit release if you ever want to play with it:
https://code.google.com/p/bulletsharp/downloads/list
Original comment by andres.traks
on 25 Dec 2013 at 11:08
Original issue reported on code.google.com by
p...@eveandphil.com
on 18 Apr 2013 at 12:31Attachments: