Table of Contents

Enum DirtyTrackingMode

Namespace
SharpConsoleUI.Configuration
Assembly
SharpConsoleUI.dll

Dirty tracking granularity for double-buffering optimization.

public enum DirtyTrackingMode
Extension Methods

Fields

Cell = 1

Track dirty at cell/region-level granularity. Only render the specific changed regions within lines. Pros: Minimal output, optimal for small changes. Cons: More cursor moves, slightly more complex.

Line = 0

Track dirty at line-level granularity. When any cell in a line changes, render the entire line. Pros: Simpler, fewer cursor moves, proven stable. Cons: Outputs entire line (~200 cells) even for single character change.

Smart = 2

Smart adaptive mode - chooses LINE or CELL strategy per line based on heuristics. Analyzes dirty pattern (coverage + fragmentation) and selects optimal rendering strategy. Pros: Best of both worlds, automatic optimization, no configuration needed. Cons: Slight decision overhead (optimized single-pass), more complex logic.