-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract UI nodes into a Vec (#17618)
# Objective Extract UI nodes into a `Vec` instead of an `EntityHashMap`. ## Solution Extract UI nodes into a `Vec` instead of an `EntityHashMap`. Store an index into the `Vec` in each transparent UI item. 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_buttons --release --features trace_tracy ``` `extract_uinode_background_colors` <img width="448" alt="extract_uinode_background_colors" src="https://github.com/user-attachments/assets/09c0f434-ab4f-4c0f-956a-cf31e9060061" /> `extract_uinode_images` <img width="587" alt="extract_uinode_images" src="https://github.com/user-attachments/assets/43246d7f-d22c-46d0-9a07-7e13d5379f56" /> `prepare_uinodes` <img width="441" alt="prepare_uinodes_vec" src="https://github.com/user-attachments/assets/cc9a7eac-60e9-42fa-8093-bce833a1c153" />
- Loading branch information
Showing
6 changed files
with
204 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.