Struct NetcodeConfigConstants
Constants used as default values for netcode config options.
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.NetCode.dll
Syntax
public struct NetcodeConfigConstants
Fields
ClientReceiveQueueCapacity
Capacity of the receive queue (per pipeline-stage) on the client. This should be the maximum number of in-flight packets expected to be received by the client - from the server - during a worst-case frame (like if the client executable stalls).
Declaration
public const int ClientReceiveQueueCapacity = 64
Field Value
| Type | Description |
|---|---|
| int |
ClientSendQueueCapacity
Capacity of the send queue (per pipeline-stage) on the client. This should be the maximum number of packets expected to be sent by the client, per pipeline-stage, in a single update (i.e. each render frame).
Declaration
public const int ClientSendQueueCapacity = 64
Field Value
| Type | Description |
|---|---|
| int |
GhostPrefabLoadingTimeout
Default amount of time after which a missing ghost prefab on the client will result in an error and forced disconnect from the server. With a non-zero value the clients also report which ghost prefabs they have loaded, so they can load them in any order and the server only streams ghosts of the loaded types.
Declaration
public const int GhostPrefabLoadingTimeout = 0
Field Value
| Type | Description |
|---|---|
| int | Timeout in seconds. |