bevy/crates/bevy_render
Rob Parrett 35de45277c
Use default storage for TemporaryRenderEntity (#16462)
# Objective

`TemporaryRenderEntity` currently uses `SparseSet` storage, but doesn't
seem to fit the criteria for a component that would benefit from this.

Typical usage of `TemporaryRenderEntity` (and all current usages of it
in engine as far as I can tell) would be to spawn an entity with it once
and then iterate over it once to despawn that entity.

`SparseSet` is said to be useful for insert/removal perf at the cost of
iteration perf.

## Solution

Use the default table storage

## Testing

Possibly this could show up in stress tests like `many_buttons`. I
didn't do any benchmarking.
2024-11-22 21:01:53 +00:00
..
macros Don't reëxport bevy_image from bevy_render (#16163) 2024-11-10 06:54:38 +00:00
src Use default storage for TemporaryRenderEntity (#16462) 2024-11-22 21:01:53 +00:00
Cargo.toml Fix detailed_trace! (#16452) 2024-11-20 22:01:33 +00:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Render

License Crates.io Downloads Docs Discord