mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 03:23:20 +00:00
c9b33e15f8
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> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |