-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
core: Global execution order #3104
Closed
Closed
Conversation
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
relrelb
force-pushed
the
global_exec_order
branch
from
February 5, 2021 23:21
6c0777c
to
5afd2a4
Compare
relrelb
force-pushed
the
global_exec_order
branch
from
February 5, 2021 23:40
bf201b3
to
d0e7421
Compare
relrelb
force-pushed
the
global_exec_order
branch
2 times, most recently
from
February 6, 2021 17:17
eb8b348
to
7d316b0
Compare
relrelb
force-pushed
the
global_exec_order
branch
from
February 7, 2021 11:30
7d316b0
to
c310950
Compare
Thanks for your work on this. I've made some testings, using the web extension. The fixes I've noticed:
There are also unfortunately a few regressions:
|
relrelb
force-pushed
the
global_exec_order
branch
3 times, most recently
from
February 15, 2021 14:28
a3affba
to
2008218
Compare
@Toad06 Thanks for the feedback! Your reported regressions should be fixed now. Do you see anything else? |
relrelb
force-pushed
the
global_exec_order
branch
from
February 19, 2021 13:00
2ee52ff
to
c6af5f4
Compare
Thanks, I've made some new testings using the web extension:
|
relrelb
force-pushed
the
global_exec_order
branch
from
February 27, 2021 20:10
754835e
to
00ff689
Compare
This is still a work-in-progress prototype.
And also prev_sibling and next_sibling from DisplayObjectBase, since they are now superseded by the global execution list.
Introduce a struct DepthIter that acts much like RenderIter. A follow-up refactor needs to remove both DepthIter and RenderIter in favor of simply using an iterator.
This makes 2 regression tests to pass, and doesn't seem to regress anything else. As a refactor, remove the now unused bool return value of remove_from_execution_list. It might be also worthy for remove_child_from_depth_list and remove_child_from_render_list, whose bool return values are unused.
insert_at_id could call to add_to_execution_list while holding a mutable borrow of self. Then add_to_execution_list mutates the head of the global execution list, which might be the same object. Fix it by moving the call to add_to_execution_list out of insert_at_id, and place it after the call to insert_at_id. add_to_execution_list should be called conditionally, so also make insert_at_id return a bool status to indicate whether or not it should be done.
Levels are executed in the following order: * level0 * The rest of the levels in a stacking creation order (last created level is executed first)
* Correctly insert node to linked list in add_to_execution_list. * Fix replace_at_depth inserting always to level0. * Remove redundant scope as a refactoring.
And also add TODOs where iteration order might not be correct.
relrelb
force-pushed
the
global_exec_order
branch
from
March 9, 2021 12:58
df5f06c
to
90b1f2f
Compare
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.
Use a global execution list as suggested in #2943 (comment).
Fixes at least #1626 (now Sonic runs through the corkscrew loop) and #1986 (now enemies get hit).
Doesn't fix other frame-order-execution bugs such as #1164. It might or might not be related.
TODO