-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] sped up the linear gradient by moving calculations to the cpu #53007
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
I ran out of time today, I'll try to profile this tomorrow to get a sense of what kind of difference this makes. |
Malioc diff:
|
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. |
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.
Fuck yeah, optimizations!
LGTM
…149057) flutter/engine@b5e98f9...f693fdd 2024-05-24 1961493+harryterkelsen@users.noreply.github.com [canvaskit] Fix overlay reorganization for edge case with only 1 overlay (flutter/engine#53006) 2024-05-24 skia-flutter-autoroll@skia.org Roll Dart SDK from 49b226cecee7 to 4ef8ed68a8d4 (1 revision) (flutter/engine#53024) 2024-05-24 skia-flutter-autoroll@skia.org Roll Skia from f832549400ab to 97783ac3000d (1 revision) (flutter/engine#53023) 2024-05-24 30870216+gaaclarke@users.noreply.github.com [Impeller] sped up the linear gradient by moving calculations to the cpu (flutter/engine#53007) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC jonahwilliams@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#149057) flutter/engine@b5e98f9...f693fdd 2024-05-24 1961493+harryterkelsen@users.noreply.github.com [canvaskit] Fix overlay reorganization for edge case with only 1 overlay (flutter/engine#53006) 2024-05-24 skia-flutter-autoroll@skia.org Roll Dart SDK from 49b226cecee7 to 4ef8ed68a8d4 (1 revision) (flutter/engine#53024) 2024-05-24 skia-flutter-autoroll@skia.org Roll Skia from f832549400ab to 97783ac3000d (1 revision) (flutter/engine#53023) 2024-05-24 30870216+gaaclarke@users.noreply.github.com [Impeller] sped up the linear gradient by moving calculations to the cpu (flutter/engine#53007) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC jonahwilliams@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
issue: flutter/flutter#148496
The linked issue showed us as ALU bound with the linear gradient, this should relieve some of that pressure.
Tests: There is already existing golden tests for this, this just changed the performance, no new functionality.
summary of math improvements:
dot()
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.