Class StartupSettings
Changes to the startup settings are only respected when those are made before Adaptive Performance starts, for instance, from a method with the attribute [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]).
Inheritance
Namespace: UnityEngine.AdaptivePerformance
Syntax
public static class StartupSettings
Properties
AutomaticPerformanceControl
The Initial value of AutomaticPerformanceControl.
Declaration
public static bool AutomaticPerformanceControl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Enable
Enable Adaptive Performance.
Declaration
public static bool Enable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Logging
Control debug logging. This setting only affects development builds. In release builds all logging is disabled. This setting can also be controlled after startup using Logging. Logging is disabled by default.
Declaration
public static bool Logging { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PreferredSubsystem
You can use this property to override the automatic selection of an Adaptive Performance subsystem. You should use this primarily for testing.
Declaration
public static AdaptivePerformanceSubsystem PreferredSubsystem { get; set; }
Property Value
Type | Description |
---|---|
AdaptivePerformanceSubsystem |
StatsLoggingFrequencyInFrames
Adjust the frequency in frames at which the application logs frame statistics to the console.
This is only relevant when logging is enabled. See Logging.
This setting can also be controlled after startup using
Declaration
public static int StatsLoggingFrequencyInFrames { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Logging frequency in frames (default: 50) |