Project configuration settings specific to how the Simulation class behaves.
More...
|
int | ClientPacketInterval = 1 |
| This value times TickRate determines the network send rate for clients. A value of 1 instructs clients to send input/state updates to the server every simulation tick. Values greater than 1 will send an update every N ticks. Higher values reduce data usage, in exchange for increased latency and reduced state sync accuracy. More...
|
|
int | DefaultPlayers = 10 |
| The default number of players allowed to join a game instance. Can also be changed in code when starting Fusion. More...
|
|
bool | HostMigration |
| If, in host mode, we should allow host migration if the current host leaves. More...
|
|
int | InputDataWordCount |
|
int | MaxPrediction = 60 |
| The max amount of predicted ticks on a client in server or host mode, if this is overstepped on client a hard reset will be done on client to bring it down to correct prediction . More...
|
|
bool | ObjectInterest |
| Selects if Object Interest should be used when running in StateReplicationModes.EventualConsistency mode. When enabled, clients will only receive updates for objects which they have interest in. How interest is determined for each NetworkObject is based on its NetworkObject.ObjectInterest mode setting. More...
|
|
StateReplicationModes | ReplicationMode |
| Determines which StateReplicationModes mode will be used. More...
|
|
int | ServerPacketInterval = 1 |
| This value times TickRate determines the network send rate for the server. A value of 1 instructs the server to send state updates to clients every simulation tick. Values greater than 1 will send a input/state updates every N ticks. Higher values reduce data usage, in exchange for increased latency and reduced state sync accuracy. More...
|
|
int | TickRate = 60 |
| The update rate of the simulation in Hz (ticks per second). More...
|
|
Topologies | Topology |
| The topology used More...
|
|
Project configuration settings specific to how the Simulation class behaves.
◆ StateReplicationModes
Enumerates the types of state replication available.
Enumerator |
---|
DeltaSnapshots | Server Authoritative, Delta Snapshots send the complete world state from every network tick. This produces the highest accuracy simulation replication, but may not be suitable for higher object and player counts.
|
EventualConsistency | Server Authoritative, Eventual Consistency allows for partial/culled state transmission, which may be necessary for implementing Area of Interest, high networked object counts, or high player counts.
|
◆ Topologies
Enumerator |
---|
ClientServer | Classic server and client model
|
Shared | Relay based shared world model
|
◆ ClientPacketInterval
int ClientPacketInterval = 1 |
This value times TickRate determines the network send rate for clients. A value of 1 instructs clients to send input/state updates to the server every simulation tick. Values greater than 1 will send an update every N ticks. Higher values reduce data usage, in exchange for increased latency and reduced state sync accuracy.
◆ DefaultPlayers
The default number of players allowed to join a game instance. Can also be changed in code when starting Fusion.
◆ HostMigration
If, in host mode, we should allow host migration if the current host leaves.
◆ InputDataWordCount
◆ MaxPrediction
The max amount of predicted ticks on a client in server or host mode, if this is overstepped on client a hard reset will be done on client to bring it down to correct prediction .
◆ ObjectInterest
Selects if Object Interest should be used when running in StateReplicationModes.EventualConsistency mode. When enabled, clients will only receive updates for objects which they have interest in. How interest is determined for each NetworkObject is based on its NetworkObject.ObjectInterest mode setting.
◆ ReplicationMode
◆ ServerPacketInterval
int ServerPacketInterval = 1 |
This value times TickRate determines the network send rate for the server. A value of 1 instructs the server to send state updates to clients every simulation tick. Values greater than 1 will send a input/state updates every N ticks. Higher values reduce data usage, in exchange for increased latency and reduced state sync accuracy.
◆ TickRate
The update rate of the simulation in Hz (ticks per second).
◆ Topology
◆ ClientPacketDeltaTime
double ClientPacketDeltaTime |
|
get |
◆ DeltaTime
Returns the inverse of TickRate. The time (in seconds) between simulation ticks.
◆ InputTotalWordCount
◆ ServerDeltaTime
◆ ServerPacketDeltaTime
double ServerPacketDeltaTime |
|
get |