All of the int fields can be reset via the ResetPerfStats call.
struct ovrPerfStatsPerCompositorFrame {
int HmdVsyncIndex;
int AppFrameIndex;
int AppDroppedFrameCount;
float AppMotionToPhotonLatency;
float AppQueueAheadTime;
float AppCpuElapsedTime;
float AppGpuElapsedTime;
int CompositorFrameIndex;
int CompositorDroppedFrameCount;
float CompositorLatency;
float CompositorCpuElapsedTime;
float CompositorGpuElapsedTime;
float CompositorCpuStartToGpuEndElapsedTime;
float CompositorGpuEndToVsyncElapsedTime;
ovrBool AswIsActive;
int AswActivatedToggleCount;
int AswPresentedFrameCount;
int AswFailedFrameCount;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OVRPerfStatsPerCompositorFrame.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | APPCPUELAPSEDTIME
The struct member offsets. |
| public static final int | APPDROPPEDFRAMECOUNT
The struct member offsets. |
| public static final int | APPFRAMEINDEX
The struct member offsets. |
| public static final int | APPGPUELAPSEDTIME
The struct member offsets. |
| public static final int | APPMOTIONTOPHOTONLATENCY
The struct member offsets. |
| public static final int | APPQUEUEAHEADTIME
The struct member offsets. |
| public static final int | ASWACTIVATEDTOGGLECOUNT
The struct member offsets. |
| public static final int | ASWFAILEDFRAMECOUNT
The struct member offsets. |
| public static final int | ASWISACTIVE
The struct member offsets. |
| public static final int | ASWPRESENTEDFRAMECOUNT
The struct member offsets. |
| public static final int | COMPOSITORCPUELAPSEDTIME
The struct member offsets. |
| public static final int | COMPOSITORCPUSTARTTOGPUENDELAPSEDTIME
The struct member offsets. |
| public static final int | COMPOSITORDROPPEDFRAMECOUNT
The struct member offsets. |
| public static final int | COMPOSITORFRAMEINDEX
The struct member offsets. |
| public static final int | COMPOSITORGPUELAPSEDTIME
The struct member offsets. |
| public static final int | COMPOSITORGPUENDTOVSYNCELAPSEDTIME
The struct member offsets. |
| public static final int | COMPOSITORLATENCY
The struct member offsets. |
| public static final int | HMDVSYNCINDEX
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OVRPerfStatsPerCompositorFrame(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public float | AppCpuElapsedTime()
amount of time in seconds spent on the CPU by the app's render-thread that calls |
| public int | AppDroppedFrameCount()
if the app fails to call |
| public int | |
| public float | |
| public float | AppMotionToPhotonLatency()
motion-to-photon latency for the application This value is calculated by either using the |
| public float | AppQueueAheadTime()
amount of queue-ahead in seconds provided to the app based on performance and overlap of CPU and GPU utilization. |
| public int | AswActivatedToggleCount()
Increments each time ASW it activated where the app was forced in and out of half-rate rendering. |
| public int | AswFailedFrameCount()
Accumulates the number of frames that the compositor tried to present when ASW is active but failed |
| public boolean | AswIsActive()
Will be true if ASW is active for the given frame such that the application is being forced into half the frame-rate while the compositor continues to run at full frame-rate. |
| public int | AswPresentedFrameCount()
Accumulates the number of frames presented by the compositor which had extrapolated ASW frames presented |
| public float | |
| public float | CompositorCpuStartToGpuEndElapsedTime()
the amount of time in seconds spent from the point the CPU kicks off the compositor to the point in time the compositor completes the distortion & timewarp on the GPU. |
| public int | |
| public int | CompositorFrameIndex()
index that increments each time the SDK compositor completes a distortion and timewarp pass. |
| public float | |
| public float | CompositorGpuEndToVsyncElapsedTime()
the amount of time in seconds left after the compositor is done on the GPU to the associated V-Sync time. |
| public float | |
| protected OVRPerfStatsPerCompositorFrame | 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 OVRPerfStatsPerCompositorFrame | create(long address)
Returns a new |
| public static OVRPerfStatsPerCompositorFrame. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OVRPerfStatsPerCompositorFrame | |
| public static OVRPerfStatsPerCompositorFrame. | |
| public int | HmdVsyncIndex()
Vsync Frame Index - increments with each HMD vertical synchronization signal (i.e. vsync or refresh rate). |
| public static float | |
| public static int | |
| public static int | |
| public static float | |
| public static float | |
| public static float | |
| public static int | |
| public static int | |
| public static boolean | |
| public static int | |
| public static float | |
| public static float | nCompositorCpuStartToGpuEndElapsedTime(long struct)
Unsafe version of |
| public static int | |
| public static int | |
| public static float | |
| public static float | nCompositorGpuEndToVsyncElapsedTime(long struct)
Unsafe version of |
| public static float | |
| public static int | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| APPCPUELAPSEDTIME | back to summary |
|---|---|
| public static final int APPCPUELAPSEDTIME The struct member offsets. | |
| APPDROPPEDFRAMECOUNT | back to summary |
|---|---|
| public static final int APPDROPPEDFRAMECOUNT The struct member offsets. | |
| APPFRAMEINDEX | back to summary |
|---|---|
| public static final int APPFRAMEINDEX The struct member offsets. | |
| APPGPUELAPSEDTIME | back to summary |
|---|---|
| public static final int APPGPUELAPSEDTIME The struct member offsets. | |
| APPMOTIONTOPHOTONLATENCY | back to summary |
|---|---|
| public static final int APPMOTIONTOPHOTONLATENCY The struct member offsets. | |
| APPQUEUEAHEADTIME | back to summary |
|---|---|
| public static final int APPQUEUEAHEADTIME The struct member offsets. | |
| ASWACTIVATEDTOGGLECOUNT | back to summary |
|---|---|
| public static final int ASWACTIVATEDTOGGLECOUNT The struct member offsets. | |
| ASWFAILEDFRAMECOUNT | back to summary |
|---|---|
| public static final int ASWFAILEDFRAMECOUNT The struct member offsets. | |
| ASWISACTIVE | back to summary |
|---|---|
| public static final int ASWISACTIVE The struct member offsets. | |
| ASWPRESENTEDFRAMECOUNT | back to summary |
|---|---|
| public static final int ASWPRESENTEDFRAMECOUNT The struct member offsets. | |
| COMPOSITORCPUELAPSEDTIME | back to summary |
|---|---|
| public static final int COMPOSITORCPUELAPSEDTIME The struct member offsets. | |
| COMPOSITORCPUSTARTTOGPUENDELAPSEDTIME | back to summary |
|---|---|
| public static final int COMPOSITORCPUSTARTTOGPUENDELAPSEDTIME The struct member offsets. | |
| COMPOSITORDROPPEDFRAMECOUNT | back to summary |
|---|---|
| public static final int COMPOSITORDROPPEDFRAMECOUNT The struct member offsets. | |
| COMPOSITORFRAMEINDEX | back to summary |
|---|---|
| public static final int COMPOSITORFRAMEINDEX The struct member offsets. | |
| COMPOSITORGPUELAPSEDTIME | back to summary |
|---|---|
| public static final int COMPOSITORGPUELAPSEDTIME The struct member offsets. | |
| COMPOSITORGPUENDTOVSYNCELAPSEDTIME | back to summary |
|---|---|
| public static final int COMPOSITORGPUENDTOVSYNCELAPSEDTIME The struct member offsets. | |
| COMPOSITORLATENCY | back to summary |
|---|---|
| public static final int COMPOSITORLATENCY The struct member offsets. | |
| HMDVSYNCINDEX | back to summary |
|---|---|
| public static final int HMDVSYNCINDEX The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| OVRPerfStatsPerCompositorFrame | back to summary |
|---|---|
| protected OVRPerfStatsPerCompositorFrame(long address, ByteBuffer container) | |
| OVRPerfStatsPerCompositorFrame | back to summary |
|---|---|
| public OVRPerfStatsPerCompositorFrame(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| AppCpuElapsedTime | back to summary |
|---|---|
| public float AppCpuElapsedTime() amount of time in seconds spent on the CPU by the app's render-thread that calls Measured as elapsed time between from when app regains control from | |
| AppDroppedFrameCount | back to summary |
|---|---|
| public int AppDroppedFrameCount() if the app fails to call | |
| AppFrameIndex | back to summary |
|---|---|
| public int AppFrameIndex() index that increments with each successive | |
| AppGpuElapsedTime | back to summary |
|---|---|
| public float AppGpuElapsedTime() amount of time in seconds spent on the GPU by the app. Measured as elapsed time between each | |
| AppMotionToPhotonLatency | back to summary |
|---|---|
| public float AppMotionToPhotonLatency() motion-to-photon latency for the application This value is calculated by either using the | |
| AppQueueAheadTime | back to summary |
|---|---|
| public float AppQueueAheadTime() amount of queue-ahead in seconds provided to the app based on performance and overlap of CPU and GPU utilization. A value of 0.0 would mean the CPU & GPU workload is being completed in 1 frame's worth of time, while 11 ms (on the CV1) of queue ahead would indicate that the app's CPU workload for the next frame is overlapping the app's GPU workload for the current frame. | |
| AswActivatedToggleCount | back to summary |
|---|---|
| public int AswActivatedToggleCount() Increments each time ASW it activated where the app was forced in and out of half-rate rendering. | |
| AswFailedFrameCount | back to summary |
|---|---|
| public int AswFailedFrameCount() Accumulates the number of frames that the compositor tried to present when ASW is active but failed | |
| AswIsActive | back to summary |
|---|---|
| public boolean AswIsActive() Will be true if ASW is active for the given frame such that the application is being forced into half the frame-rate while the compositor continues to run at full frame-rate.
| |
| AswPresentedFrameCount | back to summary |
|---|---|
| public int AswPresentedFrameCount() Accumulates the number of frames presented by the compositor which had extrapolated ASW frames presented | |
| CompositorCpuElapsedTime | back to summary |
|---|---|
| public float CompositorCpuElapsedTime() the amount of time in seconds spent on the CPU by the SDK compositor. Unless the VR app is utilizing all of the CPU cores at their peak performance, there is a good chance the compositor CPU times will not affect the app's CPU performance in a major way. | |
| CompositorCpuStartToGpuEndElapsedTime | back to summary |
|---|---|
| public float CompositorCpuStartToGpuEndElapsedTime() the amount of time in seconds spent from the point the CPU kicks off the compositor to the point in time the compositor completes the distortion & timewarp on the GPU. In the event the GPU time is not available, expect this value to be -1.0f. | |
| CompositorDroppedFrameCount | back to summary |
|---|---|
| public int CompositorDroppedFrameCount() increments each time the SDK compositor fails to complete in time. This is not tied to the app's performance, but failure to complete can be related to other factors such as OS capabilities, overall available hardware cycles to execute the compositor in time and other factors outside of the app's control. | |
| CompositorFrameIndex | back to summary |
|---|---|
| public int CompositorFrameIndex() index that increments each time the SDK compositor completes a distortion and timewarp pass. Since the compositor operates asynchronously, even if the app calls | |
| CompositorGpuElapsedTime | back to summary |
|---|---|
| public float CompositorGpuElapsedTime() the amount of time in seconds spent on the GPU by the SDK compositor. Any time spent on the compositor will eat away from the available GPU time for the app. | |
| CompositorGpuEndToVsyncElapsedTime | back to summary |
|---|---|
| public float CompositorGpuEndToVsyncElapsedTime() the amount of time in seconds left after the compositor is done on the GPU to the associated V-Sync time. In the event the GPU time is not available, expect this value to be -1.0f. | |
| CompositorLatency | back to summary |
|---|---|
| public float CompositorLatency() motion-to-photon latency of the SDK compositor in seconds. This is the latency of timewarp which corrects the higher app latency as well as dropped app frames. | |
| create | back to summary |
|---|---|
| protected OVRPerfStatsPerCompositorFrame create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OVRPerfStatsPerCompositorFrame create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OVRPerfStatsPerCompositorFrame. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OVRPerfStatsPerCompositorFrame createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OVRPerfStatsPerCompositorFrame. Like
| |
| HmdVsyncIndex | back to summary |
|---|---|
| public int HmdVsyncIndex() Vsync Frame Index - increments with each HMD vertical synchronization signal (i.e. vsync or refresh rate). If the compositor drops a frame, expect this value to increment more than 1 at a time. | |
| nAppCpuElapsedTime | back to summary |
|---|---|
| public static float nAppCpuElapsedTime(long struct) Unsafe version of | |
| nAppDroppedFrameCount | back to summary |
|---|---|
| public static int nAppDroppedFrameCount(long struct) Unsafe version of | |
| nAppFrameIndex | back to summary |
|---|---|
| public static int nAppFrameIndex(long struct) Unsafe version of | |
| nAppGpuElapsedTime | back to summary |
|---|---|
| public static float nAppGpuElapsedTime(long struct) Unsafe version of | |
| nAppMotionToPhotonLatency | back to summary |
|---|---|
| public static float nAppMotionToPhotonLatency(long struct) Unsafe version of | |
| nAppQueueAheadTime | back to summary |
|---|---|
| public static float nAppQueueAheadTime(long struct) Unsafe version of | |
| nAswActivatedToggleCount | back to summary |
|---|---|
| public static int nAswActivatedToggleCount(long struct) Unsafe version of | |
| nAswFailedFrameCount | back to summary |
|---|---|
| public static int nAswFailedFrameCount(long struct) Unsafe version of | |
| nAswIsActive | back to summary |
|---|---|
| public static boolean nAswIsActive(long struct) Unsafe version of | |
| nAswPresentedFrameCount | back to summary |
|---|---|
| public static int nAswPresentedFrameCount(long struct) Unsafe version of | |
| nCompositorCpuElapsedTime | back to summary |
|---|---|
| public static float nCompositorCpuElapsedTime(long struct) Unsafe version of | |
| nCompositorCpuStartToGpuEndElapsedTime | back to summary |
|---|---|
| public static float nCompositorCpuStartToGpuEndElapsedTime(long struct) Unsafe version of | |
| nCompositorDroppedFrameCount | back to summary |
|---|---|
| public static int nCompositorDroppedFrameCount(long struct) Unsafe version of | |
| nCompositorFrameIndex | back to summary |
|---|---|
| public static int nCompositorFrameIndex(long struct) Unsafe version of | |
| nCompositorGpuElapsedTime | back to summary |
|---|---|
| public static float nCompositorGpuElapsedTime(long struct) Unsafe version of | |
| nCompositorGpuEndToVsyncElapsedTime | back to summary |
|---|---|
| public static float nCompositorGpuEndToVsyncElapsedTime(long struct) Unsafe version of | |
| nCompositorLatency | back to summary |
|---|---|
| public static float nCompositorLatency(long struct) Unsafe version of | |
| nHmdVsyncIndex | back to summary |
|---|---|
| public static int nHmdVsyncIndex(long struct) Unsafe version of | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
OVRPerfStatsPerCompositorFrame structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OVRPerfStatsPerCompositorFrame |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OVRPerfStatsPerCompositorFrame 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) | |
| AppCpuElapsedTime | back to summary |
|---|---|
public float AppCpuElapsedTime()
| |
| AppDroppedFrameCount | back to summary |
|---|---|
public int AppDroppedFrameCount()
| |
| AppFrameIndex | back to summary |
|---|---|
public int AppFrameIndex()
| |
| AppGpuElapsedTime | back to summary |
|---|---|
public float AppGpuElapsedTime()
| |
| AppMotionToPhotonLatency | back to summary |
|---|---|
public float AppMotionToPhotonLatency()
| |
| AppQueueAheadTime | back to summary |
|---|---|
public float AppQueueAheadTime()
| |
| AswActivatedToggleCount | back to summary |
|---|---|
public int AswActivatedToggleCount()
| |
| AswFailedFrameCount | back to summary |
|---|---|
public int AswFailedFrameCount()
| |
| AswIsActive | back to summary |
|---|---|
public boolean AswIsActive()
| |
| AswPresentedFrameCount | back to summary |
|---|---|
public int AswPresentedFrameCount()
| |
| CompositorCpuElapsedTime | back to summary |
|---|---|
public float CompositorCpuElapsedTime()
| |
| CompositorCpuStartToGpuEndElapsedTime | back to summary |
|---|---|
public float CompositorCpuStartToGpuEndElapsedTime()
| |
| CompositorDroppedFrameCount | back to summary |
|---|---|
public int CompositorDroppedFrameCount()
| |
| CompositorFrameIndex | back to summary |
|---|---|
public int CompositorFrameIndex()
| |
| CompositorGpuElapsedTime | back to summary |
|---|---|
public float CompositorGpuElapsedTime()
| |
| CompositorGpuEndToVsyncElapsedTime | back to summary |
|---|---|
public float CompositorGpuEndToVsyncElapsedTime()
| |
| CompositorLatency | back to summary |
|---|---|
public float CompositorLatency()
| |
| getElementFactory | back to summary |
|---|---|
| protected OVRPerfStatsPerCompositorFrame getElementFactory() Implements abstract org.
| |
| HmdVsyncIndex | back to summary |
|---|---|
public int HmdVsyncIndex()
| |
| self | back to summary |
|---|---|
| protected OVRPerfStatsPerCompositorFrame. Implements abstract org.
| |