Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@bdero
Copy link
Member

@bdero bdero commented Aug 8, 2022

The blur filter internally multiplies sigma by the current transform, but the backdrop filter is a special case that renders with an identity matrix, so this change just applies the scale to the effect params when the backdrop filter is recorded.

@bdero bdero requested review from jonahwilliams and zanderso August 8, 2022 19:48
@bdero bdero self-assigned this Aug 8, 2022
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zanderso
Copy link
Member

zanderso commented Aug 8, 2022

Was your expectation that this would do bad things to performance correct?

@bdero
Copy link
Member Author

bdero commented Aug 8, 2022

@zanderso This will 3x sigma for the backdrop blur in the app we're currently testing, and so the backdrop blur will run at ~1/3 the speed it currently does since the blur is linear. (But we still have lots of further optimization we can do for this blur)

@bdero bdero added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 8, 2022
@auto-submit auto-submit bot merged commit a51c763 into flutter:main Aug 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 8, 2022
@zanderso
Copy link
Member

zanderso commented Aug 9, 2022

Bit of a tiny jump in the transition perf benchmark on Android on this change: https://flutter-flutter-perf.skia.org/e/?begin=1659271866&end=1660007287&keys=X3afeaad5edd93e30e365b8e7bab5c7c4&requestType=0&xbaroffset=30329

My understanding is that this is expected to come back down after further optimizations to blurs, right?

@bdero
Copy link
Member Author

bdero commented Aug 9, 2022

@zanderso Yeah, I think we can scale sublinearly /wrt sigma on both passes with indistinguishable quality loss after some iteration.

@zanderso
Copy link
Member

zanderso commented Aug 9, 2022

Understood. For the record, there was a second slowdown on #35249. Strangely not seeing anything on the iOS side.

emilyabest pushed a commit to emilyabest/engine that referenced this pull request Aug 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants