Skip to main content

Class SparseRenderContextOptions

Namespace: VelloSharp
Assembly: VelloSharp.dll

Provides configuration for sparse CPU rendering, including optional multithreading control.

public sealed class SparseRenderContextOptions

Inheritance

objectSparseRenderContextOptions

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

EnableMultithreading

Gets or sets a value indicating whether multithreaded rendering should be enabled. Defaults to true.

public bool EnableMultithreading { get; set; }

Property Value

bool

SimdLevel

Gets or sets the SIMD level the renderer should target. Defaults to automatic detection.

public SparseSimdLevel SimdLevel { get; set; }

Property Value

SparseSimdLevel

ThreadCount

Gets or sets an explicit worker thread count to use when multithreading is enabled. A value of null lets the renderer choose automatically.

public int? ThreadCount { get; set; }

Property Value

int?

Methods

Clone()

public SparseRenderContextOptions Clone()

Returns

SparseRenderContextOptions

CreateForCurrentMachine(bool)

public static SparseRenderContextOptions CreateForCurrentMachine(bool enableMultithreading = true)

Parameters

enableMultithreading bool

Returns

SparseRenderContextOptions

DetectSimdLevel()

public static SparseSimdLevel DetectSimdLevel()

Returns

SparseSimdLevel

DetectThreadCount()

public static int DetectThreadCount()

Returns

int