Skip to content

Simulating Lag

Packet Simulation Settings

Setting Description
PktLag Sets network packet lag (specified in ms)
PktLagVariance Sets a variable network packet lag (± the amount specified in ms)
PktLoss Simulates outgoing packet loss (specified in percent)
PktIncomingLoss Simulates incoming packet loss (specified in percent)
PktDub Simulates sending/receiving duplicate packets (specified in percent)
PktOrder Simulates network packets received out of order (1 = enabled, 0 = disabled)

More settings can be found in the FPacketSimulationSettings docs


How to apply Packet Simulation settings

These settings can be set in DefaultEngine.ini

DefaultEngine.ini
1
2
3
4
5
6
[PacketSimulationSettings]
PktLag=250
PktLagVariance=20
PktLoss=10
PktDup=0
PktOrder=1

These settings can be set through the console

Console
NetEmulation.PktLag 300

Some of these settings can be set directly in the Project Settings

Network Emulation in Project Settings