Expand description
Tick strategy primitives for selective background ticking.
The runtime always ticks the active screen. A TickStrategy decides
whether each inactive screen should receive a tick on a given frame.
§Standalone structs vs. convenience enum
Each built-in strategy has a standalone struct (ActiveOnly, Uniform,
ActivePlusAdjacent) that implements TickStrategy directly. For
quick selection among built-ins, use TickStrategyKind which delegates
to the same logic.
Structs§
- Active
Only - Simplest strategy — all inactive screens are skipped every frame.
- Active
Plus Adjacent - Tick the active screen’s declared neighbors at full rate while all other inactive screens use a reduced divisor.
- Custom
- Closure-based tick strategy for app-specific logic.
- Decay
Config - Configuration for automatic temporal decay in
MarkovPredictor. - Markov
Predictor - Markov-chain predictor wrapping a
TransitionCounter. - Predictive
- Markov-chain-driven tick strategy.
- Predictive
Config - Minimal predictive strategy config used by
TickStrategyKind. - Predictive
Strategy Config - Configuration for the
Predictivetick strategy. - Screen
Prediction - A single screen prediction with probability and confidence.
- Tick
Allocation - Maps transition probability to tick divisor.
- Transition
Counter - In-memory frequency matrix for
(from, to)transition counting. - Transition
Entry - A single recorded screen transition.
- Transition
History - Fixed-capacity ring buffer of screen transitions.
- Uniform
- Tick every inactive screen at a fixed reduced rate: every Nth frame.
Enums§
- Allocation
Curve - Curve controlling how probability maps to divisor.
- Tick
Decision - Decision returned by a
TickStrategyfor an inactive screen. - Tick
Strategy Kind - Built-in strategy selection convenience enum.
Traits§
- Screen
Tick Dispatch - Implemented by
Models that manage multiple screens and want per-screen tick control viaTickStrategy. - Tick
Strategy - Controls which inactive screens get ticked on each frame.