Class PerformanceConfig
Definition
Namespace: StardewUI.Framework
Assembly: StardewUI.dll
Configuration sub-settings providing control over performance tweaks.
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()
Properties
EnableParallelDescriptors
Whether to process member descriptors of a view or model in parallel.
Property Value
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.
Property Value
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.