GLTFLoader: Disable cache
See original GitHub issueWe are working on an huge project with thousands of objects, and every object is unique. We load data from a gltf file, and the loader checks if any object is equal to something already created.
Disabling the check on the cache here (return null
instead of calling isPrimitiveEqual over thousands of objects) cuts the loading time by a factor of 4, in our case.
I know this is a corner case, but would you be interested in an option to disable the cache? My company will sponsor my work on this, because we have to implement it anyway, and makes more sense to do it upstream than keeping our own version of the loader
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:14 (5 by maintainers)
Top Results From Across the Web
javascript - maintain loaded gltf in browser cache even after ...
Is there a way to preserve the loaded objects in the browser cache somehow so that even after the react component is unmounted,...
Read more >Cache – three.js docs
To enable caching across all loaders that use FileLoader, set ... Remove the cached file associated with the key. ... Remove all values...
Read more >Replacing Models & GLTF Caching In Three.js - YouTube
In this video, we'll discover how the GLTFLoader interacts with the browser to load models. How it could create a problem replacing models ......
Read more >Class: GLTFLoader - Hilo3d
Name Type Default
src string
defaultScene number | string
isMultiAnim boolean false
Read more >Three.js Loading a .GLTF File
We also need to include the GLTFLoader and we can get rid of the OBJLoader2 . ... the network tab make sure disable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this can be closed, yes. 👍
I gave it a try in #15431, let me know what you think