gpt4 book ai didi

swift - 如何在 iOS/ARKit 中控制 Apple ProMotion FPS?

转载 作者:行者123 更新时间:2023-11-28 12:20:01 34 4
gpt4 key购买 nike

在 iOS 11 Beta 1 和 3 中,ARKit 应用程序的摄像头和显示屏以 60 FPS 运行,而在 iOS 11 Beta 2 中,两者都以 120 FPS (ProMotion) 运行。

有什么方法可以控制FPS吗?我发现每秒 120 帧更适合 AR 应用程序。

最佳答案

使用preferredFramesPerSecond ARSCNView(或 SCNView)的属性。

SceneKit chooses an actual frame rate that is as close as possible to your preferred frame rate based on the capabilities of the screen the view is displayed on. The actual frame rate is usually a factor of the maximum refresh rate of the screen to provide a consistent frame rate. For example, if the maximum refresh rate of the screen is 60 frames per second, that is also the highest frame rate the view sets as the actual frame rate. However, if you ask for a lower frame rate, SceneKit might choose 30, 20, 15 or some other factor to be the actual frame rate. For this reason, you want to choose a frame rate that your app can consistently maintain. The default value is 60 frames per second.

关于swift - 如何在 iOS/ARKit 中控制 Apple ProMotion FPS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45198574/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com