Documentation
¶
Overview ¶
Package animclock is the instant animations read: the local clock, or the one a test pins with SetClock, and the conversion of a frame callback's timestamp onto it. The clocks that schedule animations live in package anim.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FrameClock ¶ added in v0.2.5
type FrameClock struct {
// contains filtered or unexported fields
}
FrameClock converts a frame callback's timestamp, milliseconds from an undefined base that wraps, to an instant on the local clock.
func (*FrameClock) Instant ¶ added in v0.2.5
Instant is when the compositor's ms happened on the local clock, never after now. It keeps the earliest local reading of the compositor's clock as its anchor, so a delivery's latency is what it subtracts, and starts again from now when ms sits further behind than any delivery plausibly does.