Skip to main content

MAX_LSYSTEM_DEPTH

Constant MAX_LSYSTEM_DEPTH 

Source
pub const MAX_LSYSTEM_DEPTH: u32 = 7;
Expand description

Hard clamp on L-system iteration depth, enforced at preset load. A branching rule expands exponentially, so an unbounded max_depth would stall a preset switch and blow the segment cap (ADR-0007 Risks). Curated presets stay well under this; the turtle’s own segment cap is the second backstop.