-
Notifications
You must be signed in to change notification settings - Fork 2.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
GPU memory not freed after unmounting Deck component. #3039
Comments
@tsherif @ibgreen There are several layers to this issue:
|
I don't think we should worry too much about the shaders. If buffers and textures are now properly released, that should address this issue. |
That would be my sense as well. But maybe they hold on to the context, preventing it from being garbage collected? |
Oh, interesting point. Is unmounting a deck.gl component meant to completely release the gl context? |
Hmm, I would have to check the code to answer that. The ideal resource management design is typically that release is "symmetric" with creation, so if we create during Regardless, when we are done with the context it makes sense to make sure we don't prevent garbage collection by e.g. having objects in e.g. a global map like a shader cache referencing it. |
Partial fix published in 7.0.4 |
Description
GPU memory not freed after unmounting Deck component.
Repro Steps
Go to https://deck.gl/#/examples/core-layers/
Open Google Chrome task manager and enable the GPU Memory column.
Switch between the demos and see how the GPU Memory permanently increases every time a new one is displayed
Environment (please complete the following information):
Logs
The text was updated successfully, but these errors were encountered: