Quantum 3
3.1.0
The asset wraps an instance of DeterministicSessionConfig and makes it globally (in Unity) accessible as a default config. More...
Public Member Functions | |
| void | OnAfterDeserialize () |
| Make sure limitations, calculations or overrides are applied. More... | |
| void | OnBeforeSerialize () |
| Not needed. More... | |
Static Public Member Functions | |
| static int | CalculateHardToleranceFrames (int offsetPingStart, int updateFps, int minInputDelay) |
| Calculate the hard tolerance from the ping value that starts local input delay. ceil((rtt / 2 + delta + slack) / delta) + 1 - min More... | |
Public Attributes | |
| DeterministicSessionConfig | Config |
| The config instance. More... | |
| int | HardTolerance = 8 |
| Override the calculated hard tolerance with this value. More... | |
| bool | OverrideHardTolerance |
| Override the hard tolerance calculation. More... | |
Static Public Attributes | |
| const int | AliasingSlackTimeMs = 30 |
| A rule of thumb time added to compensate to additional network transport and condition. More... | |
| static DeterministicSessionConfig | DefaultConfig => Global.Config |
| Return the default global config instance. More... | |
| const string | DefaultPath = "Assets/QuantumUser/Resources/SessionConfig.asset" |
| The default location of the global QuantumDeterministicSessionConfigAsset asset. More... | |
The asset wraps an instance of DeterministicSessionConfig and makes it globally (in Unity) accessible as a default config.
|
static |
Calculate the hard tolerance from the ping value that starts local input delay. ceil((rtt / 2 + delta + slack) / delta) + 1 - min
| offsetPingStart | Ping to start input delay |
| updateFps | Simulation update rate |
| minInputDelay | Min input delay |
|
inline |
Make sure limitations, calculations or overrides are applied.
Implements Quantum.ISerializationCallbackReceiver.
|
inline |
Not needed.
Implements Quantum.ISerializationCallbackReceiver.
|
static |
The default location of the global QuantumDeterministicSessionConfigAsset asset.
|
static |
A rule of thumb time added to compensate to additional network transport and condition.
| DeterministicSessionConfig Quantum.QuantumDeterministicSessionConfigAsset.Config |
The config instance.
| bool Quantum.QuantumDeterministicSessionConfigAsset.OverrideHardTolerance |
Override the hard tolerance calculation.
| int Quantum.QuantumDeterministicSessionConfigAsset.HardTolerance = 8 |
Override the calculated hard tolerance with this value.
|
static |
Return the default global config instance.