Photon Unity Networking: Network Simulation GUI

Photon Unity Networking

Photon Unity Networking  v1.91
Network Simulation GUI

Simple GUI element to control the built-in network condition simulation.

The Photon client library can simulate network conditions for lag (message delay) and loss, which can be a good tool for developer when testing with a local server or on near perfect network conditions.

To use it, add the component PhotonNetSimSettingsGui to an enabled GameObject in your scene. At runtime, the top left of the screen shows the current roundtrip time (RTT) and the controls for network simulation:

  • RTT: The roundtrip time is the average of milliseconds until a message was acknowledged by the server. The variance value (behind the +/-) shows how stable the rtt is (a lower value being better).
  • "Sim" toggle: Enables and disables the simulation. A sudden, big change of network conditions might result in disconnects.
  • "Lag" slider: Adds a fixed delay to all outgoing and incoming messages. In milliseconds.
  • "Jit" slider: Adds a random delay of "up to X milliseconds" per message.
  • "Loss" slider: Drops the set percentage of messages. You can expect less than 2% drop in the internet today.
Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH