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

# 遊戲串流延遲補償概觀

> 使用 XGameStreaming API 套用延遲補償技術，讓單人和多人遊戲在網路延遲較高時仍保持公平。

使用本主題將延遲補償套用至透過 XBOX Game Streaming 遊玩的遊戲。

遊戲串流會在使用者與執行您遊戲的 XBOX 主機之間增加延遲。Microsoft 藉由在全球各地的 Azure 資料中心部署伺服器，並將使用者配對到距離最近的伺服器，以將網路延遲降至最低。

不過，對於從另一個房間的 XBOX 主機進行串流的使用者而言，延遲可能會明顯較高。您可以使用一組 API，改善網路延遲較高的使用者在串流時體驗您遊戲的方式。

許多 XBOX 多人遊戲已經包含延遲補償技術。這些技術包括旨在讓遊戲即使在有延遲的情況下也感覺公平的調整。XBOX Game Streaming API 可為單人和 XBOX 多人遊戲啟用類似的延遲補償技術。

如需延遲補償的詳細資訊，請參閱[遊戲串流延遲補償深入探討](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-latency-compensation-deep-dive.md)。

## 參考 API 文件

* [XGameStreaming (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgamestreaming/xgamestreaming_members.md)

## 另請參閱

[遊戲串流延遲測量](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-latency-measurement.md)
[在測試遊戲時模擬延遲](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-simulate-latency-while-testing.md)
[XGameStreaming (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgamestreaming/xgamestreaming_members.md#Latency)


## Related topics

- [遊戲串流延遲補償深入探討](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-latency-compensation-deep-dive.md)
- [遊戲串流延遲測量](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-latency-measurement.md)
- [XGameStreaming (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgamestreaming/xgamestreaming_members.md)
- [XGameStreamingGetStreamAddedLatency](https://docs.xbox.com/zh-TW/reference/system/xgamestreaming/functions/xgamestreaminggetstreamaddedlatency.md)
- [XGameStreamingGetLastFrameDisplayed](https://docs.xbox.com/zh-TW/reference/system/xgamestreaming/functions/xgamestreaminggetlastframedisplayed.md)
