Table of Contents

Class PredictionHealth

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

The client's own prediction health over the last minute: how often the server corrected its movement by more than a centimetre, and what share of the hits it predicted the server rejected. Shown in the network overlay; the numbers every prediction fix is measured by.

public static class PredictionHealth
Inheritance
PredictionHealth
Inherited Members

Fields

CorrectionThresholdMetres

A correction counts when the server's position for a tick differs from the prediction by more than this, m.

public const float CorrectionThresholdMetres = 0.01

Field Value

float

WindowSeconds

The window the figures cover, seconds.

public const float WindowSeconds = 60

Field Value

float

Properties

CorrectionsPerMinute

Corrections over CorrectionThresholdMetres in the last minute.

public static int CorrectionsPerMinute { get; }

Property Value

int

HitsAnswered

Predicted hits the server answered in the last minute.

public static int HitsAnswered { get; }

Property Value

int

LargestCorrectionMetres

The largest correction in the window, m.

public static float LargestCorrectionMetres { get; }

Property Value

float

RejectedHitShare

The share of answered predicted hits the server rejected in the last minute; NaN with none.

public static double RejectedHitShare { get; }

Property Value

double

Methods

EnsureSubscribed()

Starts counting predicted hits (idempotent; client only).

public static void EnsureSubscribed()

NoteCorrection(float)

Records one reconcile's correction: the distance between the server's position for a tick and the prediction.

public static void NoteCorrection(float metres)

Parameters

metres float