question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GLTFLoader: Disable cache

See original GitHub issue

We 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
donmccurdycommented, Feb 27, 2019

I think this can be closed, yes. 👍

1reaction
rpadovanicommented, Dec 14, 2018

I gave it a try in #15431, let me know what you think

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found