> ## 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-CN/tools/tools-console/commandlinetools/xbstress.md) 使您能够通过增加额外延迟来轻松模拟用户的不同网络条件。

## 先决条件

* 一台已连接互联网并[已为串流设置](https://docs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-setup-xbox-developer-kit.md)的 XBOX 开发工具包。

* 可以连接到您 XBOX 开发工具包的移动设备（Android 6.0 或更高版本）。

* 已安装 XBOX 开发工具且可以连接到您 XBOX 开发工具包的开发 PC。

## 模拟延迟

以下代码示例演示了用于开始应用 XBOX 游戏串流用户平均延迟的命令。

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

以下代码示例演示了如何停止应用额外延迟。

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

## 另请参阅

[Stress (xbstress.exe)（NDA 主题）](https://docs.xbox.com/zh-CN/tools/tools-console/commandlinetools/xbstress.md)


## Related topics

- [游戏串流延迟补偿概述](https://docs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-latency-compensation-overview.md)
- [游戏串流延迟测量](https://docs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-latency-measurement.md)
- [游戏串流延迟补偿深入探讨](https://docs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-latency-compensation-deep-dive.md)
- [串流您的游戏](https://docs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-stream-your-game.md)
- [XBOX 开发套件上的网络压力测试](https://docs.xbox.com/zh-CN/build/console-features/networking/tools/netstress-networking.md)
