Skip to content

DirtyRegionEngine

ClassLEDStudioLEDStudio
public sealed class DirtyRegionEngine

Dirty-region tracking engine implementing the rect-union with cap algorithm. Sources report dirty rects. The engine merges overlapping/adjacent rects greedily. When the merged area exceeds a configurable threshold or the rect count exceeds a cap, it falls back to full-frame update.

public bool IsFullFrame { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public IReadOnlyList<RectInt> DirtyRects { get; }

No description is available for this member.

Returns

System.Collections.Generic.IReadOnlyList{UnityEngine.RectInt} — No return description is available.

public DirtyRegionEngine(Vector2Int boardResolution, int maxRects = 8, float coverageThreshold = 0.5)

No description is available for this member.

Parameters

Name Type Description
boardResolution UnityEngine.Vector2Int
maxRects System.Int32
coverageThreshold System.Single

public void Begin()

No description is available for this member.

public void AddRect(RectInt rect)

No description is available for this member.

Parameters

Name Type Description
rect UnityEngine.RectInt
public void MarkFullFrame()

No description is available for this member.