Package org.lwjgl.openvr
Class CompositorCumulativeStats
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CompositorCumulativeStats>
org.lwjgl.openvr.CompositorCumulativeStats
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CompositorCumulativeStats
extends org.lwjgl.system.Struct<CompositorCumulativeStats>
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.
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;
uint32_t m_nNumFrameSubmits;
vrshared_double m_flSumCompositorCPUTimeMS();
vrshared_double m_flSumCompositorGPUTimeMS();
vrshared_double m_flSumTargetFrameTimes();
vrshared_double m_flSumApplicationCPUTimeMS();
vrshared_double m_flSumApplicationGPUTimeMS();
uint32_t m_nNumFramesWithDepth();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCompositorCumulativeStats(ByteBuffer container) Creates aCompositorCumulativeStatsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositorCumulativeStatscalloc()Returns a newCompositorCumulativeStatsinstance allocated withmemCalloc.calloc(int capacity) Returns a newCompositorCumulativeStats.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCompositorCumulativeStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CompositorCumulativeStatscalloc(org.lwjgl.system.MemoryStack stack) Returns a newCompositorCumulativeStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CompositorCumulativeStatsDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CompositorCumulativeStatscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static CompositorCumulativeStatscreate()Returns a newCompositorCumulativeStatsinstance allocated withBufferUtils.create(int capacity) Returns a newCompositorCumulativeStats.Bufferinstance allocated withBufferUtils.static CompositorCumulativeStatscreate(long address) Returns a newCompositorCumulativeStatsinstance for the specified memory address.create(long address, int capacity) Create aCompositorCumulativeStats.Bufferinstance at the specified memory.static @Nullable CompositorCumulativeStatscreateSafe(long address) static @Nullable CompositorCumulativeStats.BuffercreateSafe(long address, int capacity) doubledivide bym_nNumFrameSubmitsdoubledivide bym_nNumFrameSubmitsdoubledivide bym_nNumFrameSubmitsdoubledivide bym_nNumFrameSubmitsdoubledivide bym_nNumFrameSubmitsinttotal number of times an old frame was re-scanned out (without reprojection)intintintinttotal number of times we called present (includes reprojected frames)intintintintinttotal frames submitted with depth by the current applicationintinttotal number of times a frame was scanned out a second time (with reprojection)intintintintintm_nPid()Process id associated with these stats (may no longer be running).static CompositorCumulativeStatsmalloc()Returns a newCompositorCumulativeStatsinstance allocated withmemAlloc.malloc(int capacity) Returns a newCompositorCumulativeStats.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCompositorCumulativeStats.Bufferinstance allocated on the specifiedMemoryStack.static CompositorCumulativeStatsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCompositorCumulativeStatsinstance allocated on the specifiedMemoryStack.static CompositorCumulativeStatsDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CompositorCumulativeStatsmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static doublenm_flSumApplicationCPUTimeMS(long struct) Unsafe version ofm_flSumApplicationCPUTimeMS().static doublenm_flSumApplicationGPUTimeMS(long struct) Unsafe version ofm_flSumApplicationGPUTimeMS().static doublenm_flSumCompositorCPUTimeMS(long struct) Unsafe version ofm_flSumCompositorCPUTimeMS().static doublenm_flSumCompositorGPUTimeMS(long struct) Unsafe version ofm_flSumCompositorGPUTimeMS().static doublenm_flSumTargetFrameTimes(long struct) Unsafe version ofm_flSumTargetFrameTimes().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_nNumFrameSubmits(long struct) Unsafe version ofm_nNumFrameSubmits().static intnm_nNumFramesWithDepth(long struct) Unsafe version ofm_nNumFramesWithDepth().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()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
M_NPID
public static final int M_NPIDThe struct member offsets. -
M_NNUMFRAMEPRESENTS
public static final int M_NNUMFRAMEPRESENTSThe struct member offsets. -
M_NNUMDROPPEDFRAMES
public static final int M_NNUMDROPPEDFRAMESThe struct member offsets. -
M_NNUMREPROJECTEDFRAMES
public static final int M_NNUMREPROJECTEDFRAMESThe struct member offsets. -
M_NNUMFRAMEPRESENTSONSTARTUP
public static final int M_NNUMFRAMEPRESENTSONSTARTUPThe struct member offsets. -
M_NNUMDROPPEDFRAMESONSTARTUP
public static final int M_NNUMDROPPEDFRAMESONSTARTUPThe struct member offsets. -
M_NNUMREPROJECTEDFRAMESONSTARTUP
public static final int M_NNUMREPROJECTEDFRAMESONSTARTUPThe struct member offsets. -
M_NNUMLOADING
public static final int M_NNUMLOADINGThe struct member offsets. -
M_NNUMFRAMEPRESENTSLOADING
public static final int M_NNUMFRAMEPRESENTSLOADINGThe struct member offsets. -
M_NNUMDROPPEDFRAMESLOADING
public static final int M_NNUMDROPPEDFRAMESLOADINGThe struct member offsets. -
M_NNUMREPROJECTEDFRAMESLOADING
public static final int M_NNUMREPROJECTEDFRAMESLOADINGThe struct member offsets. -
M_NNUMTIMEDOUT
public static final int M_NNUMTIMEDOUTThe struct member offsets. -
M_NNUMFRAMEPRESENTSTIMEDOUT
public static final int M_NNUMFRAMEPRESENTSTIMEDOUTThe struct member offsets. -
M_NNUMDROPPEDFRAMESTIMEDOUT
public static final int M_NNUMDROPPEDFRAMESTIMEDOUTThe struct member offsets. -
M_NNUMREPROJECTEDFRAMESTIMEDOUT
public static final int M_NNUMREPROJECTEDFRAMESTIMEDOUTThe struct member offsets. -
M_NNUMFRAMESUBMITS
public static final int M_NNUMFRAMESUBMITSThe struct member offsets. -
M_FLSUMCOMPOSITORCPUTIMEMS
public static final int M_FLSUMCOMPOSITORCPUTIMEMSThe struct member offsets. -
M_FLSUMCOMPOSITORGPUTIMEMS
public static final int M_FLSUMCOMPOSITORGPUTIMEMSThe struct member offsets. -
M_FLSUMTARGETFRAMETIMES
public static final int M_FLSUMTARGETFRAMETIMESThe struct member offsets. -
M_FLSUMAPPLICATIONCPUTIMEMS
public static final int M_FLSUMAPPLICATIONCPUTIMEMSThe struct member offsets. -
M_FLSUMAPPLICATIONGPUTIMEMS
public static final int M_FLSUMAPPLICATIONGPUTIMEMSThe struct member offsets. -
M_NNUMFRAMESWITHDEPTH
public static final int M_NNUMFRAMESWITHDEPTHThe struct member offsets.
-
-
Constructor Details
-
CompositorCumulativeStats
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CompositorCumulativeStats>
-
m_nPid
public int m_nPid()Process id associated with these stats (may no longer be running). -
m_nNumFramePresents
public int m_nNumFramePresents()total number of times we called present (includes reprojected frames) -
m_nNumDroppedFrames
public int m_nNumDroppedFrames()total number of times an old frame was re-scanned out (without reprojection) -
m_nNumReprojectedFrames
public int m_nNumReprojectedFrames()total number of times a frame was scanned out a second time (with reprojection) -
m_nNumFramePresentsOnStartup
public int m_nNumFramePresentsOnStartup()- Returns:
- the value of the
m_nNumFramePresentsOnStartupfield.
-
m_nNumDroppedFramesOnStartup
public int m_nNumDroppedFramesOnStartup()- Returns:
- the value of the
m_nNumDroppedFramesOnStartupfield.
-
m_nNumReprojectedFramesOnStartup
public int m_nNumReprojectedFramesOnStartup()- Returns:
- the value of the
m_nNumReprojectedFramesOnStartupfield.
-
m_nNumLoading
public int m_nNumLoading()- Returns:
- the value of the
m_nNumLoadingfield.
-
m_nNumFramePresentsLoading
public int m_nNumFramePresentsLoading()- Returns:
- the value of the
m_nNumFramePresentsLoadingfield.
-
m_nNumDroppedFramesLoading
public int m_nNumDroppedFramesLoading()- Returns:
- the value of the
m_nNumDroppedFramesLoadingfield.
-
m_nNumReprojectedFramesLoading
public int m_nNumReprojectedFramesLoading()- Returns:
- the value of the
m_nNumReprojectedFramesLoadingfield.
-
m_nNumTimedOut
public int m_nNumTimedOut()- Returns:
- the value of the
m_nNumTimedOutfield.
-
m_nNumFramePresentsTimedOut
public int m_nNumFramePresentsTimedOut()- Returns:
- the value of the
m_nNumFramePresentsTimedOutfield.
-
m_nNumDroppedFramesTimedOut
public int m_nNumDroppedFramesTimedOut()- Returns:
- the value of the
m_nNumDroppedFramesTimedOutfield.
-
m_nNumReprojectedFramesTimedOut
public int m_nNumReprojectedFramesTimedOut()- Returns:
- the value of the
m_nNumReprojectedFramesTimedOutfield.
-
m_nNumFrameSubmits
public int m_nNumFrameSubmits()- Returns:
- the value of the
m_nNumFrameSubmitsfield.
-
m_flSumCompositorCPUTimeMS
public double m_flSumCompositorCPUTimeMS()divide bym_nNumFrameSubmits -
m_flSumCompositorGPUTimeMS
public double m_flSumCompositorGPUTimeMS()divide bym_nNumFrameSubmits -
m_flSumTargetFrameTimes
public double m_flSumTargetFrameTimes()divide bym_nNumFrameSubmits -
m_flSumApplicationCPUTimeMS
public double m_flSumApplicationCPUTimeMS()divide bym_nNumFrameSubmits -
m_flSumApplicationGPUTimeMS
public double m_flSumApplicationGPUTimeMS()divide bym_nNumFrameSubmits -
m_nNumFramesWithDepth
public int m_nNumFramesWithDepth()total frames submitted with depth by the current application -
malloc
Returns a newCompositorCumulativeStatsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCompositorCumulativeStatsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCompositorCumulativeStatsinstance allocated withBufferUtils. -
create
Returns a newCompositorCumulativeStatsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCompositorCumulativeStats.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCompositorCumulativeStats.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCompositorCumulativeStats.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCompositorCumulativeStats.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static CompositorCumulativeStats.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static CompositorCumulativeStats.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newCompositorCumulativeStatsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCompositorCumulativeStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CompositorCumulativeStats.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCompositorCumulativeStats.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CompositorCumulativeStats.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCompositorCumulativeStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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(). -
nm_nNumFrameSubmits
public static int nm_nNumFrameSubmits(long struct) Unsafe version ofm_nNumFrameSubmits(). -
nm_flSumCompositorCPUTimeMS
public static double nm_flSumCompositorCPUTimeMS(long struct) Unsafe version ofm_flSumCompositorCPUTimeMS(). -
nm_flSumCompositorGPUTimeMS
public static double nm_flSumCompositorGPUTimeMS(long struct) Unsafe version ofm_flSumCompositorGPUTimeMS(). -
nm_flSumTargetFrameTimes
public static double nm_flSumTargetFrameTimes(long struct) Unsafe version ofm_flSumTargetFrameTimes(). -
nm_flSumApplicationCPUTimeMS
public static double nm_flSumApplicationCPUTimeMS(long struct) Unsafe version ofm_flSumApplicationCPUTimeMS(). -
nm_flSumApplicationGPUTimeMS
public static double nm_flSumApplicationGPUTimeMS(long struct) Unsafe version ofm_flSumApplicationGPUTimeMS(). -
nm_nNumFramesWithDepth
public static int nm_nNumFramesWithDepth(long struct) Unsafe version ofm_nNumFramesWithDepth().
-