cientos
cientos copied to clipboard
feat(core): useGLTF's dracoloader provides memory destruction
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
- [X] I agree to follow this project's Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.