-
Notifications
You must be signed in to change notification settings - Fork 196
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
Intermittent freezing after running for ~10 minutes #79
Comments
I ran a short profile during one of the freezes, Array.destroy is a function I added to the array prototype which is shorthand for "call Box2D.destroy on all elements in this array" Note that the number of objects being created & destroyed per frame doesn't change during the ~10 minutes before the freezing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The page freezes for a small amount of time every 3s or so after running for roughly 10 minutes. I've looked over my code, and I seem to be deallocating all the vectors I create, although I do create and destroy a lot of b2Vec2 objects every frame. Tried in incognito as well, doesn't appear to be a plugin. Just using box2d-js and jquery. Perhaps there's an issue involving keys to internal memory allocations not being destroyed along with the objects? I'm running in the latest version of Chrome on Windows 10.
The text was updated successfully, but these errors were encountered: