ReplayTimer Class

Replay timer class used to pace frame publication for file-based playback.

Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.166 -- Release Build+4f9601ce2fc7721cafe5edaeacb540e40faa3f58
public sealed class ReplayTimer
Inheritance
Object    ReplayTimer

Remarks

Uses absolute deadline advancement to maintain consistent inter-frame intervals. For longer intervals, e.g., 30 FPS / ~33ms, a single bulk Sleep(Int32) is used for most of the wait, followed by yield/spin for the final approach — minimizing OS scheduler jitter compared to many individual Thread.Sleep(1) calls.

Also supports very high frame rates, e.g., 3000 FPS, where the yield/spin path naturally dominates due to sub-millisecond intervals.

Constructors

ReplayTimer Creates a new ReplayTimer instance.

Properties

DefinedFrameRate Gets the defined frame rate for this timer.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
WaitNext Blocks until the next scheduled frame rate interval.

See Also