-
Notifications
You must be signed in to change notification settings - Fork 68
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
Storage leaks #196
Comments
Additional infos:
|
Maybe the meshes is enough. Can you point me to the code to make the fix? I can test it quickly. |
This was referenced Nov 4, 2021
rom1504
pushed a commit
that referenced
this issue
Nov 7, 2021
* Fixes a memory leak (#196) * Extra ; * Found another one in the wild! * Garbage collection in primitives.js * Garbage collection in entities.js * Fixes null references * Trigger CI
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using prismarine-web-client, and threejs objects are not getting released. I believe you have to 'dispose' of all the threejs objects (textures, materials, etc.) to get them to release the webgl data. With a big world, you can only play for a short time before the browser tab quits.
When a chunk is unloaded in the web client, it seems to be handled properly - the prismarine chunk is deleted. And that should release the underlying threejs objects, but you need to explicitly dispose of the textures, materials, etc. If you look at the heap snapshots, the storage that leaks is the system/JSArrayBufferData, which I think is the webgl system data. Everything else looks fine.
The text was updated successfully, but these errors were encountered: