Skip to content

Conversation

@flar
Copy link
Contributor

@flar flar commented Jun 21, 2019

See #27677

I got the following results running the test on a Moto E2 which
will help us determine how much we can gain by analyzing the
operations and eliminating unnecessary repaints based on
dirty rectangles/regions.

no blurs       - avg 216.0 fps over 3 samples
blur the group - avg  22.9 fps over 3 samples
blur each txt  - avg   3.4 fps over 3 samples

@flar flar requested a review from liyuqian June 21, 2019 18:32
@Piinks Piinks added engine flutter/engine related. See also e: labels. framework flutter/packages/flutter repository. See also f: labels. c: performance Relates to speed or footprint issues (see "perf:" labels) labels Jun 21, 2019
Copy link
Contributor

Choose a reason for hiding this comment

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

backdrop_filter.dart:20:60 • prefer_const_constructors

You can open the "Dart Analysis" tool in IntelliJ to discover these kind of warnings locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Odd, the window shows a green check mark for me. I actually had a couple of those warnings and fixed them, but they don't show now.

Copy link
Contributor

@liyuqian liyuqian left a comment

Choose a reason for hiding this comment

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

Thanks for the test! Can you please also add your local test result (with blur, without blur, with group blur) in the PR description (and make sure to include them as the commit message during merge)? It would give us a good sense of how much speedup the damage rect could give us in this case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add some background that could tell the difference between with and without a BackdropFilter? For example, put 10000 '0's in the stack below the BackdropFilter as https://api.flutter.dev/flutter/widgets/BackdropFilter-class.html did.

Otherwise looks good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added the background text (in yellow) and rand some numbers on my Moto E2 and did another commit.

See #27677

I got the following results running the test on a Moto E2 which
will help us determine how much we can gain by analyzing the
operations and eliminating unnecessary repaints based on
dirty rectangles/regions.

no blurs       - avg 216.0 fps over 3 samples
blur the group - avg  22.9 fps over 3 samples
blur each txt  - avg   3.4 fps over 3 samples
Copy link
Contributor

@liyuqian liyuqian left a comment

Choose a reason for hiding this comment

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

LGTM

@liyuqian
Copy link
Contributor

Oh, BTW, you need to modify the manifest.yml to add this test to our dashboard. We can go over how to do this on Monday.

@liyuqian liyuqian self-requested a review June 24, 2019 21:55
@liyuqian
Copy link
Contributor

Can you please post the numbers you got on Moto E2 on the PR description for reference?

Also, please feel encouraged to use git commit instead of git commit --amend to make this PR have multiple commits. That allows us to look at the difference of each commit.

Copy link
Contributor

@liyuqian liyuqian left a comment

Choose a reason for hiding this comment

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

LGTM!

@flar flar merged commit f83fd9d into flutter:master Jun 25, 2019
@tvolkert
Copy link
Contributor

We need to baseline these new benchmarks now that they're live.

@liyuqian
Copy link
Contributor

Done.

@flar flar deleted the bug27677 branch July 11, 2019 01:11
johnsonmh pushed a commit to johnsonmh/flutter that referenced this pull request Jul 30, 2019
…r#34870)

* Add test case for Flutter Issue flutter#27677 as a benchmark.

See flutter#27677

I got the following results running the test on a Moto E2 which
will help us determine how much we can gain by analyzing the
operations and eliminating unnecessary repaints based on
dirty rectangles/regions.

no blurs       - avg 216.0 fps over 3 samples
blur the group - avg  22.9 fps over 3 samples
blur each txt  - avg   3.4 fps over 3 samples

* Added the new benchmark to be tracked on the dashboard.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: performance Relates to speed or footprint issues (see "perf:" labels) engine flutter/engine related. See also e: labels. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants