fix: Improve pipeline robustness, allow same frame attach + detach events.#533
Merged
Conversation
Changed Files
|
makspll
commented
Apr 15, 2026
| || self | ||
| .component_access | ||
| .iter_accessed() | ||
| .any(|(_, a)| a.is_write() || (!a.is_write() && write)) |
Owner
Author
There was a problem hiding this comment.
unrelated but small clearing up of logic
Contributor
|
| Branch | feat/one-frame-load-unload-correctness |
| Testbed | linux-gha |
⚠️ WARNING: Truncated view!The full continuous benchmarking report exceeds the maximum length allowed on this platform.
🚨 1 Alert
🐰 View full continuous benchmarking report in Bencher
Contributor
🔍 Binding Differences Detected
b/crates/bindings/bevy_asset_bms_bindings/src/lib.rsindex 776c17c..312c549 100644
--- a/crates/bindings/bevy_asset_bms_bindings/src/lib.rs
+++ b/crates/bindings/bevy_asset_bms_bindings/src/lib.rs
@@ -334,7 +334,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The bitwise negation (`!`) of the bits in a flags value, truncating the result.",
+ " The bitwise negation (`!`) of the bits in `self`, truncating the result.",
&["_self"],
)
.register_documented(
@@ -355,7 +355,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " Whether all set bits in a source flags value are also set in a target flags value.",
+ " Whether all set bits in `other` are also set in `self`.",
&["_self", "other"],
)
.register_documented(
@@ -376,7 +376,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The intersection of a source flags value with the complement of a target flags\n value (`&!`).\n This method is not equivalent to `self & !other` when `other` has unknown bits set.\n `difference` won't truncate `other`, but the `!` operator will.",
+ " The intersection of `self` with the complement of `other` (`&!`).\n This method is not equivalent to `self & !other` when `other` has unknown bits set.\n `difference` won't truncate `other`, but the `!` operator will.",
&["_self", "other"],
)
.register_documented(
@@ -466,7 +466,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The bitwise or (`|`) of the bits in two flags values.",
+ " The bitwise or (`|`) of the bits in `self` and `other`.",
&["_self", "other"],
)
.register_documented(
@@ -487,7 +487,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The bitwise and (`&`) of the bits in two flags values.",
+ " The bitwise and (`&`) of the bits in `self` and `other`.",
&["_self", "other"],
)
.register_documented(
@@ -508,7 +508,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " Whether any set bits in a source flags value are also set in a target flags value.",
+ " Whether any set bits in `other` are also set in `self`.",
&["_self", "other"],
)
.register_documented(
@@ -542,7 +542,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " Whether all bits in this flags value are unset.",
+ " Whether all bits in `self` are unset.",
&["_self"],
)
.register_documented(
@@ -563,7 +563,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The intersection of a source flags value with the complement of a target flags\n value (`&!`).\n This method is not equivalent to `self & !other` when `other` has unknown bits set.\n `remove` won't truncate `other`, but the `!` operator will.",
+ " The intersection of `self` with the complement of `other` (`&!`).\n This method is not equivalent to `self & !other` when `other` has unknown bits set.\n `remove` won't truncate `other`, but the `!` operator will.",
&["_self", "other"],
)
.register_documented(
@@ -606,7 +606,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The intersection of a source flags value with the complement of a target flags value (`&!`).\n This method is not equivalent to `self & !other` when `other` has unknown bits set.\n `difference` won't truncate `other`, but the `!` operator will.",
+ " The intersection of `self` with the complement of `other` (`&!`).\n This method is not equivalent to `self & !other` when `other` has unknown bits set.\n `difference` won't truncate `other`, but the `!` operator will.",
&["_self", "other"],
)
.register_documented(
@@ -627,7 +627,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The bitwise exclusive-or (`^`) of the bits in two flags values.",
+ " The bitwise exclusive-or (`^`) of the bits in `self` and `other`.",
&["_self", "other"],
)
.register_documented(
@@ -648,7 +648,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The bitwise exclusive-or (`^`) of the bits in two flags values.",
+ " The bitwise exclusive-or (`^`) of the bits in `self` and `other`.",
&["_self", "other"],
)
.register_documented(
@@ -669,7 +669,7 @@ pub(crate) fn register_render_asset_usages_functions(world: &mut World) {
};
output
},
- " The bitwise or (`|`) of the bits in two flags values.",
+ " The bitwise or (`|`) of the bits in `self` and `other`.",
&["_self", "other"],
);
let registry = world.get_resource_or_init::();
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This used to work in previous versions, but stopped when the new pipeline work got merged. Also simplifies things a bit.
This PR delays the "commitment" step of script machines further into the process. allowing both an attachment and detachment to happen in the same frame and be processed one after another.
This may be slightly jarring from a script perspective, as the entity you're attached to might be despawned by the time you execute, but that's unavoidable in this execution model.
Fixes #468