Skip to main content

InterpolationDelay

InterpolationDelay

A utility class that computes the time delay to use during property interpolation.

Properties

delay

float delay { get; }

The current delay, in seconds.

basis

double basis { get; }

The last timestamp used to adjust the interpolation delay.

Methods

Reset

void Reset()

Reset the delay to the default delay.

Adjust

void Adjust(double sent, double arrived, double sendrate)

Adjust the interpolation delay towards the ideal delay, accounting for jitter.

  • sent:The Realtime room time when the packet was sent.
  • arrived:The Realtime room time when the packet was received.
  • sendrate:The Realtime room datastore frame duration.