iOS适配iPhone 13 Pro and iPad Pro的120Hz高刷

官方文档:Optimizing ProMotion Refresh Rates for iPhone 13 Pro and iPad Pro

很简单:
直接在plist文件里添加

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

官网介绍:

Enable Faster ProMotion Refresh Rates

If you don’t enable faster refresh rates for your app, your CADisplay<wbr data-v-78dd96cf="">Link callback might run at any of the speeds that the ProMotion display supports, at different times during normal GUI operations. In these cases, other animations in the system may affect the rate at which Core Animation calls your CADisplay<wbr data-v-78dd96cf="">Link callback. The rate at which Core Animation calls your CADisplay<wbr data-v-78dd96cf="">Link callback may not match the refresh rate hints that you provide to your CADisplay<wbr data-v-78dd96cf="">Link callback. Specifically, Core Animation won’t unlock any refresh rate that’s faster than the system’s default.

On iPhone 13 Pro or iPhone 13 Pro Max, add the following key to your Info<wbr data-v-78dd96cf="">.plist file to enable the full range of refresh rates for CADisplay<wbr data-v-78dd96cf="">Link callbacks and CAAnimationanimations in your app:

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

Your app must use this key to access higher frame rates (above 60Hz) it sets in the preferred<wbr data-v-78dd96cf="">Frame<wbr data-v-78dd96cf="">Rate<wbr data-v-78dd96cf="">Range hint API. The iPad Pro doesn’t require this special configuration.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 16宿命:用概率思维提高你的胜算 以前的我是风险厌恶者,不喜欢去冒险,但是人生放弃了冒险,也就放弃了无数的可能。 ...
    yichen大刀阅读 6,122评论 0 4
  • 公元:2019年11月28日19时42分农历:二零一九年 十一月 初三日 戌时干支:己亥乙亥己巳甲戌当月节气:立冬...
    石放阅读 6,943评论 0 2
  • 今天上午陪老妈看病,下午健身房跑步,晚上想想今天还没有断舍离,马上做,衣架和旁边的的布衣架,一看乱乱,又想想自己是...
    影子3623253阅读 2,947评论 3 8