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 for maximum performance when you handle flushing manually.

Implementation

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