You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Textures that are used in a ShaderEffect are kept alive by the TextureManager, even if the correpsonding ShaderEffect is already disposed.
Textures are registered in the TextureManager on creation. From then on, the TextureManager holds a reference to the Texture object.
But there is no connection from the ShaderEffect/EffectManager to the TextureManager. Therefore the TextureManager will keep the reference to the texture indefinitely.
A workaround is to manually delete the Texture when we know that the ShaderEffect is no longer needed. However, this isn't ideal or user-expected behavior.
The text was updated successfully, but these errors were encountered:
FUSEE v0.13.0
Textures
that are used in aShaderEffect
are kept alive by theTextureManager
, even if the correpsondingShaderEffect
is already disposed.Textures are registered in the TextureManager on creation. From then on, the TextureManager holds a reference to the Texture object.
But there is no connection from the ShaderEffect/EffectManager to the TextureManager. Therefore the TextureManager will keep the reference to the texture indefinitely.
A workaround is to manually delete the Texture when we know that the ShaderEffect is no longer needed. However, this isn't ideal or user-expected behavior.
The text was updated successfully, but these errors were encountered: