Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_native?.displayRefreshRate() returns 0 on macOS Monterey and below #2301

Closed
stefanosiano opened this issue Sep 19, 2024 · 2 comments · Fixed by #2628
Closed

_native?.displayRefreshRate() returns 0 on macOS Monterey and below #2301

stefanosiano opened this issue Sep 19, 2024 · 2 comments · Fixed by #2628

Comments

@stefanosiano
Copy link
Member

Description

A user reported _native?.displayRefreshRate() returns 0 on macOS Monterey and below.
While the user opened a PR to avoid the crash (and we should do it, of course), we may want to have a look at why it returns 0 in the first place

@buenaflor
Copy link
Contributor

I'll check, we use this API for macos: https://developer.apple.com/documentation/coregraphics/1454099-cgdisplaycopydisplaymode

which is available from macos 10.6 which should be compatible

@buenaflor
Copy link
Contributor

let's document that in troubleshooting that we might not support it in lower macos versions

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