DirtyRegionEngine
public sealed class DirtyRegionEngineDirty-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.
Properties
Section titled “Properties”
IsFullFrame
Section titled “IsFullFrame”public bool IsFullFrame { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
DirtyRects
Section titled “DirtyRects”public IReadOnlyList<RectInt> DirtyRects { get; }No description is available for this member.
Returns
System.Collections.Generic.IReadOnlyList{UnityEngine.RectInt} — No return description is available.
Constructors
Section titled “Constructors”
DirtyRegionEngine(Vector2Int, int, float)
Section titled “DirtyRegionEngine(Vector2Int, int, float)”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 |
Methods
Section titled “Methods”
Begin()
Section titled “Begin()”public void Begin()No description is available for this member.
AddRect(RectInt)
Section titled “AddRect(RectInt)”public void AddRect(RectInt rect)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
rect |
UnityEngine.RectInt | |
MarkFullFrame()
Section titled “MarkFullFrame()”public void MarkFullFrame()No description is available for this member.