Skip to main content

Module iterative

Module iterative 

Source
Expand description

Iterative (stateful, stepped) evaluation. Iterative (stateful, stepped) evaluation: the IterativeEval capability trait and its Iterative adapter into the general Eval protocol.

Content is sequence: an iterative segment owns its simulation step (sim_step, declared via with_steps(N)), its integration state, and its current progress. Advancing folds direction management — forward integrates sim_step-by-sim_step, backward resets and replays — so the runtime only ever asks “evaluate at progress alpha”. No seconds, no scene clock, no logic_fps reach a segment’s content.

If with_steps is not called, the segment uses the default step of 1 / 120 (DEFAULT_SIM_STEP): every unit of normalized progress is integrated in 120 uniform substeps. Use with_steps(N) when a simulation needs a finer or coarser content resolution.

Structs§

Iterative
Adapter turning an IterativeEval into the general Eval protocol.
IterativeFn
An IterativeEval backed by a stepping function.
Snapshot 🔒
The memoization snapshot backing an iterative segment.

Constants§

DEFAULT_SIM_STEP 🔒
The default content step when the author does not declare one: 1/120 progress per step (the historical 120 Hz logic-grid resolution, now expressed as a per-segment content property rather than a scene parameter).

Traits§

IterativeEval
The capability of an iterative, stateful evaluation.