> ## 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.

# 在測試遊戲時模擬延遲

> 在測試遊戲時模擬延遲

[xbstress 工具 (NDA 主題)](https://docs.xbox.com/zh-TW/tools/tools-console/commandlinetools/xbstress.md) 可讓您藉由增加額外的延遲，輕鬆為您的使用者模擬不同的網路狀況。

## 必要條件

* 已連線到網際網路且已[設定為可串流](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-setup-xbox-developer-kit.md)的 XBOX 開發套件。

* 可連線到您 XBOX 開發套件的行動裝置 (Android 6.0 或更新版本)。

* 已安裝 XBOX 開發工具且可連線到您 XBOX 開發套件的開發電腦。

## 模擬延遲

下列程式碼範例示範用來開始套用 XBOX Game Streaming 使用者平均延遲的命令。

```shell theme={null}
XBSTRESS simulate network=gamestreaming-avg
```

下列程式碼範例示範如何停止套用額外的延遲。

```shell theme={null}
XBSTRESS stop
```

## 另請參閱

[Stress (xbstress.exe) (NDA 主題)](https://docs.xbox.com/zh-TW/tools/tools-console/commandlinetools/xbstress.md)


## Related topics

- [遊戲串流延遲補償概觀](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-latency-compensation-overview.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-latency-compensation-deep-dive.md)
- [串流您的遊戲](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/game-streaming-stream-your-game.md)
- [XBOX Cloud Gaming 觸控與串流支援](https://docs.xbox.com/zh-TW/build/core-features/common/game-streaming/index.md)
