Stuck loading draco .glb models or draco_decoder.wasm on mobile only? #1509
Unanswered
danielacorner
asked this question in
Q&A
Replies: 1 comment 2 replies
-
you can make draco part of your bundle and ship it. useGLTF(url, "/draco") copy these files into a "draco" folder in your public directory https://github.com/mrdoob/three.js/tree/dev/examples/js/libs/draco/gltf why it doesnt load for you i cannot say. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, my app https://virus-terrarium.netlify.app/ loads draco .glb files over Git LFS, and seems to work fine on desktop, but on mobile it often gets stuck loading resources, either a .glb file or the draco_decoder.wasm from https://www.gstatic.com/draco/v1/decoders/draco_decoder.wasm -- even though in the Network tab, they both seem to be coming from cache
I've tried to make a somewhat minimal repro here https://r3fperf.netlify.app/ -- https://github.com/danielacorner/r3f-perf ( codesandbox at https://codesandbox.io/s/github/danielacorner/r3f-perf?file=/src/App.js ) -- for me it loads fine on desktop, but on mobile it gets consistently stuck loading /models/bacteriophage_P68_120_draco.glb
Any ideas what's going on? i.e.
Thanks very much for any help! Really enjoying these fantastic tools :)
Beta Was this translation helpful? Give feedback.
All reactions