Currently we are instantiating a new loader for every asset. each time .load() is called, a new instance of that loader is created where it only needs to be defined once and re-used.
Ideally we would instantiate the loaders first, perhaps in setLoaders() then call load() on this single instance for each asset in the cache. Some loaders such as KTX2Loader or GLTFLoader point to transcoder files which we should avoid doing multiple times.
Currently we are instantiating a new loader for every asset. each time
.load()is called, a new instance of that loader is created where it only needs to be defined once and re-used.Ideally we would instantiate the loaders first, perhaps in
setLoaders()then callload()on this single instance for each asset in the cache. Some loaders such asKTX2LoaderorGLTFLoaderpoint to transcoder files which we should avoid doing multiple times.