Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbage collection hiccups #21

Open
GoogleCodeExporter opened this issue Aug 24, 2015 · 1 comment
Open

Garbage collection hiccups #21

GoogleCodeExporter opened this issue Aug 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant