How to improve on performance with many coins stack

scarlion
Posts: 3
Joined: Sat Feb 12, 2011 3:04 am

How to improve on performance with many coins stack

Post by scarlion »

Hello everyone
I need to simulate a large amount of coins that would stack together. The problem I meet is that performance is killed over 200 coin, while I need to simulate at least 1000 coins.

Any mothed could improve performance on this case is appriciated!

Thanks!
Scarlion
winspear
Posts: 77
Joined: Thu Nov 26, 2009 6:32 pm

Re: How to improve on performance with many coins stack

Post by winspear »

How are you simulating the coins ? What shapes?
Try setting some damping to the rogid body coins so that they will settle down after a short period of activity. This can improve performance. You can also play around with the activation state to achieve some level of stability.
You can also try creating a separate thread for physics with a high performance timer and interpolate the physics timestep yourself to achieve more speed.
Some tips on time stepping at the wiki..

http://bulletphysics.org/mediawiki-1.5. ... _the_World