1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Paces a slow loop from a faster tick.
/// Decides on which ticks a slow loop runs and over how much time it steps.
///
/// The loop is due on its first tick, then on the tick nearest each `period` (half a tick of
/// slack, which also absorbs f32 accumulation: 8 × 2.5 ms sums to 19.999998 ms). A run steps
/// over the whole time since the last one, so integrals see real time even when the period
/// isn't a whole number of ticks. Allocation-free.
///
/// The period is passed to each [`due`](Self::due) call rather than stored, so the owner's
/// config stays the single source of truth and a new period applies on the next tick.
pub