swift - SceneKit 场景在 macOS 上高于预期的 FPS

标签 swift macos scenekit frame-rate sceneview

我的 macOS 应用程序有两个 SceneKit sceneViews,当它们为空时,它们似乎都以 120 的 FPS 运行。

我没有在代码中的任何位置手动设置 preferredFramesPerSecondpreferredFramesPerSecond 的默认值是 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/

相关文章:

ios - 电视操作系统 UIFocusEnvironment 没有聚焦按钮

ios - 在 Swift 中在后台继续计数器

php - 须藤 : pear: command not found

ios - Scene Kit节点不旋转

xcode - dyld : Library not loaded:/System/Library/Frameworks/SceneKit. 框架/SceneKit

ios - SceneKit 物理在 ARKit 中不能正常工作

ios - 为什么我不能在没有方法调用的情况下用为泛型指定的类型替换泛型?

ios - 从重叠 View 触发 UITapGestureRecognizers

linux - 如何根据文本文件将文件移动到子目录

macos - 如何在不停止进程的情况下在使用 node.js 执行文件时关闭终端窗口?