UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

gltf loads large models very slowly

Open foreverliu opened this issue 5 years ago • 5 comments

gltf is very slow to load large models, an 80M file takes an hour to load.Can this be solved?

foreverliu avatar Mar 30 '20 13:03 foreverliu

glTF is only a file/data format. How long it takes to load a model is (not really, but somewhat) independent of that. More precisely: glTF is designed so that it can be "loaded" quickly. The issue is therefore most likely related to the engine/renderer that you are using.

So where and how are you "loading" the model? (And are you sure that it's not only due to a slow network connection, for example?)

javagl avatar Mar 30 '20 16:03 javagl

Uploading test.zip… The model is gltf generated by sketchup conversion, and the loading speed is very slow. I load it locally.

foreverliu avatar Mar 31 '20 01:03 foreverliu

Test file link: https://pan.baidu.com/s/1DX0EVc5HZbKkP-JyngfIEg
Extraction code: 6uax

foreverliu avatar Mar 31 '20 02:03 foreverliu

I load it locally.

In three.js, in Babylon.js, or in any other viewer?

(Besides: I don't know which button to click for the download...)

javagl avatar Mar 31 '20 13:03 javagl

it's loaded in Unity

foreverliu avatar Mar 31 '20 13:03 foreverliu

same to me . 40MB model cost 2 miniutes,load from local disk on android

maybeTomorrow avatar May 15 '23 06:05 maybeTomorrow

Please try the new Iridescence Abalone model. It is just under 10MB. You can directly view the model in SampleViewer using https://github.khronos.org/glTF-Sample-Viewer-Release/?model=https://raw.GithubUserContent.com/DRx3D/glTF-Sample-Assets/main/./Models/IridescenceAbalone/glTF-Binary/IridescenceAbalone.glb. The GLB can be downloaded for local testing using https://raw.githubusercontent.com/DRx3D/glTF-Sample-Assets/main/Models/IridescenceAbalone/glTF-Binary/IridescenceAbalone.glb. Note that this GitHub repo is development for the new Sample Model repo.

The import and load time will help us determine where the issue(s) are.

DRx3D avatar May 15 '23 16:05 DRx3D

Fixed in latest release

pfcDorn avatar Feb 09 '24 08:02 pfcDorn