bevy/crates/bevy_core_pipeline/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
..
auto_exposure bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
blit Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
bloom bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
contrast_adaptive_sharpening bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
core_2d Extract sprites into a Vec (#17619) 2025-03-18 00:48:33 +00:00
core_3d bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
deferred Implement occlusion culling for the deferred rendering pipeline. (#17934) 2025-02-20 12:54:27 +00:00
dof bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
experimental Generic system config (#17962) 2025-03-12 00:12:30 +00:00
fullscreen_vertex_shader Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
fxaa bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
motion_blur bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
oit bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
post_process bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
prepass bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
skybox bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
smaa bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
taa bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
tonemapping Allowed creating uninitialized images (for use as storage textures) (#17760) 2025-02-10 22:22:07 +00:00
upscaling Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
lib.rs Implement experimental GPU two-phase occlusion culling for the standard 3D mesh pipeline. (#17413) 2025-01-27 05:02:46 +00:00
msaa_writeback.rs