Package org.lwjgl.openvr
Class CompositorCumulativeStats
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.CompositorCumulativeStats
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CompositorCumulativeStats extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Cumulative stats for current application. These are not cleared until a new app connects, but they do stop accumulating once the associated app disconnects.Member documentation
m_nPid
– Process id associated with these stats (may no longer be running).m_nNumFramePresents
– total number of times we called present (includes reprojected frames)m_nNumDroppedFrames
– total number of times an old frame was re-scanned out (without reprojection)m_nNumReprojectedFrames
– total number of times a frame was scanned out a second time (with reprojection)
Layout
struct Compositor_CumulativeStats { uint32_t m_nPid; uint32_t m_nNumFramePresents; uint32_t m_nNumDroppedFrames; uint32_t m_nNumReprojectedFrames; uint32_t m_nNumFramePresentsOnStartup; uint32_t m_nNumDroppedFramesOnStartup; uint32_t m_nNumReprojectedFramesOnStartup; uint32_t m_nNumLoading; uint32_t m_nNumFramePresentsLoading; uint32_t m_nNumDroppedFramesLoading; uint32_t m_nNumReprojectedFramesLoading; uint32_t m_nNumTimedOut; uint32_t m_nNumFramePresentsTimedOut; uint32_t m_nNumDroppedFramesTimedOut; uint32_t m_nNumReprojectedFramesTimedOut; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositorCumulativeStats.Buffer
An array ofCompositorCumulativeStats
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_NNUMDROPPEDFRAMES
M_NNUMDROPPEDFRAMESLOADING
M_NNUMDROPPEDFRAMESONSTARTUP
M_NNUMDROPPEDFRAMESTIMEDOUT
M_NNUMFRAMEPRESENTS
M_NNUMFRAMEPRESENTSLOADING
M_NNUMFRAMEPRESENTSONSTARTUP
M_NNUMFRAMEPRESENTSTIMEDOUT
M_NNUMLOADING
M_NNUMREPROJECTEDFRAMES
M_NNUMREPROJECTEDFRAMESLOADING
M_NNUMREPROJECTEDFRAMESONSTARTUP
M_NNUMREPROJECTEDFRAMESTIMEDOUT
M_NNUMTIMEDOUT
M_NPIDThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CompositorCumulativeStats(java.nio.ByteBuffer container)
Creates aCompositorCumulativeStats
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompositorCumulativeStats
calloc()
Returns a newCompositorCumulativeStats
instance allocated withmemCalloc
.static CompositorCumulativeStats.Buffer
calloc(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated withmemCalloc
.static CompositorCumulativeStats
callocStack()
Returns a newCompositorCumulativeStats
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CompositorCumulativeStats.Buffer
callocStack(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CompositorCumulativeStats.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStats.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CompositorCumulativeStats
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStats
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CompositorCumulativeStats
create()
Returns a newCompositorCumulativeStats
instance allocated withBufferUtils
.static CompositorCumulativeStats.Buffer
create(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated withBufferUtils
.static CompositorCumulativeStats
create(long address)
Returns a newCompositorCumulativeStats
instance for the specified memory address.static CompositorCumulativeStats.Buffer
create(long address, int capacity)
Create aCompositorCumulativeStats.Buffer
instance at the specified memory.static CompositorCumulativeStats
createSafe(long address)
static CompositorCumulativeStats.Buffer
createSafe(long address, int capacity)
int
m_nNumDroppedFrames()
Returns the value of them_nNumDroppedFrames
field.int
m_nNumDroppedFramesLoading()
Returns the value of them_nNumDroppedFramesLoading
field.int
m_nNumDroppedFramesOnStartup()
Returns the value of them_nNumDroppedFramesOnStartup
field.int
m_nNumDroppedFramesTimedOut()
Returns the value of them_nNumDroppedFramesTimedOut
field.int
m_nNumFramePresents()
Returns the value of them_nNumFramePresents
field.int
m_nNumFramePresentsLoading()
Returns the value of them_nNumFramePresentsLoading
field.int
m_nNumFramePresentsOnStartup()
Returns the value of them_nNumFramePresentsOnStartup
field.int
m_nNumFramePresentsTimedOut()
Returns the value of them_nNumFramePresentsTimedOut
field.int
m_nNumLoading()
Returns the value of them_nNumLoading
field.int
m_nNumReprojectedFrames()
Returns the value of them_nNumReprojectedFrames
field.int
m_nNumReprojectedFramesLoading()
Returns the value of them_nNumReprojectedFramesLoading
field.int
m_nNumReprojectedFramesOnStartup()
Returns the value of them_nNumReprojectedFramesOnStartup
field.int
m_nNumReprojectedFramesTimedOut()
Returns the value of them_nNumReprojectedFramesTimedOut
field.int
m_nNumTimedOut()
Returns the value of them_nNumTimedOut
field.int
m_nPid()
Returns the value of them_nPid
field.static CompositorCumulativeStats
malloc()
Returns a newCompositorCumulativeStats
instance allocated withmemAlloc
.static CompositorCumulativeStats.Buffer
malloc(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated withmemAlloc
.static CompositorCumulativeStats
mallocStack()
Returns a newCompositorCumulativeStats
instance allocated on the thread-localMemoryStack
.static CompositorCumulativeStats.Buffer
mallocStack(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated on the thread-localMemoryStack
.static CompositorCumulativeStats.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStats.Buffer
instance allocated on the specifiedMemoryStack
.static CompositorCumulativeStats
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStats
instance allocated on the specifiedMemoryStack
.static int
nm_nNumDroppedFrames(long struct)
Unsafe version ofm_nNumDroppedFrames()
.static int
nm_nNumDroppedFramesLoading(long struct)
Unsafe version ofm_nNumDroppedFramesLoading()
.static int
nm_nNumDroppedFramesOnStartup(long struct)
Unsafe version ofm_nNumDroppedFramesOnStartup()
.static int
nm_nNumDroppedFramesTimedOut(long struct)
Unsafe version ofm_nNumDroppedFramesTimedOut()
.static int
nm_nNumFramePresents(long struct)
Unsafe version ofm_nNumFramePresents()
.static int
nm_nNumFramePresentsLoading(long struct)
Unsafe version ofm_nNumFramePresentsLoading()
.static int
nm_nNumFramePresentsOnStartup(long struct)
Unsafe version ofm_nNumFramePresentsOnStartup()
.static int
nm_nNumFramePresentsTimedOut(long struct)
Unsafe version ofm_nNumFramePresentsTimedOut()
.static int
nm_nNumLoading(long struct)
Unsafe version ofm_nNumLoading()
.static int
nm_nNumReprojectedFrames(long struct)
Unsafe version ofm_nNumReprojectedFrames()
.static int
nm_nNumReprojectedFramesLoading(long struct)
Unsafe version ofm_nNumReprojectedFramesLoading()
.static int
nm_nNumReprojectedFramesOnStartup(long struct)
Unsafe version ofm_nNumReprojectedFramesOnStartup()
.static int
nm_nNumReprojectedFramesTimedOut(long struct)
Unsafe version ofm_nNumReprojectedFramesTimedOut()
.static int
nm_nNumTimedOut(long struct)
Unsafe version ofm_nNumTimedOut()
.static int
nm_nPid(long struct)
Unsafe version ofm_nPid()
.int
sizeof()
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
M_NPID, M_NNUMFRAMEPRESENTS, M_NNUMDROPPEDFRAMES, M_NNUMREPROJECTEDFRAMES, M_NNUMFRAMEPRESENTSONSTARTUP, M_NNUMDROPPEDFRAMESONSTARTUP, M_NNUMREPROJECTEDFRAMESONSTARTUP, M_NNUMLOADING, M_NNUMFRAMEPRESENTSLOADING, M_NNUMDROPPEDFRAMESLOADING, M_NNUMREPROJECTEDFRAMESLOADING, M_NNUMTIMEDOUT, M_NNUMFRAMEPRESENTSTIMEDOUT, M_NNUMDROPPEDFRAMESTIMEDOUT, M_NNUMREPROJECTEDFRAMESTIMEDOUT
The struct member offsets.
-
-
Constructor Detail
-
CompositorCumulativeStats
public CompositorCumulativeStats(java.nio.ByteBuffer container)
Creates aCompositorCumulativeStats
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
m_nPid
public int m_nPid()
Returns the value of them_nPid
field.
-
m_nNumFramePresents
public int m_nNumFramePresents()
Returns the value of them_nNumFramePresents
field.
-
m_nNumDroppedFrames
public int m_nNumDroppedFrames()
Returns the value of them_nNumDroppedFrames
field.
-
m_nNumReprojectedFrames
public int m_nNumReprojectedFrames()
Returns the value of them_nNumReprojectedFrames
field.
-
m_nNumFramePresentsOnStartup
public int m_nNumFramePresentsOnStartup()
Returns the value of them_nNumFramePresentsOnStartup
field.
-
m_nNumDroppedFramesOnStartup
public int m_nNumDroppedFramesOnStartup()
Returns the value of them_nNumDroppedFramesOnStartup
field.
-
m_nNumReprojectedFramesOnStartup
public int m_nNumReprojectedFramesOnStartup()
Returns the value of them_nNumReprojectedFramesOnStartup
field.
-
m_nNumLoading
public int m_nNumLoading()
Returns the value of them_nNumLoading
field.
-
m_nNumFramePresentsLoading
public int m_nNumFramePresentsLoading()
Returns the value of them_nNumFramePresentsLoading
field.
-
m_nNumDroppedFramesLoading
public int m_nNumDroppedFramesLoading()
Returns the value of them_nNumDroppedFramesLoading
field.
-
m_nNumReprojectedFramesLoading
public int m_nNumReprojectedFramesLoading()
Returns the value of them_nNumReprojectedFramesLoading
field.
-
m_nNumTimedOut
public int m_nNumTimedOut()
Returns the value of them_nNumTimedOut
field.
-
m_nNumFramePresentsTimedOut
public int m_nNumFramePresentsTimedOut()
Returns the value of them_nNumFramePresentsTimedOut
field.
-
m_nNumDroppedFramesTimedOut
public int m_nNumDroppedFramesTimedOut()
Returns the value of them_nNumDroppedFramesTimedOut
field.
-
m_nNumReprojectedFramesTimedOut
public int m_nNumReprojectedFramesTimedOut()
Returns the value of them_nNumReprojectedFramesTimedOut
field.
-
malloc
public static CompositorCumulativeStats malloc()
Returns a newCompositorCumulativeStats
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CompositorCumulativeStats calloc()
Returns a newCompositorCumulativeStats
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CompositorCumulativeStats create()
Returns a newCompositorCumulativeStats
instance allocated withBufferUtils
.
-
create
public static CompositorCumulativeStats create(long address)
Returns a newCompositorCumulativeStats
instance for the specified memory address.
-
createSafe
@Nullable public static CompositorCumulativeStats createSafe(long address)
-
malloc
public static CompositorCumulativeStats.Buffer malloc(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CompositorCumulativeStats.Buffer calloc(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CompositorCumulativeStats.Buffer create(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CompositorCumulativeStats.Buffer create(long address, int capacity)
Create aCompositorCumulativeStats.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CompositorCumulativeStats.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CompositorCumulativeStats mallocStack()
Returns a newCompositorCumulativeStats
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CompositorCumulativeStats callocStack()
Returns a newCompositorCumulativeStats
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CompositorCumulativeStats mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStats
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CompositorCumulativeStats callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStats
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CompositorCumulativeStats.Buffer mallocStack(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CompositorCumulativeStats.Buffer callocStack(int capacity)
Returns a newCompositorCumulativeStats.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CompositorCumulativeStats.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStats.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CompositorCumulativeStats.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStats.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nm_nPid
public static int nm_nPid(long struct)
Unsafe version ofm_nPid()
.
-
nm_nNumFramePresents
public static int nm_nNumFramePresents(long struct)
Unsafe version ofm_nNumFramePresents()
.
-
nm_nNumDroppedFrames
public static int nm_nNumDroppedFrames(long struct)
Unsafe version ofm_nNumDroppedFrames()
.
-
nm_nNumReprojectedFrames
public static int nm_nNumReprojectedFrames(long struct)
Unsafe version ofm_nNumReprojectedFrames()
.
-
nm_nNumFramePresentsOnStartup
public static int nm_nNumFramePresentsOnStartup(long struct)
Unsafe version ofm_nNumFramePresentsOnStartup()
.
-
nm_nNumDroppedFramesOnStartup
public static int nm_nNumDroppedFramesOnStartup(long struct)
Unsafe version ofm_nNumDroppedFramesOnStartup()
.
-
nm_nNumReprojectedFramesOnStartup
public static int nm_nNumReprojectedFramesOnStartup(long struct)
Unsafe version ofm_nNumReprojectedFramesOnStartup()
.
-
nm_nNumLoading
public static int nm_nNumLoading(long struct)
Unsafe version ofm_nNumLoading()
.
-
nm_nNumFramePresentsLoading
public static int nm_nNumFramePresentsLoading(long struct)
Unsafe version ofm_nNumFramePresentsLoading()
.
-
nm_nNumDroppedFramesLoading
public static int nm_nNumDroppedFramesLoading(long struct)
Unsafe version ofm_nNumDroppedFramesLoading()
.
-
nm_nNumReprojectedFramesLoading
public static int nm_nNumReprojectedFramesLoading(long struct)
Unsafe version ofm_nNumReprojectedFramesLoading()
.
-
nm_nNumTimedOut
public static int nm_nNumTimedOut(long struct)
Unsafe version ofm_nNumTimedOut()
.
-
nm_nNumFramePresentsTimedOut
public static int nm_nNumFramePresentsTimedOut(long struct)
Unsafe version ofm_nNumFramePresentsTimedOut()
.
-
nm_nNumDroppedFramesTimedOut
public static int nm_nNumDroppedFramesTimedOut(long struct)
Unsafe version ofm_nNumDroppedFramesTimedOut()
.
-
nm_nNumReprojectedFramesTimedOut
public static int nm_nNumReprojectedFramesTimedOut(long struct)
Unsafe version ofm_nNumReprojectedFramesTimedOut()
.
-
-