Skip to main content

ConnectionReceiveSettings

A class in Root.Township, Alta.Networking.Internal.

Global settings for how a client spreads processing of received reliable messages over frames. Servers always process straight away.

Constructors​

MemberWhat it is
ConnectionReceiveSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

6 private and internal fields
MemberWhat it is
private float maxProcessingAllowanceTimed receiver: the most milliseconds of processing allowance that can build up (default 5).
private int maxReliableMessagePerFrameCounted receiver: reliable messages processed per frame before the rest are queued (default 20).
private float maxReliableMessageProcessingDurationMsTimed receiver: time budget in ms for reliable messages per frame (default 5).
private float minAllowanceToProcessTimed receiver: packets are queued while the allowance is below this many ms (default 2).
private int minReliableMessagePerFrameTimed receiver: reliable messages to process per frame even when over budget (default 5).
private float processingPercentTimed receiver: share of each frame's time added to the processing allowance (default 0.1).

Properties​

MemberWhat it is
float MaxProcessingAllowance { get; set; }Most milliseconds of processing the timed receiver can save up.
float MaxReliableMessageProcessingDurationMs { get; set; }Not read anywhere else in this build.
int MaxReliableMessagesPerFrame { get; }The counted receiver queues messages after this many in a frame (default 20).
float MinAllowanceToProcess { get; set; }The timed receiver queues messages while its allowance is below this many milliseconds.
int MinReliableMessagePerFrame { get; set; }Not read anywhere else in this build.
float ProcessingPercent { get; set; }Share of each frame's time the timed receiver may spend processing (default 0.1).

Used in​

Members of other types that take, return or hold a ConnectionReceiveSettings: