Add API for web sites to query display refresh rate |
|||||
Issue descriptionWe should make it possible for web pages to query the display's refresh rate so they can adjust their animation frame rate appropriately. Currently people are running empty rAF loops to determine this value, and this API would provide a less flaky way to do the same. Open issues: - What should the API look like? - How to deal with refresh rate changes? - If the browser decides to run the page at a lower frame rate, should this value reflect that? - How does this interact with a hypothetical API that lets developers set the display frame rate?
,
Aug 17 2016
I think it depends on how we surface frame throughput to the web. If we surface it based on frame durations, then yes, they'll need something to normalize against. Alternatively, we could normalize the frame durations against the display frame rate before we give the data to the developer, in which case I don't think this would be necessary.
,
Aug 17 2016
Good points. On first blush I would prefer we show things in (milli)seconds to keep things comparable and avoid surprises if the denominator (display frame rate) changes.
,
Aug 17 2016
I agree with #3. Do we have any idea how common non 60fps displays are?
,
Aug 17 2016
I thought we had UMA for that but I only found these: https://uma.googleplex.com/p/chrome/histograms/?endDate=08-16-2016&dayCount=1&histograms=Renderer4.CompositorThreadImplDrawDelay%2CScheduling.Browser.DrawInterval2&fixupData=true&showMax=true&filters=channel%2Ceq%2C1%2Cisofficial%2Ceq%2CTrue&implicitFilters=isofficial
,
Aug 24 2016
,
Aug 25 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 25 2017
I think we still want this.
,
Mar 29 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by skyos...@chromium.org
, Aug 17 2016