Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Running a swappy-enabled app on my
Pixel 6
(Android 13).With
Smooth Display
enabled, you get the following refresh rates (after conversion to Hz) when callingSwappyGL_getSupportedRefreshPeriodsNS()
:However, Android also supports any refresh rate which is a divisor of these rates. E.g.:
Shouldn't this API return all these rates? Or at least all the reasonable rates >= 30 Hz?
Impact
When choosing a refresh rate, it is important to sync the game clock with the actual refresh rate. To pick a valid rate, we first need to query available rates. Now there is no easy way to select e.g. 45 Hz. Hence this bug report.
Are we expected to implement the divisor algorithm ourselves? See explanation here .