-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Tab stalls when using matterjs and moving away from the tab for a while, probably Engine.update related #6977
Comments
I found a simple fix with |
|
I think this can hang the browser with any sufficiently large delta given to Matter World update. It doesn't require leaving and returning to the tab. |
Version
Description
I noticed that my phaser game was crashing when I went away from it for a while and came back to the tab.
At https://ubershmekel.github.io/bell-curve-balls/ there are a lot of balls, so the simulation step is a bit heavier than usual.
Example Test Code
Additional Information
Options I see:
The relevant code is at:
phaser/src/physics/matter-js/lib/core/Engine.js
Line 84 in 97e3e67
Engine.update
calls:phaser/src/physics/matter-js/World.js
Line 1268 in 97e3e67
The text was updated successfully, but these errors were encountered: