返回介绍

QualitySettings.maxQueuedFrames 最大队列帧数

发布于 2019-12-18 15:38:21 字数 1353 浏览 1148 评论 0 收藏 0

JavaScript => public static var maxQueuedFrames: int;
C# => public static int maxQueuedFrames;

Description 描述

Maximum number of frames queued up by graphics driver.

图形驱动程序队列的最大帧数。

Graphics drivers can queue up frames to be rendered. When CPU has much less work to do than the graphics card, is it possible for this queue to become quite large. In those cases, user's input will “lag behind” what is on the screen.

图形驱动程序可以队列帧来渲染。当CPU做的事情比显卡还少,这有可能使队列变得相当大。在这种情况下,用户输入在屏幕上将“跟不上”。

Use QualitySettings.maxQueuedFrames to limit maximum number of frames that are queued. The default value is 2, which limits the queue to 2 frames.

使用QualitySettings.maxQueuedFrames来限制队列的最大帧数,默认的值为-1,它不限制队列。

Note that using a low maxQueuedFrames value can lower your FPS count, because CPU will be waiting until the graphics card will finish rendering previous frames. But you will get lower input latency.

注意,使用一个低的maxQueuedFrames值,降低FPS数,因为CPU将等待直到显卡将完成上一帧渲染。但你会得到更低的输入延迟。

Currently maxQueuedFrames is only implemented in Direct3D renderer; it will be ignored in OpenGL.

目前maxQueuedFrames只有在Direct3D实现渲染;它将在OpenGL中被忽略。

qualitysettings

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文