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.NativeResourceCumulative 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 classCompositorCumulativeStats.BufferAn array ofCompositorCumulativeStatsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_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 intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CompositorCumulativeStats(java.nio.ByteBuffer container)Creates aCompositorCumulativeStatsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompositorCumulativeStatscalloc()Returns a newCompositorCumulativeStatsinstance allocated withmemCalloc.static CompositorCumulativeStats.Buffercalloc(int capacity)Returns a newCompositorCumulativeStats.Bufferinstance allocated withmemCalloc.static CompositorCumulativeStatscallocStack()Returns a newCompositorCumulativeStatsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CompositorCumulativeStats.BuffercallocStack(int capacity)Returns a newCompositorCumulativeStats.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CompositorCumulativeStats.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCompositorCumulativeStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CompositorCumulativeStatscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCompositorCumulativeStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CompositorCumulativeStatscreate()Returns a newCompositorCumulativeStatsinstance allocated withBufferUtils.static CompositorCumulativeStats.Buffercreate(int capacity)Returns a newCompositorCumulativeStats.Bufferinstance allocated withBufferUtils.static CompositorCumulativeStatscreate(long address)Returns a newCompositorCumulativeStatsinstance for the specified memory address.static CompositorCumulativeStats.Buffercreate(long address, int capacity)Create aCompositorCumulativeStats.Bufferinstance at the specified memory.static CompositorCumulativeStatscreateSafe(long address)static CompositorCumulativeStats.BuffercreateSafe(long address, int capacity)intm_nNumDroppedFrames()Returns the value of them_nNumDroppedFramesfield.intm_nNumDroppedFramesLoading()Returns the value of them_nNumDroppedFramesLoadingfield.intm_nNumDroppedFramesOnStartup()Returns the value of them_nNumDroppedFramesOnStartupfield.intm_nNumDroppedFramesTimedOut()Returns the value of them_nNumDroppedFramesTimedOutfield.intm_nNumFramePresents()Returns the value of them_nNumFramePresentsfield.intm_nNumFramePresentsLoading()Returns the value of them_nNumFramePresentsLoadingfield.intm_nNumFramePresentsOnStartup()Returns the value of them_nNumFramePresentsOnStartupfield.intm_nNumFramePresentsTimedOut()Returns the value of them_nNumFramePresentsTimedOutfield.intm_nNumLoading()Returns the value of them_nNumLoadingfield.intm_nNumReprojectedFrames()Returns the value of them_nNumReprojectedFramesfield.intm_nNumReprojectedFramesLoading()Returns the value of them_nNumReprojectedFramesLoadingfield.intm_nNumReprojectedFramesOnStartup()Returns the value of them_nNumReprojectedFramesOnStartupfield.intm_nNumReprojectedFramesTimedOut()Returns the value of them_nNumReprojectedFramesTimedOutfield.intm_nNumTimedOut()Returns the value of them_nNumTimedOutfield.intm_nPid()Returns the value of them_nPidfield.static CompositorCumulativeStatsmalloc()Returns a newCompositorCumulativeStatsinstance allocated withmemAlloc.static CompositorCumulativeStats.Buffermalloc(int capacity)Returns a newCompositorCumulativeStats.Bufferinstance allocated withmemAlloc.static CompositorCumulativeStatsmallocStack()Returns a newCompositorCumulativeStatsinstance allocated on the thread-localMemoryStack.static CompositorCumulativeStats.BuffermallocStack(int capacity)Returns a newCompositorCumulativeStats.Bufferinstance allocated on the thread-localMemoryStack.static CompositorCumulativeStats.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCompositorCumulativeStats.Bufferinstance allocated on the specifiedMemoryStack.static CompositorCumulativeStatsmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCompositorCumulativeStatsinstance allocated on the specifiedMemoryStack.static intnm_nNumDroppedFrames(long struct)Unsafe version ofm_nNumDroppedFrames().static intnm_nNumDroppedFramesLoading(long struct)Unsafe version ofm_nNumDroppedFramesLoading().static intnm_nNumDroppedFramesOnStartup(long struct)Unsafe version ofm_nNumDroppedFramesOnStartup().static intnm_nNumDroppedFramesTimedOut(long struct)Unsafe version ofm_nNumDroppedFramesTimedOut().static intnm_nNumFramePresents(long struct)Unsafe version ofm_nNumFramePresents().static intnm_nNumFramePresentsLoading(long struct)Unsafe version ofm_nNumFramePresentsLoading().static intnm_nNumFramePresentsOnStartup(long struct)Unsafe version ofm_nNumFramePresentsOnStartup().static intnm_nNumFramePresentsTimedOut(long struct)Unsafe version ofm_nNumFramePresentsTimedOut().static intnm_nNumLoading(long struct)Unsafe version ofm_nNumLoading().static intnm_nNumReprojectedFrames(long struct)Unsafe version ofm_nNumReprojectedFrames().static intnm_nNumReprojectedFramesLoading(long struct)Unsafe version ofm_nNumReprojectedFramesLoading().static intnm_nNumReprojectedFramesOnStartup(long struct)Unsafe version ofm_nNumReprojectedFramesOnStartup().static intnm_nNumReprojectedFramesTimedOut(long struct)Unsafe version ofm_nNumReprojectedFramesTimedOut().static intnm_nNumTimedOut(long struct)Unsafe version ofm_nNumTimedOut().static intnm_nPid(long struct)Unsafe version ofm_nPid().intsizeof()
-
-
-
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 aCompositorCumulativeStatsinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
m_nPid
public int m_nPid()
Returns the value of them_nPidfield.
-
m_nNumFramePresents
public int m_nNumFramePresents()
Returns the value of them_nNumFramePresentsfield.
-
m_nNumDroppedFrames
public int m_nNumDroppedFrames()
Returns the value of them_nNumDroppedFramesfield.
-
m_nNumReprojectedFrames
public int m_nNumReprojectedFrames()
Returns the value of them_nNumReprojectedFramesfield.
-
m_nNumFramePresentsOnStartup
public int m_nNumFramePresentsOnStartup()
Returns the value of them_nNumFramePresentsOnStartupfield.
-
m_nNumDroppedFramesOnStartup
public int m_nNumDroppedFramesOnStartup()
Returns the value of them_nNumDroppedFramesOnStartupfield.
-
m_nNumReprojectedFramesOnStartup
public int m_nNumReprojectedFramesOnStartup()
Returns the value of them_nNumReprojectedFramesOnStartupfield.
-
m_nNumLoading
public int m_nNumLoading()
Returns the value of them_nNumLoadingfield.
-
m_nNumFramePresentsLoading
public int m_nNumFramePresentsLoading()
Returns the value of them_nNumFramePresentsLoadingfield.
-
m_nNumDroppedFramesLoading
public int m_nNumDroppedFramesLoading()
Returns the value of them_nNumDroppedFramesLoadingfield.
-
m_nNumReprojectedFramesLoading
public int m_nNumReprojectedFramesLoading()
Returns the value of them_nNumReprojectedFramesLoadingfield.
-
m_nNumTimedOut
public int m_nNumTimedOut()
Returns the value of them_nNumTimedOutfield.
-
m_nNumFramePresentsTimedOut
public int m_nNumFramePresentsTimedOut()
Returns the value of them_nNumFramePresentsTimedOutfield.
-
m_nNumDroppedFramesTimedOut
public int m_nNumDroppedFramesTimedOut()
Returns the value of them_nNumDroppedFramesTimedOutfield.
-
m_nNumReprojectedFramesTimedOut
public int m_nNumReprojectedFramesTimedOut()
Returns the value of them_nNumReprojectedFramesTimedOutfield.
-
malloc
public static CompositorCumulativeStats malloc()
Returns a newCompositorCumulativeStatsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CompositorCumulativeStats calloc()
Returns a newCompositorCumulativeStatsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CompositorCumulativeStats create()
Returns a newCompositorCumulativeStatsinstance allocated withBufferUtils.
-
create
public static CompositorCumulativeStats create(long address)
Returns a newCompositorCumulativeStatsinstance for the specified memory address.
-
createSafe
@Nullable public static CompositorCumulativeStats createSafe(long address)
-
malloc
public static CompositorCumulativeStats.Buffer malloc(int capacity)
Returns a newCompositorCumulativeStats.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CompositorCumulativeStats.Buffer calloc(int capacity)
Returns a newCompositorCumulativeStats.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CompositorCumulativeStats.Buffer create(int capacity)
Returns a newCompositorCumulativeStats.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CompositorCumulativeStats.Buffer create(long address, int capacity)
Create aCompositorCumulativeStats.Bufferinstance 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 newCompositorCumulativeStatsinstance allocated on the thread-localMemoryStack.
-
callocStack
public static CompositorCumulativeStats callocStack()
Returns a newCompositorCumulativeStatsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static CompositorCumulativeStats mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStatsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static CompositorCumulativeStats callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorCumulativeStatsinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static CompositorCumulativeStats.Buffer callocStack(int capacity)
Returns a newCompositorCumulativeStats.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-