-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Remove systems from schedule #20298
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
+528
−16
Merged
Remove systems from schedule #20298
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
9cdc695
add method to get system keys by
hymm 535acee
remove systems
hymm 04ceb71
add tests
hymm b557ac4
switch to return result
hymm 6836140
add minimal docs
hymm fef6f97
remove todo
hymm ae58405
add an example
hymm 55c200c
fix doc link
hymm e2b7dac
auto initialize if needed
hymm b0143c6
fix doc example
hymm ab30bac
call the correct initialize
hymm d0123e2
add methods to app and schedules
hymm 2819060
add a release note
hymm b1eb124
docs cleanup
hymm 2791ec5
fix doc test
hymm c85d7e4
edit release note a bit
hymm f7cc75c
remove all uninit sets
hymm 2e9f5bb
more doc cleanup
hymm 420e6ff
convert errors using `From`
hymm 3a4e931
remove spaces from release note
hymm 6715f31
Merge remote-tracking branch 'upstream/main' into remove-systems
hymm 80f4a39
add policy enum
hymm ed04770
implement policies
hymm c6675ca
thinking about it
hymm 0b3f48a
add healing the graph
hymm 2ec5c01
add more tests
hymm e50973f
Merge remote-tracking branch 'upstream/main' into more-remove-systems…
hymm b60f393
rename policies and improve docs
hymm c77abd2
Merge remote-tracking branch 'upstream/main' into remove-systems
hymm 07511f4
fix typos
hymm bef58f7
fix doc tests
hymm b895374
return slice from systems_is_set
hymm 2d44cea
clippy
hymm 0bb50bf
update release note
hymm bab0d07
Merge remote-tracking branch 'upstream/main' into remove-systems
hymm 92efa4f
hide some whitespace in example
hymm 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 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
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
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
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
Oops, something went wrong.
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.
I'm curious about the intended use cases here, given the overhead tradeoffs. Whats a real world scenario where someone would want to call this?
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.
I'm not sure what others are planning, but I've been tinkering with building a plugin to define non-exclusive systems with scripting languages. It would want to remove a system if its script was removed, or if the parameters to its script changed and it needed to be replaced with a system with different parameters. Loading the new script wouldn't be very performance-sensitive.
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.
The cases I see are replacing a system and moving closer to plugin removal. With this you could remove most of the things that a plugin adds excluding app level stuff (i.e. sub apps and runners). I also see that people would like to remove systems when having multiples games in the same binary a la ufo50 or when changing levels where you already are going through a loading screen. Though in some of those cases using observers are probably a better fit.
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.
I also think that we might be able to use this for hotpatching!