Three load models.

I have a scene containing some obj models, I noticed that every time the page reloads, the loader loads the objects from the url again and not from the cache. is there a method to check if a resource is happening in the cache, load it directly?

thank

+3


source to share


1 answer


For what I know, ThreeJS does not provide this functionality built in for large files. However, you can work with third party plugins to achieve this.

There is a plugin called MicroCahce.js that allows you to store objects in the GPU cache. This plugin can be localized here:

https://github.com/jeromeetienne/MicroCache.js



And you can find a complete step-by-step guide on how to do it here:

http://learningthreejs.com/blog/2011/09/16/performance-caching-material/

Hope it helps!

+1


source







All Articles