-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix(ShadowContainer): prevent unnecessary repaint #830
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-830.eastus2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-830.eastus2.azurestaticapps.net |
last commit should fix the uncovered wasm bug |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-830.eastus2.azurestaticapps.net |
When tested in wasm we still have delays and changes seem slower. shadow-repaint-fix.mp4 |
|
I will try to squash some invalidation and do some perf logs to improve shadow rendering when elements/canvas are resizing. |
...kit.Samples/Uno.Toolkit.Samples.Shared/Content/Controls/ShadowContainerSamplePage.WinUI.xaml
Show resolved
Hide resolved
...kit.Samples/Uno.Toolkit.Samples.Shared/Content/Controls/ShadowContainerSamplePage.WinUI.xaml
Outdated
Show resolved
Hide resolved
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-830.eastus2.azurestaticapps.net |
Beware of impressions, when tested in wasm with profiling:
We got the following results: Without the PR:WITH the PR:Roughly 40% increased performance. This is confirmed by logs made in Debug: Without PR:WINDOWS
ANDROID
WASM
With PR:WINDOWS
ANDROID
WASM
|
…epaint in this case
6b5562c
to
b359de7
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-830.eastus2.azurestaticapps.net |
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
@Mergifyio backport legacy/3x release/stable/4.2 |
✅ Backports have been created
|
(cherry picked from commit fcf4422)
(cherry picked from commit fcf4422)
Multiple shadows repaint were made because of comparison of records through an interface.
The base interface was replaced by an abstract record.
Another repaint was also sometimes made due to the fact that we didn't take into account the uninitialized pixel ratio.