-
Notifications
You must be signed in to change notification settings - Fork 379
Improve 0.9 -> 0.10 scheduling migration advice #604
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
Improve 0.9 -> 0.10 scheduling migration advice #604
Conversation
I've omitted the other smaller fixes, as a) they're unrelated and b) I'm not immediately sure how to solve them. Please feel free to open more PRs to fix those. |
Just in case we want to address the custom stages part, I think these are equivalent. // Bevy 0.9
#[derive(Debug, Hash, PartialEq, Eq, Clone, StageLabel)]
pub struct AfterUpdate;
app.add_stage_after(CoreStage::Update, AfterUpdate, SystemStage::parallel());
// Bevy 0.10
#[derive(Debug, Hash, PartialEq, Eq, Clone, SystemSet)]
#[system_set(base)]
pub struct AfterUpdate;
app.configure_set(
AppSet::AfterUpdate
.after(CoreSet::UpdateFlush)
.before(CoreSet::PostUpdate),
); One thing I wish the migration guide addressed more explicitly are scenarios where the user was (ab)using various core bevy stages because they need a command flush between systems. We are "mostly" just saying (via code snippets) that edit: It feels like we are talking about |
Awesome to see better docs! Thanks for working on these! FWIW: My biggest hurdle migrating was the difference between
errors that I wasn't able to understand without resorting to the amazing folks on Discord. (Thread: https://discord.com/channels/691052431525675048/1083571454404214885/1083571454404214885) Would be cool to see this addressed in the migration notes, but I am not sure how. Given that I don't understand the new scheduling fully, I'm not really qualified to make suggestions :) |
Co-authored-by: Rob Parrett <[email protected]>
Labels could be removed for brevity from the custom stages section since they are covered just below, if that's a concern. |
Excellent, this is miles better than before, thanks a lot @alice-i-cecile! Ouch on the subtle difference between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are good changes and now is in a state where I would be able to migrate my apps. Everything I struggled with has been answered.
Co-authored-by: Andreas Weibye <[email protected]>
Co-authored-by: Rob Parrett <[email protected]>
Thanks a ton for the reviews, merging now :) |
Fixes most of #603.