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

Possible memory leak in resolver #12

Open
modeswitch opened this issue Jun 19, 2012 · 0 comments
Open

Possible memory leak in resolver #12

modeswitch opened this issue Jun 19, 2012 · 0 comments
Assignees
Labels

Comments

@modeswitch
Copy link

We don't need a new vector for each frame. Allocate a single b2Vec2 and reset it instead.

var newGravity = new Box2D.b2Vec2(totalForce[0], totalForce[1]);
@ghost ghost assigned brynnperit Jun 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants