I'm having a problem. I have dozens of balls falling down a Box2D 2.02 stage. But when I hit a certain threshold of shapes, the simulation starts to act very predictably *wrong*. Basically, I have dozens of marbles falling down a maze. But once too many hit the screen, marbles will start straying to an alternate course - until the screen clears itself a little, then it's fine again.
So clearly, I'm hitting some mathematical threshold in Box2D, after which the simulation starts skipping steps or something. The chunk of my code I've noticed it hitting most often has only one Box2D call - ApplyImpulse. The call has constants in it, so it's not something I'm changing.
So - what is the threshold in Box2D that I'm hitting that makes ApplyImpulse give a different result?
So clearly, I'm hitting some mathematical threshold in Box2D, after which the simulation starts skipping steps or something. The chunk of my code I've noticed it hitting most often has only one Box2D call - ApplyImpulse. The call has constants in it, so it's not something I'm changing.
So - what is the threshold in Box2D that I'm hitting that makes ApplyImpulse give a different result?