Skip to content

[PERFORMANCE] No cleanup of 3D renderer on component unmount - memory leak #63

Description

@Siddh2024

Description

The Three.js/WebGL renderer is initialized when the 3D viewer component mounts but is not properly disposed when the component unmounts. This leaves GPU resources and WebGL contexts allocated, causing memory leaks.

Impact

  • Memory leak with every navigation away and back to the viewer
  • Browser may run out of WebGL contexts after repeated navigation

Suggested Fix

Implement proper cleanup in the component's componentWillUnmount / useEffect cleanup — dispose the renderer, scene, and geometries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions