Skip to content

Extract between non-main sub-apps#24259

Draft
therealbnut wants to merge 1 commit into
bevyengine:mainfrom
therealbnut:multi-world
Draft

Extract between non-main sub-apps#24259
therealbnut wants to merge 1 commit into
bevyengine:mainfrom
therealbnut:multi-world

Conversation

@therealbnut
Copy link
Copy Markdown
Contributor

@therealbnut therealbnut commented May 12, 2026

Objective

This is work in progress, just intended to show a general approach. It's a small extension on the existing SubApp::{extract, set_extract, take_extract} methods to have labelled versions of them. This allows for extraction between SubApps that aren't main.

One issue with this currently is it does not allow a deterministic order between the apps, which may mean you can't construct a DAG of extractions between subapps. This could be solved by storing the labels vector from SubApps::update, but that needs further thought.

This is mainly to provide to context when asking whether the general approach of adding more extract methods to SubApps would be accepted, or if it would still be blocked by the greater multi-world work.

Related issues:

Solution

  • Describe the solution used to achieve the objective above.

Testing

  • Did you test these changes? If so, how?
  • Are there any parts that need more testing?
  • How can other people (reviewers) test your changes? Is there anything specific they need to know?
  • If relevant, what platforms did you test these changes on, and are there any important ones you can't test?

Showcase

This section is optional. If this PR does not include a visual change or does not add a new feature, you can delete this section.

  • Help others understand the result of this PR by showcasing your awesome work!
  • If this PR adds a new feature or public API, consider adding a brief pseudo-code snippet of it in action
  • If this PR includes a visual change, consider adding a screenshot, GIF, or video
    • If you want, you could even include a before/after comparison!
  • If the Migration Guide adequately covers the changes, you can delete this section

While a showcase should aim to be brief and digestible, you can use a toggleable section to save space on longer showcases:

Click to view showcase
println!("My super cool code.");

@therealbnut therealbnut changed the title multi-world access Extract between non-main sub-apps May 12, 2026
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