![]() # 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" /> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |