setAutoFlush method

void setAutoFlush(
  1. bool enabled
)

Sets the default auto-flush behavior for this renderer.

When enabled is true (default), stdout.flush() is called automatically after each render() call. This ensures immediate output visibility in TTY environments but may impact performance in high-frequency rendering.

Set to false when the caller owns the output-flush schedule.

Implementation

void setAutoFlush(bool enabled) {
  _autoFlush = enabled;
}