We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 scene implementation is not finished. The scene should be removed from the GLRenderLists.lists on dispose, but it never is.
GLRenderLists.lists
Three.js code: https://github.com/mrdoob/three.js/blob/r106/src/renderers/webgl/WebGLRenderLists.js#L163
function onSceneDispose( event ) { var scene = event.target; scene.removeEventListener( 'dispose', onSceneDispose ); delete lists[ scene.id ]; }
threekt code: https://github.com/markaren/three.kt/blob/master/core/src/main/kotlin/info/laht/threekt/renderers/opengl/GLRenderLists.kt#L39
override fun onEvent(event: Event) { val scene = event.target as Scene scene.removeEventListener("dispose", this) }
Because the scene is never removed, memory gets filled up when doing heavy rendering.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Dispose scene implementation is not finished. The scene should be removed from the
GLRenderLists.lists
on dispose, but it never is.Three.js code: https://github.com/mrdoob/three.js/blob/r106/src/renderers/webgl/WebGLRenderLists.js#L163
threekt code: https://github.com/markaren/three.kt/blob/master/core/src/main/kotlin/info/laht/threekt/renderers/opengl/GLRenderLists.kt#L39
Because the scene is never removed, memory gets filled up when doing heavy rendering.
The text was updated successfully, but these errors were encountered: