Documentation
    Preparing search index...

    Interface RollbackBufferOptions

    How a RollbackBuffer is configured.

    interface RollbackBufferOptions {
        capacity: number;
        target: RollbackTarget;
    }
    Index
    capacity: number

    How many snapshots to keep. Must be a positive integer.

    This is the rewind window in fixed steps, if every step is captured — an eight-entry buffer captured every step rewinds 133 ms at 60 Hz. Snapshot bytes are the solver's, so the memory cost is the world's size times this.

    The simulation to snapshot and rewind.