Table of Contents

Class BandBuilder

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Declares a Sphere's distance bands (09 § 9): beyond a fraction of the radius, an entity's updates are sent every N ticks instead of every tick.

public sealed class BandBuilder
Inheritance
BandBuilder
Inherited Members

Remarks

What a band defers and what it never does. An update to an entity held in a band — before and after the frame — is sent on the entity's flush tick for that band, (netId + tick) mod N = 0, as the groups it changed in the last N ticks. Enters and leaves are never deferred, and an entity that comes inward across a band's boundary gets its whole state at once.

N is 2, 4 or 8, each band's larger than the one inside it: the flush ticks of a band are then flush ticks of every band inside it, which is what lets one fold serve them all. At most three bands, their boundaries rising in (0, 1) — fractions of the radius the session is gathered at.

Fields

MaxBands

The most bands a Sphere may declare.

public const int MaxBands = 3

Field Value

int

Methods

Every(int, double)

Beyond beyond of the radius, updates are sent every n ticks.

public BandBuilder Every(int n, double beyond)

Parameters

n int

2, 4 or 8, larger than the band inside it's.

beyond double

The band's inner boundary, a fraction of the radius in (0, 1), beyond the band inside it's.

Returns

BandBuilder

This builder.