pub type Status = Reading;
Aliased Type§
enum Status {
Tick,
Frame {
phase: f32,
},
Idle {
duration: Duration,
},
TimeWentBackwards,
TicksLost,
}
Variants§
Tick
You should perform a logic tick.
Frame
Fields
You should render a frame.
Idle
Fields
No Tick
or Frame
occurred this sample. If you call
std::thread::sleep(duration)
(or equivalent) and then sample again,
you will have waited exactly long enough for the next Tick
or Frame
to appear.
TimeWentBackwards
The NowSource
reported a timestamp strictly
earlier than a previous timestamp. This should never happen. A temporal
anomaly has happened. This should be handled by showing some sort of
warning, or ignored.
ftvf
currently fails to detect temporal anomalies that result in one
tick or less of “slip”.
TicksLost
Time is passing more quickly than we can process ticks; specifically,
more than the Metronome
’s max_ticks_behind
ticks worth of time has passed since the last time we finished a batch
of ticks. This should be handled by showing some sort of warning, or
ignored.