Version: 2018.2
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.

Use QualitySettings.maxQueuedFrames to limit maximum number of frames that are queued. The default value is 2, which strikes the best balance between frame latency and framerate.

Note that you can reduce input latency by using maxQueuedFrames with a value of 1 because the CPU will be waiting until the graphics card finishes rendering previous frames. The downside of this however, is that it can result in a lower framerate.

Currently maxQueuedFrames is only implemented in Direct3D 9 and 11 graphics APIs; it will be ignored on any other graphics API.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961