Skip to content

Fix: Enable high refresh rate support via preferredRefreshRate (#2086)#2098

Open
zaibihsn wants to merge 2 commits into
maxrave-dev:mainfrom
zaibihsn:fix-high-refresh-rate
Open

Fix: Enable high refresh rate support via preferredRefreshRate (#2086)#2098
zaibihsn wants to merge 2 commits into
maxrave-dev:mainfrom
zaibihsn:fix-high-refresh-rate

Conversation

@zaibihsn
Copy link
Copy Markdown

@zaibihsn zaibihsn commented Jun 1, 2026

Fixes #2086

Description:
This PR enables high refresh rate (90Hz/120Hz) support for Android devices, bypassing the aggressive 60Hz lock applied by some OEM skins to Compose apps.

Implementation Details:

Implemented the preferredRefreshRate API for devices on Android R (API 30) and above.

This approach successfully signals the OS to utilize higher refresh rates without explicitly forcing a display mode, preventing unintended physical resolution downgrades on multi-resolution panels (e.g., Galaxy S20).

Preserves Variable Refresh Rate (VRR/LTPO) capabilities, allowing the system to drop frame rates on static screens for battery optimization.

Thanks again for the incredibly detailed review and for providing the minimal implementation! I completely understand the issue with the multi-resolution panels and the battery impact on LTPO displays now—that was a great learning moment.

I've pushed the updated commit using your suggested preferredRefreshRate approach for Android R+. Let me know if this looks good to go!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve high refresh rate support (90Hz / 120Hz optimization)

1 participant