Skip to content

Conversation

@cyanglaz
Copy link
Contributor

@cyanglaz cyanglaz commented Dec 22, 2021

This PR adds the ability to show refresh rate status in the timeline summary.

#95700

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Dec 22, 2021
@cyanglaz cyanglaz requested a review from iskakaushik December 23, 2021 19:18
@cyanglaz cyanglaz force-pushed the framerate_in_summary branch from 7d7d524 to 1dd067b Compare December 23, 2021 19:20
@cyanglaz cyanglaz marked this pull request as ready for review December 23, 2021 19:21
@goderbauer
Copy link
Member

(from triage): @cyanglaz @iskakaushik Do you still have plans for this PR?

@cyanglaz
Copy link
Contributor Author

@goderbauer Yes. I'll mark it as WIP until ready to review.

@cyanglaz cyanglaz marked this pull request as draft January 13, 2022 18:07
@cyanglaz cyanglaz requested a review from flar January 14, 2022 18:04
Copy link
Contributor

@flar flar left a comment

Choose a reason for hiding this comment

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

It all looks good. I left a few code style nits and suggestions that you can take or leave as you see fit...

@cyanglaz cyanglaz marked this pull request as ready for review January 19, 2022 18:49
@flutter-dashboard flutter-dashboard bot added the c: contributor-productivity Team-specific productivity, code health, technical debt. label Jan 19, 2022
@flar
Copy link
Contributor

flar commented Jan 19, 2022

Desktop could introduce a few more variants. I know that 144Hz monitors are common.

@flar
Copy link
Contributor

flar commented Jan 19, 2022

As the number of "valid Hz" values increases, does having explicit fields become cumbersome? Should we introduce this as an array of values in some form? That would be troublesome for reporting, but how are we planning to report this? Is it a problem if a benchmark has the 60Hz frames go to 0? What if it is accompanied by an increase in 30Hz frames or 120Hz frames? Is this value mandated by the platform with no control? Or is it predicated on our success in being able to meet a given target and being rewarded with a faster frame rate as a result?

I guess I'm still not clear what our ultimate goal here is in collecting that data.

@cyanglaz
Copy link
Contributor Author

As the number of "valid Hz" values increases, does having explicit fields become cumbersome? Should we introduce this as an array of values in some form? That would be troublesome for reporting, but how are we planning to report this? Is it a problem if a benchmark has the 60Hz frames go to 0? What if it is accompanied by an increase in 30Hz frames or 120Hz frames? Is this value mandated by the platform with no control? Or is it predicated on our success in being able to meet a given target and being rewarded with a faster frame rate as a result?

I guess I'm still not clear what our ultimate goal here is in collecting that data.

Our short term goal with these values is to test if the newer iOS device can actually render in 120hz when we ask for it. See: https://docs.google.com/document/d/1O-ot6MydAl5pAr_XGnpR-Qq5A5CPDF6edaPu8xQtgCQ/edit?resourcekey=0-LlXeGtGRC67XL4NrGoc91A

So once we set our preferred frame rate to 120, ideally this benchmark should report with something like 90% (a make up number) of the frames are rendered in 120hz.

@flar
Copy link
Contributor

flar commented Jan 21, 2022

As the number of "valid Hz" values increases, does having explicit fields become cumbersome? Should we introduce this as an array of values in some form? That would be troublesome for reporting, but how are we planning to report this? Is it a problem if a benchmark has the 60Hz frames go to 0? What if it is accompanied by an increase in 30Hz frames or 120Hz frames? Is this value mandated by the platform with no control? Or is it predicated on our success in being able to meet a given target and being rewarded with a faster frame rate as a result?
I guess I'm still not clear what our ultimate goal here is in collecting that data.

Our short term goal with these values is to test if the newer iOS device can actually render in 120hz when we ask for it. See: https://docs.google.com/document/d/1O-ot6MydAl5pAr_XGnpR-Qq5A5CPDF6edaPu8xQtgCQ/edit?resourcekey=0-LlXeGtGRC67XL4NrGoc91A

So once we set our preferred frame rate to 120, ideally this benchmark should report with something like 90% (a make up number) of the frames are rendered in 120hz.

That sounds good, and note that my review approved the changes as is.

But I wonder if there isn't a more flexible way to report this so that we can report most frames are in some bucket without having to manually add new buckets as we go. Future phones may have even faster frame rates and the desktop world has all sorts of oddball in-between refresh rates available.

Chris Yang added 2 commits February 7, 2022 11:44
review

review

remove keys from perf_tests
@cyanglaz cyanglaz force-pushed the framerate_in_summary branch from 48468f4 to 2b09d68 Compare February 7, 2022 23:11
@skia-gold
Copy link

Gold has detected about 11 new digest(s) on patchset 4.
View them at https://flutter-gold.skia.org/cl/github/95699

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests c: contributor-productivity Team-specific productivity, code health, technical debt. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants