Field receiveQueueCapacity
Capacity of the receive queue. This should be the maximum number of packets expected to be received in a single update (each frame). The best value for this will depend heavily on the game type, but generally should be a multiple of the maximum number of players. The only impact of increasing this value is increased memory usage, with an expected ~1400 bytes of memory being used per unit of capacity. The queue is shared across all connections, so servers should set this higher than clients.
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
public int receiveQueueCapacity
Returns
Type | Description |
---|---|
int | Queue capacity in number of packets. |