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

Memory Leak when Engine.enableSleeping == true #1194

Open
411411qq opened this issue Feb 4, 2023 · 2 comments
Open

Memory Leak when Engine.enableSleeping == true #1194

411411qq opened this issue Feb 4, 2023 · 2 comments

Comments

@411411qq
Copy link

411411qq commented Feb 4, 2023

I set Engine.enableSleeping == true, there is some staic objects in the stage. The staic objects will be sleeping in a while. When a dynamic object collide with a staic object, a new Pair will be added to Engine.pairs.list. This new Pair will never be removed, because one object in this pair is sleeping, even one object is removed.
May I do something wrong? And now I know my English is terrible!

@liabru
Copy link
Owner

liabru commented Feb 28, 2023

Could you try this alpha build from PR #1079 and let me know if that solves the issue? Otherwise if you're able to share a minimal example that would help!

@411411qq
Copy link
Author

411411qq commented Mar 2, 2023

hi,here is the example.
sleepingTest.zip

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

2 participants