bevy/crates/bevy_gizmos/src
ickshonpe 4d8bc6161b
Extract sprites into a Vec (#17619)
# Objective

Extract sprites into a `Vec` instead of a `HashMap`.

## Solution

Extract UI nodes into a `Vec` instead of an `EntityHashMap`.
Add an index into the `Vec` to `Transparent2d`.
Compare both the index and render entity in prepare so there aren't any
collisions.

## Showcase
yellow this PR, red main

```
cargo run --example many_sprites --release --features "trace_tracy"
```

`extract_sprites`
<img width="452" alt="extract_sprites"
src="https://github.com/user-attachments/assets/66c60406-7c2b-4367-907d-4a71d3630296"
/>

`queue_sprites`
<img width="463" alt="queue_sprites"
src="https://github.com/user-attachments/assets/54b903bd-4137-4772-9f87-e10e1e050d69"
/>

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2025-03-18 00:48:33 +00:00
..
primitives Improve Segment2d/Segment3d API and docs (#18206) 2025-03-09 20:21:31 +00:00
aabb.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
arcs.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
arrows.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
circles.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
config.rs Revert "don't use bevy_pbr for base bevy_gizmos plugin" (#18327) 2025-03-17 22:23:42 +00:00
cross.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
curves.rs Refactor non-core Curve methods into extension traits (#16930) 2024-12-29 19:26:49 +00:00
gizmos.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
grid.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
lib.rs Revert "don't use bevy_pbr for base bevy_gizmos plugin" (#18327) 2025-03-17 22:23:42 +00:00
light.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
line_joints.wgsl Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
lines.wgsl Add dashed lines (#16884) 2024-12-18 20:43:58 +00:00
pipeline_2d.rs Extract sprites into a Vec (#17619) 2025-03-18 00:48:33 +00:00
pipeline_3d.rs Revert "don't use bevy_pbr for base bevy_gizmos plugin" (#18327) 2025-03-17 22:23:42 +00:00
retained.rs Revert "don't use bevy_pbr for base bevy_gizmos plugin" (#18327) 2025-03-17 22:23:42 +00:00
rounded_box.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00