FarRelevance
The far relevance tier's arithmetic (docs/interest-management.md §16, NEB-388), shared by the worker, the gateway and the tests.
Nebula · Packages/com.1by3.nebula/Runtime/Interest/FarRelevance.cspublic static class FarRelevanceThe far relevance tier's arithmetic (docs/interest-management.md §16, NEB-388), shared by the worker, the gateway and the tests. An entity that declares a far radius (NetworkIdentity.FarRelevanceRadius) is seen beyond its normal radius, out to the far radius, as a pose at its far rate and nothing else.
Fields
MinRate, MaxRate
public const float MinRate = 0.1f, MaxRate = 30f;The fewest and most far updates a second an entity may ask for.
Methods
ClampRate
public static float ClampRate(float rate);A far update rate clamped to MinRate..MaxRate (1 for nonsense).
StayMargin
public static double StayMargin(double radius, double exitMargin);The hysteresis of the far tier: an entity in a receiver's far tier stays until it is this much further than its far radius. A twentieth of the radius, and never less than the mesh's exit margin, so a ship at 50 km has a 2.5 km band and a marker at the edge does not flicker four times a second.
Within
public static bool Within(double sqrDistance, double radius, bool held, double exitMargin);Whether an entry is inside a far radius of a point, with the tier's hysteresis when the receiver already holds it (held). Squared distance in, so a caller measuring several foci takes the least.
FarPublisher
The worker's half of the far tier: which gateways hear about each far entity, and when.
FocusHintDecision
What the server decided about one incoming focus hint: which mode to treat it in, and the point itself (a policy may move it — snap an RTS camera to the territory it is allowed to watch, say).