> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetMaximumFrameLatency (XBOX Series 主機)

> 設定系統允許排入佇列以進行轉譯的畫面數目。

設定系統允許排入佇列以進行轉譯的畫面數目。

## 語法

```cpp theme={null}
HRESULT SetMaximumFrameLatency(  
         UINT MaxLatency  
)  
```

### 參數

*MaxLatency*   \_In\_\
類型：UINT

驅動程式可排入佇列的背景緩衝區畫面數目上限。此值預設為 3，但範圍可介於 1 到 16。值為 0 會將延遲重設為預設值。對於多頭裝置，此值是針對每個頭個別指定。

### 傳回值

類型：HRESULT

如果成功，會傳回 S\_OK；否則會傳回錯誤碼。如需錯誤碼清單，請參閱 [Direct3D 12 傳回碼](https://learn.microsoft.com/en-us/windows/win32/direct3d12/d3d12-graphics-reference-returnvalues)。

## 需求

**標頭：** d3d12\_xs.h

**程式庫：** d3d12\_xs.lib\
**支援的平台：** XBOX Series 主機

## 另請參閱

[IDXGIDevice1](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIDevice1/idxgidevice1)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XBOX Manager: remote control](/tools/tools-console/xbom/manager-tool-gamepad-input.md)
- [Target session initialization and QoS](/services/xbox-services/multiplayer/matchmaking/concepts/live-matchmaking-target-session.md)
- [XBOX Series X|S 總覽](/zh-TW/paths/series-xs/overview.md)
- [Game streaming latency measurement](/build/core-features/common/game-streaming/game-streaming-latency-measurement.md)
