bevy/crates/bevy_gltf
François c9b33e15f8 gltf: load textures asynchronously using io task pool (#1767)
While trying to reduce load time of gltf files, I noticed most of the loading time is spent transforming bytes into an actual texture.

This PR add asynchronously loading for them using io task pool in gltf loader. It reduces loading of a large glb file from 15 seconds to 6~8 on my laptop

To allow asynchronous tasks in an asset loader, I added a reference to the task pool from the asset server in the load context, which I can use later in the loader.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-04-30 20:12:50 +00:00
..
src gltf: load textures asynchronously using io task pool (#1767) 2021-04-30 20:12:50 +00:00
Cargo.toml calculate flat normals for mesh if missing (#1808) 2021-04-15 21:06:49 +00:00