box2das3 memory leak

Here’s a cool blog post that will help you fix the problem. I already applied that patch and it works great!)
http://devizgl.blogspot.ru/2012/03/box2d21a.html?showComment=1382229959077#c8118445927107725985

It contains some modifications you have to apply to your box2d(2.1a).

This patch fixes a bug with contacts pull and contacts factory that caused memory leaks. Plus it clears the b2Body internals for quicker garbage collection.

Also, you can force garbage collection using System.gc() from time to time; But a call to this stops debugger execution; at least it did so on Adobe Flash CS6, so beware)

Once again, thanks to devizgl for his fix! )

This entry was posted in Adobe Flash, as3. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *