bevy/crates/bevy_asset
Nathan Ward 27d809fd23 [assets] remove unnecessary temporary strong handles (#2304)
# Objective

- When creating an asset, the `update_asset_storage` function was unnecessarily creating an extraneous `Handle` to the created asset via calling `set`. This has some overhead as the `RefChange::Increment/Decrement` event was being sent.  
- A similar exteraneous handle is also created in `load_async` when loading dependencies. 

## Solution

- Have the implementation use `Assets::set_untracked` and `AssetServer::load_untracked` so no intermediate handle is created.
2021-06-07 18:32:57 +00:00
..
src [assets] remove unnecessary temporary strong handles (#2304) 2021-06-07 18:32:57 +00:00
Cargo.toml Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00