-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - ParamSet
for conflicting SystemParam
:s
#2765
Closed
Closed
Changes from 29 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
f8c9a73
fix get_conflicts to return every conflict. added get_conflicts_set
bilsen 3149b56
add extend method to `FilteredAccessSet`
bilsen 2501b97
impl Into for FilteredAccess
bilsen 6ab43ea
refactor SystemParamState init, added methods
bilsen 79fb544
add and impl ParamSet
bilsen aeffdad
add some tests
bilsen 142b123
add safety comments
bilsen 33ac800
fix access bug
bilsen 089b904
run cargo fmt
bilsen 907b02d
fix clippy stuff
bilsen 5955bfe
add specialized panic messages
bilsen 3f9056a
remove debug comments
bilsen 3b77ea3
add ParamSet to prelude
bilsen d678368
added paramset to prelude
bilsen bc72f56
add docstrings
bilsen 90a5236
remove ParamConflictType
bilsen dae0456
remove QuerySet in favour of ParamSet
bilsen 5f011c9
Update add context in ParamSet docs
bilsen 159ced1
use HashSet from `bevy_util`
bilsen 330c95f
up max parameters in `ParamSet` from 4 to 8
bilsen c875753
fix rebase
bilsen cf2c51c
fix tests
bilsen 7a28816
remove more references to querysets
bilsen 7b520e5
remove broken doc links
bilsen b06818b
Merge branch 'main' into param-set-merge
bilsen 2c53e1d
Merge branch 'main' into param-set-merge
bilsen 107003d
Merge branch 'main' into param-set-merge
bilsen e466cf4
Better docs
bilsen 0ebd608
Fix &World SystemParam implementation
bilsen 74cc0cf
Wording
bilsen 538a12e
Add ParamSets and remove QuerySets
cart 88eaefc
Merge remote-tracking branch 'cart/param-set' into param-set-merge
bilsen 3236779
fix merge
bilsen 385bdc7
Merge branch 'param-set-merge' of github.com:bilsen/bevy into param-s…
bilsen 265f8fd
Merge remote-tracking branch 'upstream/main' into param-set-merge
bilsen c6964fc
cargo fmt
bilsen 2b62288
remove paramset link
bilsen 18a84b6
Merge remote-tracking branch 'upstream/main' into param-set-merge
bilsen 16c8258
remove old compile_fail tests
cart 3a4eee0
remove unused Access function
cart 6503fed
Merge remote-tracking branch 'origin/main' into pr/bilsen/2765
cart a2dc8ae
remove unused
cart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
We should remove this clone (ex: by making this a borrow). Cloning SystemMeta might allocate a string (for the system name, if the Cow is owned), and cloning the accesses might also allocate (internally uses Vecs and fixedbitsets, which both might allocate). This clone could be non-trivially expensive, especially for more complicated systems. Not something we want to do every time a system runs.
Sadly making this a borrow breaks SystemState because it needs to be able to write the last_change_tick. One solution to this might be to change the get_param() interface to not require full SystemMeta access.