mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
27d809fd23
# 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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |