QualitySettings.maxQueuedFrames 最大队列帧数

static var maxQueuedFrames : int

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 -1, which does not limit the queue.

使用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中被忽略。

最后修改:2011年3月13日 Sunday 16:50

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。