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 #1

Open
mauicv opened this issue Nov 7, 2019 · 0 comments
Open

Memory leak #1

mauicv opened this issue Nov 7, 2019 · 0 comments

Comments

@mauicv
Copy link
Owner

mauicv commented Nov 7, 2019

The lawInstance exports are IIFE and returns an object that seems to persist across multiple instances of the engine environment created in one session. This may be causing a memory leak. If using a single engine instance it's not a problem but if instances are saved then the laws hold references to each environment causing both memory pollution and extra engine cycles. The hacky fix is just to reassign the relevant law instances at engine creation to new ones.

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

No branches or pull requests

1 participant