可以使用几个命令参数模拟比较差的网络环境,从而测试 UE 联机的网络质量和 bug 检测。
| Setting | Description |
|---|---|
| PktLag | Delays the sending of a packet by the amount of time specified in milliseconds |
| PktLagVariance | Provides some randomness to the amount of time a packet is delayed, +/- the amount specified in milliseconds |
| PktLoss | Specifies a percentage chance of an outbound packet being discarded to simulate packet loss |
| PktDup | Specifies a percentage chance to send a duplicate packet |
| PktOrder | Sends packets out of order when enabled (1 = enabled, 0 = disabled) |
可以通过三种不同的方式来控制:命令行参数、控制台命令以及引擎 ini 配置。
在命令行启动:
1 | SettingName=Value |
在控制台设置:
1 | Net SettingName=Value |
以及在引擎配置 (DefaultEngine.ini) 中:
1 | [PacketSimulationSettings] |