Closed Bug 1662380 Opened 5 years ago Closed 5 years ago

GeckoView seen not support high refresh rate like 90hz

Categories

(GeckoView :: General, defect)

80 Branch
Unspecified
All
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: rosuh, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36

Steps to reproduce:

Follow the quick start guide of GeckoView (https://firefox-source-docs.mozilla.org/mobile/android/geckoview/consumer/geckoview-quick-start.html) and load a normal URL.

Actual results:

This geckoView has seen render under 60hz while my device support 90hz refresh rate.
All info:

  • Device: Oneplus 8, support 90hz refresh rate
  • GeckoView: 80.0.20200831163820

Expected results:

The GeckoView should be rendered under 90hz. Such as Chrome, WebView and Firefox(79.0.5)

This seems to be working fine for me on a Pixel 4 XL at 90hz. In Nightly and Beta you can flip gfx.webrender.debug.profiler which will show (among other things) the framerate. If you then scroll a long page (I used planet.mozilla.org), you should see the FPS hang around 90. If we're not using WebRender on your device you will need to flip layers.acceleration.draw-fps instead.

How are you observing the framerate?

Flags: needinfo?(rosuh)

The maximum is only 60hz.
https://i.loli.net/2020/09/04/XMQi6BF2KlgHbjN.jpg

(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) (he/him) from comment #2)

This seems to be working fine for me on a Pixel 4 XL at 90hz. In Nightly and Beta you can flip gfx.webrender.debug.profiler which will show (among other things) the framerate. If you then scroll a long page (I used planet.mozilla.org), you should see the FPS hang around 90. If we're not using WebRender on your device you will need to flip layers.acceleration.draw-fps instead.

How are you observing the framerate?

Flags: needinfo?(rosuh)
Component: General → Panning and Zooming
Product: GeckoView → Core

Based on the findings of https://github.com/mozilla-mobile/fenix/issues/7560 it sounds like apps need to opt in, and https://github.com/mozilla-mobile/android-components/issues/6493 is on file with suggestions on how to fix. At any rate, this is not an APZ bug.

Component: Panning and Zooming → General
Product: Core → GeckoView

Yep, It looks like Oneplus limited high refresh rate on some special View components. Maybe GLSurface View?

But I have confirmed that this is not an APZ bug. Because I just replace my app's package name with org.mozilla.firefox and the refresh rate raise to 90hz immediately.

Thanks for your response, close this issues pls. :)

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.