Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Allow higher than 60hz framerates on CADisplayLink on iPhones #17

Merged
merged 1 commit into from May 18, 2023

Conversation

elijah-semyonov
Copy link
Contributor

@elijah-semyonov elijah-semyonov commented May 17, 2023

Allow CADisplayLinks configured internally in skia to match max screen refresh rate as per:
https://developer.apple.com/documentation/quartzcore/optimizing_promotion_refresh_rates_for_iphone_13_pro_and_ipad_pro?language=objc

API changes

iOS target should have the following record added to Xcode project Info.plist to support 120hz on iPhone

<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>

inside root <dict> tag.

Or added using Xcode editor:

Screenshot 2023-08-23 at 12 10 48

A new project wizard should also have these changes included.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants