-
Hello, I'm looking for a solution to a problem I've been having with model-viewer. https://modelviewer.dev/examples/add (sorry for the strange English, I'm using a translation tool) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It depends what you mean by slow, and it would help to have a link to a demonstration page. All modelCacheSize does is allow GLBs to be garbage-collected when they are not being used by any m-v elements. This will cause them to be re-uploaded to the GPU if you decide to use that model again, rather than being instantly available (the browser likely caches the file already). The only slowness it could affect is that of switching between models. If you're having trouble with frame-rate, then you should look at optimizing your models (reducing the number of materials, the size of the textures and the number of triangles). |
Beta Was this translation helpful? Give feedback.
It depends what you mean by slow, and it would help to have a link to a demonstration page. All modelCacheSize does is allow GLBs to be garbage-collected when they are not being used by any m-v elements. This will cause them to be re-uploaded to the GPU if you decide to use that model again, rather than being instantly available (the browser likely caches the file already). The only slowness it could affect is that of switching between models.
If you're having trouble with frame-rate, then you should look at optimizing your models (reducing the number of materials, the size of the textures and the number of triangles).