Skip to content

Class PerformanceConfig

Definition

Namespace: StardewUI.Framework
Assembly: StardewUI.dll

Configuration sub-settings providing control over performance tweaks.

public class PerformanceConfig

Inheritance
Object ⇦ PerformanceConfig

Members

Constructors

Name Description
PerformanceConfig()

Properties

Name Description
EnableParallelDescriptors Whether to process member descriptors of a view or model in parallel.
EnableReflectionWarmup Whether to warm up StardewUI's reflection cache on a background thread during game start.

Details

Constructors

PerformanceConfig()

public PerformanceConfig();

Properties

EnableParallelDescriptors

Whether to process member descriptors of a view or model in parallel.

public bool EnableParallelDescriptors { get; set; }
Property Value

Boolean

Remarks

Parallel processing will often make first-time loads slower rather than faster, due to scheduling overhead and some synchronization. This may be beneficial if types with hundreds of fields/properties are involved.


EnableReflectionWarmup

Whether to warm up StardewUI's reflection cache on a background thread during game start.

public bool EnableReflectionWarmup { get; set; }
Property Value

Boolean

Remarks

This will usually improve first-time loads of menus by 10-20%, and tends to have no cost/imperceptible cost on app startup, since it uses only one background thread (no parallelism) and other startup tasks tend to run on main thread only.