cientos icon indicating copy to clipboard operation
cientos copied to clipboard

feat(core): useGLTF's dracoloader provides memory destruction

Open Sea-DH1 opened this issue 1 year ago • 0 comments

Description

Provide memory destruction for useGLTF's dracoloader When using routing to exit the page, the instance of dracoLoader will always occupy memory

Suggested solution

Inside the useGLTF file

export function useDracoLoaderDispose() { dracoLoader?.dispose() dracoLoader = null }

Alternative

No response

Additional context

none

Validations

Sea-DH1 avatar Jul 10 '23 16:07 Sea-DH1