Skip to content

onGeometryDispose is not deleting BufferGeometry index attribute #7389

@nihowjipa

Description

@nihowjipa

onGeometryDispose method in WebGLGeometries is not deleting BufferGeometry "index" attribute causing memory leak on GPU side if geometries are using indexed triangles. Reproducible at (open chrome task manager and observe GPU process):

http://threejs.org/examples/webgl_test_memory.html

I was able to fix it locally by adding following to the method:

if ( buffergeometry.index ) deleteAttribute( buffergeometry.index );

r73

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions