我的 macOS 应用程序有两个 SceneKit
sceneViews
,当它们为空时,它们似乎都以 120 的 FPS 运行。
我没有在代码中的任何位置手动设置 preferredFramesPerSecond
。 preferredFramesPerSecond
的默认值是 60 FPS,所以我有点困惑为什么 FPS 比这高一倍 - 有人有什么想法吗?
最佳答案
联机文档似乎已过时。
以下是您可以在 SCNView.h
的 header 文档中找到的内容:
The default value is 0 which means the display link will fire at the native cadence of the display hardware.
关于swift - SceneKit 场景在 macOS 上高于预期的 FPS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50610375/