const MAX_SPANS: usize = 256;
Upper bound on buffered spans; exceeding it clears the buffer (the consumer is expected to drain every frame).