struct ovrPerfStats {
ovrPerfStatsPerCompositorFrame FrameStats[ovrMaxProvidedFrameStats];
int FrameStatsCount;
ovrBool AnyFrameStatsDropped;
float AdaptiveGpuPerformanceScale;
ovrBool AswIsAvailable;
ovrProcessId VisibleProcessId;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OVRPerfStats.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ADAPTIVEGPUPERFORMANCESCALE
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ANYFRAMESTATSDROPPED
The struct member offsets. |
| public static final int | ASWISAVAILABLE
The struct member offsets. |
| public static final int | FRAMESTATS
The struct member offsets. |
| public static final int | FRAMESTATSCOUNT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VISIBLEPROCESSID
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OVRPerfStats(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public float | AdaptiveGpuPerformanceScale()
an edge-filtered value that a caller can use to adjust the graphics quality of the application to keep the GPU utilization in check. |
| public boolean | AnyFrameStatsDropped()
If the app calls |
| public boolean | AswIsAvailable()
Will be true if Async Spacewarp (ASW) is available for this system which is dependent on several factors such as choice of GPU, OS and debug overrides. |
| public static OVRPerfStats | |
| public static OVRPerfStats. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OVRPerfStats | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRPerfStats. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRPerfStats | |
| public static OVRPerfStats | |
| public static OVRPerfStats. | |
| public static OVRPerfStats. | |
| protected OVRPerfStats | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static OVRPerfStats | |
| public static OVRPerfStats | |
| public static OVRPerfStats. | create(int
the buffer capacity capacity)Returns a new |
| public static OVRPerfStats. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OVRPerfStats | |
| public static OVRPerfStats. | |
| public OVRPerfStatsPerCompositorFrame. | |
| public OVRPerfStatsPerCompositorFrame | |
| public int | |
| public static OVRPerfStats | |
| public static OVRPerfStats. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OVRPerfStats | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRPerfStats. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRPerfStats | |
| public static OVRPerfStats | |
| public static OVRPerfStats. | |
| public static OVRPerfStats. | |
| public static float | |
| public static boolean | |
| public static boolean | |
| public static OVRPerfStatsPerCompositorFrame. | |
| public static OVRPerfStatsPerCompositorFrame | |
| public static int | |
| public static int | |
| public int | |
| public int |
| ADAPTIVEGPUPERFORMANCESCALE | back to summary |
|---|---|
| public static final int ADAPTIVEGPUPERFORMANCESCALE The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ANYFRAMESTATSDROPPED | back to summary |
|---|---|
| public static final int ANYFRAMESTATSDROPPED The struct member offsets. | |
| ASWISAVAILABLE | back to summary |
|---|---|
| public static final int ASWISAVAILABLE The struct member offsets. | |
| FRAMESTATS | back to summary |
|---|---|
| public static final int FRAMESTATS The struct member offsets. | |
| FRAMESTATSCOUNT | back to summary |
|---|---|
| public static final int FRAMESTATSCOUNT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VISIBLEPROCESSID | back to summary |
|---|---|
| public static final int VISIBLEPROCESSID The struct member offsets. | |
| OVRPerfStats | back to summary |
|---|---|
| protected OVRPerfStats(long address, ByteBuffer container) | |
| OVRPerfStats | back to summary |
|---|---|
| public OVRPerfStats(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| AdaptiveGpuPerformanceScale | back to summary |
|---|---|
| public float AdaptiveGpuPerformanceScale() an edge-filtered value that a caller can use to adjust the graphics quality of the application to keep the GPU utilization in check. The value is
calculated as: As such, when this value is 1.0, the GPU is doing the right amount of work for the app. Lower values mean the app needs to pull back on the GPU
utilization. If the app is going to directly drive render-target resolution using this value, then be sure to take the square-root of the value before
scaling the resolution with it. Changing render target resolutions however is one of the many things an app can do increase or decrease the amount of
GPU utilization. Since | |
| AnyFrameStatsDropped | back to summary |
|---|---|
| public boolean AnyFrameStatsDropped() If the app calls
| |
| AswIsAvailable | back to summary |
|---|---|
| public boolean AswIsAvailable() Will be true if Async Spacewarp (ASW) is available for this system which is dependent on several factors such as choice of GPU, OS and debug overrides.
| |
| calloc | back to summary |
|---|---|
| public static OVRPerfStats calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OVRPerfStats. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRPerfStats calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OVRPerfStats. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static OVRPerfStats callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRPerfStats callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRPerfStats. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static OVRPerfStats. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected OVRPerfStats create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OVRPerfStats create() Returns a new | |
| create | back to summary |
|---|---|
| public static OVRPerfStats create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OVRPerfStats. Returns a new
| |
| create | back to summary |
|---|---|
| public static OVRPerfStats. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OVRPerfStats createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OVRPerfStats. Like
| |
| FrameStats | back to summary |
|---|---|
| public OVRPerfStatsPerCompositorFrame. an array of performance stats. The performance entries will be ordered in reverse chronological order such that the first entry will be the most recent one.
| |
| FrameStats | back to summary |
|---|---|
| public OVRPerfStatsPerCompositorFrame FrameStats(int index) an array of performance stats. The performance entries will be ordered in reverse chronological order such that the first entry will be the most recent one.
| |
| FrameStatsCount | back to summary |
|---|---|
| public int FrameStatsCount() will have a maximum value set by If the application calls If the app does not want to miss any performance data for any frame, it needs to ensure that it is calling | |
| malloc | back to summary |
|---|---|
| public static OVRPerfStats malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OVRPerfStats. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRPerfStats malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OVRPerfStats. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static OVRPerfStats mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRPerfStats mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRPerfStats. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static OVRPerfStats. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nAdaptiveGpuPerformanceScale | back to summary |
|---|---|
| public static float nAdaptiveGpuPerformanceScale(long struct) Unsafe version of | |
| nAnyFrameStatsDropped | back to summary |
|---|---|
| public static boolean nAnyFrameStatsDropped(long struct) Unsafe version of | |
| nAswIsAvailable | back to summary |
|---|---|
| public static boolean nAswIsAvailable(long struct) Unsafe version of | |
| nFrameStats | back to summary |
|---|---|
| public static OVRPerfStatsPerCompositorFrame. Unsafe version of | |
| nFrameStats | back to summary |
|---|---|
| public static OVRPerfStatsPerCompositorFrame nFrameStats(long struct, int index) Unsafe version of | |
| nFrameStatsCount | back to summary |
|---|---|
| public static int nFrameStatsCount(long struct) Unsafe version of | |
| nVisibleProcessId | back to summary |
|---|---|
| public static int nVisibleProcessId(long struct) Unsafe version of | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| VisibleProcessId | back to summary |
|---|---|
| public int VisibleProcessId() Contains the Process ID of the VR application the stats are being polled for. If an app continues to grab perf stats even when it is not visible, then expect this value to point to the other VR app that has grabbed focus (i.e. became visible).
| |
OVRPerfStats structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OVRPerfStats |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public float | Returns: the value of theOVRPerfStats#AdaptiveGpuPerformanceScale field.
|
| public boolean | |
| public boolean | |
| public OVRPerfStatsPerCompositorFrame. | |
| public OVRPerfStatsPerCompositorFrame | Returns: aOVRPerfStatsPerCompositorFrame view of the struct at the specified index of the OVRPerfStats#FrameStats field.
|
| public int | |
| protected OVRPerfStats | |
| protected OVRPerfStats. | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OVRPerfStats ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| AdaptiveGpuPerformanceScale | back to summary |
|---|---|
public float AdaptiveGpuPerformanceScale()
| |
| AnyFrameStatsDropped | back to summary |
|---|---|
public boolean AnyFrameStatsDropped()
| |
| AswIsAvailable | back to summary |
|---|---|
public boolean AswIsAvailable()
| |
| FrameStats | back to summary |
|---|---|
public OVRPerfStatsPerCompositorFrame.
| |
| FrameStats | back to summary |
|---|---|
public OVRPerfStatsPerCompositorFrame FrameStats(int index)
| |
| FrameStatsCount | back to summary |
|---|---|
public int FrameStatsCount()
| |
| getElementFactory | back to summary |
|---|---|
| protected OVRPerfStats getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected OVRPerfStats. Implements abstract org.
| |
| VisibleProcessId | back to summary |
|---|---|
public int VisibleProcessId()
| |