Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BROKEN Use sparse set for UI node extraction #3

Conversation

nicopap
Copy link

@nicopap nicopap commented Jul 21, 2023

This breaks UI borders, so don't merge yet

This is a less complex change that happens to be much faster than the Drain iterator.

However, this is incompatible with the pattern of pushing one ExtractedUiNode per border, so it can only be merged once bevyengine#8973 itself is merged first

So without borders in the many_buttons stress test:

  • prepare_uinode is twice as fast as your current change (I suppose this makes it a ×8 speedup from bevy/main)
  • Extract schedule is 30% faster (due to extract_uinodes* systems being faster)

@nicopap nicopap changed the title Use sparse set for UI node extraction BROKEN Use sparse set for UI node extraction Jul 21, 2023
@nicopap
Copy link
Author

nicopap commented Jul 27, 2023

This is currently unworkable due to text glyphs each having an individual ExtractedUiNode. Closing

@nicopap nicopap closed this Jul 27, 2023
@nicopap nicopap deleted the ui-ordered-extraction-sparse-vec branch August 30, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant