Class Stats.AdaptivePerformance
Provides performance statistics useful for adaptive performance systems. Not every stat is supported on every Oculus platform and will always return a value of 0 if unsupported.
Namespace: Unity.XR.Oculus
Syntax
public static class AdaptivePerformance
Properties
AdaptivePerformanceScale
Returns the recommended amount to scale GPU work in order to maintain framerate. Can be used to adjust viewportScale and textureScale
Declaration
public static float AdaptivePerformanceScale { get; }
Property Value
Type | Description |
---|---|
Single |
BatteryLevel
Gets the current available battery charge, ranging from 0.0 (empty) to 1.0 (full).
Declaration
public static float BatteryLevel { get; }
Property Value
Type | Description |
---|---|
Single |
BatteryTemp
Gets the current battery temperature in degrees Celsius.
Declaration
public static float BatteryTemp { get; }
Property Value
Type | Description |
---|---|
Single |
CPULevel
Gets the current CPU performance level, integer in the range 0 - 3.
Declaration
public static int CPULevel { get; }
Property Value
Type | Description |
---|---|
Int32 |
GPUAppTime
Reports the time the application spent on the GPU last frame in seconds.
Declaration
public static float GPUAppTime { get; }
Property Value
Type | Description |
---|---|
Single |
GPUCompositorTime
Reports the time the compositor spent on the GPU last frame in seconds.
Declaration
public static float GPUCompositorTime { get; }
Property Value
Type | Description |
---|---|
Single |
GPULevel
Gets the current GPU performance level, integer in the range 0 - 3.
Declaration
public static int GPULevel { get; }
Property Value
Type | Description |
---|---|
Int32 |
MotionToPhoton
Reports the latency from when the last predicted tracking information was queried by the application to the moment the middle scaline of the target frame is illuminated on the display.
Declaration
public static float MotionToPhoton { get; }
Property Value
Type | Description |
---|---|
Single |
PowerSavingMode
If true, the system is running in a reduced performance mode to save power.
Declaration
public static bool PowerSavingMode { get; }
Property Value
Type | Description |
---|---|
Boolean |
RefreshRate
Reports the display's refresh rate in frames per second
Declaration
[Obsolete("RefreshRate is deprecated. Use Performance.TryGetDisplayRefreshRate instead.", false)]
public static float RefreshRate { get; }
Property Value
Type | Description |
---|---|
Single |