bevy/crates
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
..
bevy_app add a span for frames (#2053) 2021-04-30 02:08:49 +00:00
bevy_asset gltf: load textures asynchronously using io task pool (#1767) 2021-04-30 20:12:50 +00:00
bevy_audio Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_core Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_derive EnumVariantMeta derive (#1972) 2021-04-21 23:46:54 +00:00
bevy_diagnostic Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_dylib Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_dynamic_plugin Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_ecs Fix unsoundness in Query::for_each_mut (#2045) 2021-04-29 18:12:07 +00:00
bevy_gilrs Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_gltf gltf: load textures asynchronously using io task pool (#1767) 2021-04-30 20:12:50 +00:00
bevy_input Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_internal Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_log Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_math Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_pbr Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_reflect Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_render Fix mesh with no vertex attributes causing panic (#2036) 2021-04-28 19:04:01 +00:00
bevy_scene Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_sprite Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_tasks Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_text Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_transform Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_ui Hide re-exported docs (#1985) 2021-04-27 18:29:33 +00:00
bevy_utils EnumVariantMeta derive (#1972) 2021-04-21 23:46:54 +00:00
bevy_wgpu Automatic System Spans (#2033) 2021-04-28 18:41:16 +00:00
bevy_window Adds an alias mouse position -> cursor position (#2038) 2021-04-28 21:26:47 +00:00
bevy_winit Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00