Clear scene but memory is not removed.

I updated to r87 recently, in r86 I dispose and remove all from the scene after clear garbage memory is clear but in r87 is not.

I check in memory debug on firefox browser found it remain in renderItems at src/renderers/webgl/WebGLRenderLists.js and so I add code renderer.dispose() memory is cleared, but I not want to destroy the renderer.

Three.js version
  • Dev
  • r87
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

1 thought on “Clear scene but memory is not removed.

  1. Have you tried


    Which removes all the renderers references to renderItems?

    ( I hit this problem which is why renderLists is now exposed, although this was before r86)

Comments are closed.