Photon Fusion
2.1.1
Configuration for network conditions simulation (induced latency and loss). More...
Public Member Functions | |
| NetworkSimulationConfiguration | Clone () |
| Creates a copy of this NetworkSimulationConfiguration. | |
| NetConfigSimulation | Create () |
| Creates a new NetConfigSimulation based on the current configuration. | |
| void | SanityCheck () |
Public Attributes | |
| double | AdditionalJitter = 0.05 |
| After the delay value from the DelayShape oscillator is determined, random 0 to this value of additional seconds be added to the packet latency. | |
| double | AdditionalLoss = 0 |
| After the LossChanceShape oscillation loss chance is calculated, an additional random value of 0 to this (normalized) percentage of loss chance is added. | |
| double | DelayMax = 0.15 |
| The highest packet delay value returned from the DelayShape oscillator. | |
| double | DelayMin = 0.15 |
| The lowest packet delay value returned from the DelayShape oscillator. | |
| double | DelayPeriod = 0 |
| The period of the DelayShape oscillator (the rate at which delay oscillates in seconds). | |
| NetConfigSimulationOscillator.WaveShape | DelayShape = NetConfigSimulationOscillator.WaveShape.Noise |
| The pattern used to oscillate between DelayMin and DelayMax values. | |
| double | DelayThreshold = 0 |
| The DelayShape oscillates between 0 and 1. Values below this threshold are reduced to zero, resulting in a value equal to DelayMin. | |
| bool | Enabled |
| If adverse network conditions are being simulated. | |
| double | LossChanceMax = 0.05 |
| The highest loss chance value the LossChanceShape oscillator will produce. 0 = 0% chance of being lost. 1 = 100% chance of being lost. | |
| double | LossChanceMin = 0.05 |
| The lowest loss chance value the LossChanceShape oscillator will produce. 0 = 0% chance of being lost. 1 = 100% chance of being lost. | |
| double | LossChancePeriod = 0 |
| The period of the LossChanceShape oscillator (the rate at which delay oscillates between LossChanceMin and LossChanceMax). | |
| NetConfigSimulationOscillator.WaveShape | LossChanceShape = NetConfigSimulationOscillator.WaveShape.Noise |
| The pattern used to oscillate between LossChanceMin and LossChanceMax values. | |
| double | LossChanceThreshold = 0 |
| The LossChanceShape wave oscillates between 0 and 1. Values below this threshold are reduced to zero, resulting in a value equal to LossChanceMin. | |
Configuration for network conditions simulation (induced latency and loss).
| NetConfigSimulation Create | ( | ) |
Creates a new NetConfigSimulation based on the current configuration.