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

Dispose of textures cleaned by the garbage collector #2703

Closed

Conversation

barisyild
Copy link
Contributor

This commit will make reduce the possibility of VRAM memory leak.

This commit will make reduce the possibility of VRAM memory leak.
@barisyild barisyild marked this pull request as draft April 22, 2024 11:51
@barisyild
Copy link
Contributor Author

It seems that there are possibilities that some OpenGL textures are shared, in which case it is necessary to directly dispose of native textures when they are collected by the garbage collector.

@barisyild barisyild closed this Apr 22, 2024
@barisyild
Copy link
Contributor Author

It seems that assets that are no longer referenced but still binded textures in OpenGL cause corruption.

@barisyild
Copy link
Contributor Author

Looks like lime already manages opengl objects with finalizer so this pull request is dead.

https://github.com/openfl/lime/blob/bb3b31b08d75c0b9aa2dc1f3ab5f4539737f4d57/project/src/graphics/opengl/OpenGLBindings.cpp#L155

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

Successfully merging this pull request may close these issues.

None yet

1 participant