google-code-export / box2dweb

Automatically exported from code.google.com/p/box2dweb
0 stars 0 forks source link

Garbage collection hiccups #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Having a simulation running for some time.

The simulations suffer very annoying hiccups every now and then. Profiling 
box2dweb with firebug you can see the insane amount of calls to the b2Vec2() 
constructor. I think the garbage collector has quite a lot of work while 
running a box2d simulation. 

I know this is more a browser issue I would say, but maybe we could reduce the 
number of constructor calls, or use object literals which I feel are faster but 
I haven't got any prove. Also experimenting with the delete statement may be 
worth.

Original issue reported on code.google.com by joanroca...@gmail.com on 9 Jul 2011 at 10:30

GoogleCodeExporter commented 9 years ago
Yes, I know this problem. Implementing feature #3 will hopefully fix them. I'm 
currently working on this, but unfortunately progress is very slow.

Original comment by Uli.He...@googlemail.com on 10 Jul 2011 at 9:39