G-code Preview — API Reference
    Preparing search index...
    TUBE_SEGMENT_BUDGET: 400000 = 400_000

    Default kept-tube-segment budget (RR-006). Above this, tubes decimate to bound memory: ≈400k tube segments measure ≈ 350 MB CPU + ~350 MB GPU (~700 MB peak with both copies live during upload), leaving real headroom inside a 2 GB render cgroup for the base heap, source bytes, and framework. The scene layer applies it only when a build resolves to tube geometry; a memory-rich host can raise it.