Skip to main content

Module tick

Module tick 

Source
Expand description

Main-world tick stages and the Tick resource.

Structs§

Tick
Per-tick frame clock resource.
WakeDeadline
Per-tick “tick again no later than this” request, the timed counterpart of AnimationsActive.

Enums§

TickStage
The five ordered main-world stages of a Lumen tick.

Functions§

reset_wake_deadline
Clears WakeDeadline at the top of every tick (registered in TickStage::Input, chained before the Systems stage where drivers request), so a deadline nobody renews stops waking the loop.
wake_deadline
The earliest instant a driver asked for another tick at, if any.
work_pending
Whether the tick that just ran left work behind, so a driver that only wakes on events has to schedule another frame.