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)
Unintended behavior
View staffing
Description
In SwappyDisplayManager.java you are comparing apples and oranges, it seems.
Reading about the DISPLAY_MODE_RETURNS_PHYSICAL_REFRESH_RATE we get to know that
Display.getRefreshRate()
will always return the app frame rate whereasDisplay.Mode.getRefreshRate()
will return the physical display refresh rate onAndroid 12
and later.This is the current logic:
I'm suggesting the following fix:
Obviously, I haven't tested this. Just want to highlight a possible flaw. Please look into it!