Skip to main content

CompositionOptions Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
public class CompositionOptions

Inheritance: object -> CompositionOptions

Constructors

NameDescription
CompositionOptionsNo summary available.

CompositionOptions Constructor

public CompositionOptions()

Properties

NameDescription
DirtyRectMergeEagernessControls the eagerness of merging dirty rects. WPF uses 50000, Avalonia currently has a different default that's a subject to change. You can play with this property to find the best value for your application.
MaxDirtyRectsThe maximum number of dirty rects to track when region clip is in use. Setting this to zero or negative value will remove the smarter algorithm and will use underlying drawing context region support directly. Default value is 8.
UseRegionDirtyRectClippingEnables more accurate tracking of dirty rects by utilizing regions if supported by the underlying drawing context
UseSaveLayerRootClipEnforces dirty contents to be rendered into an extra intermediate surface before being applied onto the saved frame. Required as a workaround for Skia bug https://issues.skia.org/issues/327877721

DirtyRectMergeEagerness Property

Controls the eagerness of merging dirty rects. WPF uses 50000, Avalonia currently has a different default that's a subject to change. You can play with this property to find the best value for your application.

public Nullable<double> DirtyRectMergeEagerness { get; set; }

MaxDirtyRects Property

The maximum number of dirty rects to track when region clip is in use. Setting this to zero or negative value will remove the smarter algorithm and will use underlying drawing context region support directly. Default value is 8.

public Nullable<int> MaxDirtyRects { get; set; }

UseRegionDirtyRectClipping Property

Enables more accurate tracking of dirty rects by utilizing regions if supported by the underlying drawing context

public Nullable<bool> UseRegionDirtyRectClipping { get; set; }

UseSaveLayerRootClip Property

Enforces dirty contents to be rendered into an extra intermediate surface before being applied onto the saved frame. Required as a workaround for Skia bug https://issues.skia.org/issues/327877721

public Nullable<bool> UseSaveLayerRootClip { get; set; }