Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading gltf models is painfully slow. #11637

Open
skylerparr opened this issue Jan 31, 2024 · 2 comments
Open

Loading gltf models is painfully slow. #11637

skylerparr opened this issue Jan 31, 2024 · 2 comments
Labels
A-Assets Load files from disk to use for things like images, models, and sounds A-glTF Related to the glTF 3D scene/model format C-Performance A change motivated by improving speed, memory usage or compile times

Comments

@skylerparr
Copy link

Bevy version

0.12.0

[Optional] Relevant system information

If you cannot get Bevy to build or run on your machine, please include:
$ cargo --version
cargo 1.75.0 (1d8b05cdd 2023-11-20)

windows 11

AdapterInfo { name: "NVIDIA GeForce RTX 2060 with Max-Q Design", vendor: 4318, device: 7954, device_type: DiscreteGpu, driver: "", driver_info: "", backend: Dx12 }

What you did

Loading a scene using gltf

What went wrong

It took roughly 50 seconds to load a single model in release mode. By comparison, I loaded the same model here https://gltf-viewer.donmccurdy.com/ and takes less than a second to load.

Additional information

Here's the file I used. It's a model I exported from ue5. https://www.dropbox.com/scl/fi/ihcf4wttx1edc09gedoc6/idle_relaxed.glb?rlkey=jdsw4wm0ehjrof5m65ney4dvd&dl=0

@skylerparr skylerparr added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Jan 31, 2024
@alice-i-cecile
Copy link
Member

Related upstream discussion: gltf-rs/gltf#409

@alice-i-cecile alice-i-cecile removed the S-Needs-Triage This issue needs to be labelled label Jan 31, 2024
@alice-i-cecile alice-i-cecile added the A-Assets Load files from disk to use for things like images, models, and sounds label Jan 31, 2024
@mockersf
Copy link
Member

mockersf commented Feb 1, 2024

I don't have those kind of loading time using the scene_viewer example

gltf-loading-time.mp4

Could you give more details on your CPU and hard drive? And try with that example from Bevy repo?

@alice-i-cecile alice-i-cecile added C-Performance A change motivated by improving speed, memory usage or compile times A-glTF Related to the glTF 3D scene/model format and removed C-Bug An unexpected or incorrect behavior labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds A-glTF Related to the glTF 3D scene/model format C-Performance A change motivated by improving speed, memory usage or compile times
Projects
None yet
Development

No branches or pull requests

3 participants