-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[DRAFT] Send dispose command for CompositionTarget as an OOB batch #18119
Conversation
You can test this PR using the following package version. |
@kekekeks unfortunately this still causes a render pass without a layout pass when the popup closes. ![]() |
You can test this PR using the following package version. |
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.
LGTM, tested and confirmed fix, MacOS and Windows.
When a window or popup gets closed we need to make sure that any associated render thread operation have been completed. To do so, we are currently sending a composition batch and waiting for it to complete. However triggering such commit outside of our normal commit scheduling causes some kind of "tearing", as described in #17784
This PR sends a dispose command in a separate small "out-of-baund" batch.