Package org.lwjgl.bgfx
Class BGFXStats
- All Implemented Interfaces:
Pointer
Renderer statistics data.
All time values are high-resolution timestamps, while time frequencies define timestamps-per-second for that hardware.
Layout
struct bgfx_stats_t {
int64_t cpuTimeFrame()
;
int64_t cpuTimeBegin()
;
int64_t cpuTimeEnd()
;
int64_t cpuTimerFreq()
;
int64_t gpuTimeBegin()
;
int64_t gpuTimeEnd()
;
int64_t gpuTimerFreq()
;
int64_t waitRender()
;
int64_t waitSubmit()
;
uint32_t numDraw()
;
uint32_t numCompute()
;
uint32_t numBlit()
;
uint32_t maxGpuLatency()
;
uint32_t gpuFrameNum()
;
uint16_t numDynamicIndexBuffers()
;
uint16_t numDynamicVertexBuffers()
;
uint16_t numFrameBuffers()
;
uint16_t numIndexBuffers()
;
uint16_t numOcclusionQueries()
;
uint16_t numPrograms()
;
uint16_t numShaders()
;
uint16_t numTextures()
;
uint16_t numUniforms()
;
uint16_t numVertexBuffers()
;
uint16_t numVertexLayouts()
;
int64_t textureMemoryUsed()
;
int64_t rtMemoryUsed()
;
int32_t transientVbUsed()
;
int32_t transientIbUsed()
;
uint32_t numPrims()
[BGFX_TOPOLOGY_COUNT];
int64_t gpuMemoryMax()
;
int64_t gpuMemoryUsed()
;
uint16_t width()
;
uint16_t height()
;
uint16_t textWidth()
;
uint16_t textHeight()
;
uint16_t numViews()
;
bgfx_view_stats_t
* viewStats()
;
uint16_t numEncoders()
;
bgfx_encoder_stats_t
* encoderStats()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionBGFXStats
(ByteBuffer container) Creates aBGFXStats
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
Render thread CPU submit begin timelong
Render thread CPU submit end timelong
CPU time between twoframe
callslong
CPU timer frequency.static BGFXStats
create
(long address) Returns a newBGFXStats
instance for the specified memory address.static BGFXStats.Buffer
create
(long address, int capacity) Create aBGFXStats.Buffer
instance at the specified memory.static BGFXStats
createSafe
(long address) static BGFXStats.Buffer
createSafe
(long address, int capacity) array of encoder statsint
frame which generatedgpuTimeBegin
,gpuTimeEnd
long
maximum available GPU memory for applicationlong
amount of GPU memory used by the applicationlong
GPU frame begin timelong
GPU frame end timelong
GPU timer frequencyshort
height()
backbuffer height in pixelsint
GPU driver latencystatic long
ncpuTimeBegin
(long struct) Unsafe version ofcpuTimeBegin()
.static long
ncpuTimeEnd
(long struct) Unsafe version ofcpuTimeEnd()
.static long
ncpuTimeFrame
(long struct) Unsafe version ofcpuTimeFrame()
.static long
ncpuTimerFreq
(long struct) Unsafe version ofcpuTimerFreq()
.static BGFXEncoderStats.Buffer
nencoderStats
(long struct) Unsafe version ofencoderStats()
.static int
ngpuFrameNum
(long struct) Unsafe version ofgpuFrameNum()
.static long
ngpuMemoryMax
(long struct) Unsafe version ofgpuMemoryMax()
.static long
ngpuMemoryUsed
(long struct) Unsafe version ofgpuMemoryUsed()
.static long
ngpuTimeBegin
(long struct) Unsafe version ofgpuTimeBegin()
.static long
ngpuTimeEnd
(long struct) Unsafe version ofgpuTimeEnd()
.static long
ngpuTimerFreq
(long struct) Unsafe version ofgpuTimerFreq()
.static short
nheight
(long struct) Unsafe version ofheight()
.static int
nmaxGpuLatency
(long struct) Unsafe version ofmaxGpuLatency()
.static int
nnumBlit
(long struct) Unsafe version ofnumBlit()
.static int
nnumCompute
(long struct) Unsafe version ofnumCompute()
.static int
nnumDraw
(long struct) Unsafe version ofnumDraw()
.static short
nnumDynamicIndexBuffers
(long struct) Unsafe version ofnumDynamicIndexBuffers()
.static short
nnumDynamicVertexBuffers
(long struct) Unsafe version ofnumDynamicVertexBuffers()
.static short
nnumEncoders
(long struct) Unsafe version ofnumEncoders()
.static short
nnumFrameBuffers
(long struct) Unsafe version ofnumFrameBuffers()
.static short
nnumIndexBuffers
(long struct) Unsafe version ofnumIndexBuffers()
.static short
nnumOcclusionQueries
(long struct) Unsafe version ofnumOcclusionQueries()
.static IntBuffer
nnumPrims
(long struct) Unsafe version ofnumPrims()
.static int
nnumPrims
(long struct, int index) Unsafe version ofnumPrims
.static short
nnumPrograms
(long struct) Unsafe version ofnumPrograms()
.static short
nnumShaders
(long struct) Unsafe version ofnumShaders()
.static short
nnumTextures
(long struct) Unsafe version ofnumTextures()
.static short
nnumUniforms
(long struct) Unsafe version ofnumUniforms()
.static short
nnumVertexBuffers
(long struct) Unsafe version ofnumVertexBuffers()
.static short
nnumVertexLayouts
(long struct) Unsafe version ofnumVertexLayouts()
.static short
nnumViews
(long struct) Unsafe version ofnumViews()
.static long
nrtMemoryUsed
(long struct) Unsafe version ofrtMemoryUsed()
.static short
ntextHeight
(long struct) Unsafe version oftextHeight()
.static long
ntextureMemoryUsed
(long struct) Unsafe version oftextureMemoryUsed()
.static short
ntextWidth
(long struct) Unsafe version oftextWidth()
.static int
ntransientIbUsed
(long struct) Unsafe version oftransientIbUsed()
.static int
ntransientVbUsed
(long struct) Unsafe version oftransientVbUsed()
.int
numBlit()
number of blit calls submittedint
number of compute calls submittedint
numDraw()
number of draw calls submittedshort
number of used dynamic index buffersshort
number of used dynamic vertex buffersshort
number of encoders used during frameshort
number of used frame buffersshort
number of used index buffersshort
number of used occlusion queriesnumPrims()
number of primitives renderedint
numPrims
(int index) number of primitives renderedshort
number of used programsshort
number of used shadersshort
number of used texturesshort
number of used uniformsshort
number of used vertex buffersshort
number of used vertex layoutsshort
numViews()
number of view statsstatic BGFXViewStats.Buffer
nviewStats
(long struct) Unsafe version ofviewStats()
.static long
nwaitRender
(long struct) Unsafe version ofwaitRender()
.static long
nwaitSubmit
(long struct) Unsafe version ofwaitSubmit()
.static short
nwidth
(long struct) Unsafe version ofwidth()
.long
estimate of render target memory usedint
sizeof()
Returnssizeof(struct)
.short
debug text height in characterslong
estimate of texture memory usedshort
debug text width in charactersint
amount of transient index buffer usedint
amount of transient vertex buffer usedarray of view statslong
time spent waiting for render backend thread to finish issuing draw commands to underlying graphics APIlong
time spent waiting for submit thread to advance to next frameshort
width()
backbuffer width in pixelsMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CPUTIMEFRAME
public static final int CPUTIMEFRAMEThe struct member offsets. -
CPUTIMEBEGIN
public static final int CPUTIMEBEGINThe struct member offsets. -
CPUTIMEEND
public static final int CPUTIMEENDThe struct member offsets. -
CPUTIMERFREQ
public static final int CPUTIMERFREQThe struct member offsets. -
GPUTIMEBEGIN
public static final int GPUTIMEBEGINThe struct member offsets. -
GPUTIMEEND
public static final int GPUTIMEENDThe struct member offsets. -
GPUTIMERFREQ
public static final int GPUTIMERFREQThe struct member offsets. -
WAITRENDER
public static final int WAITRENDERThe struct member offsets. -
WAITSUBMIT
public static final int WAITSUBMITThe struct member offsets. -
NUMDRAW
public static final int NUMDRAWThe struct member offsets. -
NUMCOMPUTE
public static final int NUMCOMPUTEThe struct member offsets. -
NUMBLIT
public static final int NUMBLITThe struct member offsets. -
MAXGPULATENCY
public static final int MAXGPULATENCYThe struct member offsets. -
GPUFRAMENUM
public static final int GPUFRAMENUMThe struct member offsets. -
NUMDYNAMICINDEXBUFFERS
public static final int NUMDYNAMICINDEXBUFFERSThe struct member offsets. -
NUMDYNAMICVERTEXBUFFERS
public static final int NUMDYNAMICVERTEXBUFFERSThe struct member offsets. -
NUMFRAMEBUFFERS
public static final int NUMFRAMEBUFFERSThe struct member offsets. -
NUMINDEXBUFFERS
public static final int NUMINDEXBUFFERSThe struct member offsets. -
NUMOCCLUSIONQUERIES
public static final int NUMOCCLUSIONQUERIESThe struct member offsets. -
NUMPROGRAMS
public static final int NUMPROGRAMSThe struct member offsets. -
NUMSHADERS
public static final int NUMSHADERSThe struct member offsets. -
NUMTEXTURES
public static final int NUMTEXTURESThe struct member offsets. -
NUMUNIFORMS
public static final int NUMUNIFORMSThe struct member offsets. -
NUMVERTEXBUFFERS
public static final int NUMVERTEXBUFFERSThe struct member offsets. -
NUMVERTEXLAYOUTS
public static final int NUMVERTEXLAYOUTSThe struct member offsets. -
TEXTUREMEMORYUSED
public static final int TEXTUREMEMORYUSEDThe struct member offsets. -
RTMEMORYUSED
public static final int RTMEMORYUSEDThe struct member offsets. -
TRANSIENTVBUSED
public static final int TRANSIENTVBUSEDThe struct member offsets. -
TRANSIENTIBUSED
public static final int TRANSIENTIBUSEDThe struct member offsets. -
NUMPRIMS
public static final int NUMPRIMSThe struct member offsets. -
GPUMEMORYMAX
public static final int GPUMEMORYMAXThe struct member offsets. -
GPUMEMORYUSED
public static final int GPUMEMORYUSEDThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
TEXTWIDTH
public static final int TEXTWIDTHThe struct member offsets. -
TEXTHEIGHT
public static final int TEXTHEIGHTThe struct member offsets. -
NUMVIEWS
public static final int NUMVIEWSThe struct member offsets. -
VIEWSTATS
public static final int VIEWSTATSThe struct member offsets. -
NUMENCODERS
public static final int NUMENCODERSThe struct member offsets. -
ENCODERSTATS
public static final int ENCODERSTATSThe struct member offsets.
-
-
Constructor Details
-
BGFXStats
Creates aBGFXStats
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
cpuTimeFrame
public long cpuTimeFrame()CPU time between twoframe
calls -
cpuTimeBegin
public long cpuTimeBegin()Render thread CPU submit begin time -
cpuTimeEnd
public long cpuTimeEnd()Render thread CPU submit end time -
cpuTimerFreq
public long cpuTimerFreq()CPU timer frequency. Timestamps-per-second. -
gpuTimeBegin
public long gpuTimeBegin()GPU frame begin time -
gpuTimeEnd
public long gpuTimeEnd()GPU frame end time -
gpuTimerFreq
public long gpuTimerFreq()GPU timer frequency -
waitRender
public long waitRender()time spent waiting for render backend thread to finish issuing draw commands to underlying graphics API -
waitSubmit
public long waitSubmit()time spent waiting for submit thread to advance to next frame -
numDraw
public int numDraw()number of draw calls submitted -
numCompute
public int numCompute()number of compute calls submitted -
numBlit
public int numBlit()number of blit calls submitted -
maxGpuLatency
public int maxGpuLatency()GPU driver latency -
gpuFrameNum
public int gpuFrameNum()frame which generatedgpuTimeBegin
,gpuTimeEnd
-
numDynamicIndexBuffers
public short numDynamicIndexBuffers()number of used dynamic index buffers -
numDynamicVertexBuffers
public short numDynamicVertexBuffers()number of used dynamic vertex buffers -
numFrameBuffers
public short numFrameBuffers()number of used frame buffers -
numIndexBuffers
public short numIndexBuffers()number of used index buffers -
numOcclusionQueries
public short numOcclusionQueries()number of used occlusion queries -
numPrograms
public short numPrograms()number of used programs -
numShaders
public short numShaders()number of used shaders -
numTextures
public short numTextures()number of used textures -
numUniforms
public short numUniforms()number of used uniforms -
numVertexBuffers
public short numVertexBuffers()number of used vertex buffers -
numVertexLayouts
public short numVertexLayouts()number of used vertex layouts -
textureMemoryUsed
public long textureMemoryUsed()estimate of texture memory used -
rtMemoryUsed
public long rtMemoryUsed()estimate of render target memory used -
transientVbUsed
public int transientVbUsed()amount of transient vertex buffer used -
transientIbUsed
public int transientIbUsed()amount of transient index buffer used -
numPrims
number of primitives rendered -
numPrims
public int numPrims(int index) number of primitives rendered -
gpuMemoryMax
public long gpuMemoryMax()maximum available GPU memory for application -
gpuMemoryUsed
public long gpuMemoryUsed()amount of GPU memory used by the application -
width
public short width()backbuffer width in pixels -
height
public short height()backbuffer height in pixels -
textWidth
public short textWidth()debug text width in characters -
textHeight
public short textHeight()debug text height in characters -
numViews
public short numViews()number of view stats -
viewStats
array of view stats -
numEncoders
public short numEncoders()number of encoders used during frame -
encoderStats
array of encoder stats -
create
Returns a newBGFXStats
instance for the specified memory address. -
createSafe
-
create
Create aBGFXStats.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ncpuTimeFrame
public static long ncpuTimeFrame(long struct) Unsafe version ofcpuTimeFrame()
. -
ncpuTimeBegin
public static long ncpuTimeBegin(long struct) Unsafe version ofcpuTimeBegin()
. -
ncpuTimeEnd
public static long ncpuTimeEnd(long struct) Unsafe version ofcpuTimeEnd()
. -
ncpuTimerFreq
public static long ncpuTimerFreq(long struct) Unsafe version ofcpuTimerFreq()
. -
ngpuTimeBegin
public static long ngpuTimeBegin(long struct) Unsafe version ofgpuTimeBegin()
. -
ngpuTimeEnd
public static long ngpuTimeEnd(long struct) Unsafe version ofgpuTimeEnd()
. -
ngpuTimerFreq
public static long ngpuTimerFreq(long struct) Unsafe version ofgpuTimerFreq()
. -
nwaitRender
public static long nwaitRender(long struct) Unsafe version ofwaitRender()
. -
nwaitSubmit
public static long nwaitSubmit(long struct) Unsafe version ofwaitSubmit()
. -
nnumDraw
public static int nnumDraw(long struct) Unsafe version ofnumDraw()
. -
nnumCompute
public static int nnumCompute(long struct) Unsafe version ofnumCompute()
. -
nnumBlit
public static int nnumBlit(long struct) Unsafe version ofnumBlit()
. -
nmaxGpuLatency
public static int nmaxGpuLatency(long struct) Unsafe version ofmaxGpuLatency()
. -
ngpuFrameNum
public static int ngpuFrameNum(long struct) Unsafe version ofgpuFrameNum()
. -
nnumDynamicIndexBuffers
public static short nnumDynamicIndexBuffers(long struct) Unsafe version ofnumDynamicIndexBuffers()
. -
nnumDynamicVertexBuffers
public static short nnumDynamicVertexBuffers(long struct) Unsafe version ofnumDynamicVertexBuffers()
. -
nnumFrameBuffers
public static short nnumFrameBuffers(long struct) Unsafe version ofnumFrameBuffers()
. -
nnumIndexBuffers
public static short nnumIndexBuffers(long struct) Unsafe version ofnumIndexBuffers()
. -
nnumOcclusionQueries
public static short nnumOcclusionQueries(long struct) Unsafe version ofnumOcclusionQueries()
. -
nnumPrograms
public static short nnumPrograms(long struct) Unsafe version ofnumPrograms()
. -
nnumShaders
public static short nnumShaders(long struct) Unsafe version ofnumShaders()
. -
nnumTextures
public static short nnumTextures(long struct) Unsafe version ofnumTextures()
. -
nnumUniforms
public static short nnumUniforms(long struct) Unsafe version ofnumUniforms()
. -
nnumVertexBuffers
public static short nnumVertexBuffers(long struct) Unsafe version ofnumVertexBuffers()
. -
nnumVertexLayouts
public static short nnumVertexLayouts(long struct) Unsafe version ofnumVertexLayouts()
. -
ntextureMemoryUsed
public static long ntextureMemoryUsed(long struct) Unsafe version oftextureMemoryUsed()
. -
nrtMemoryUsed
public static long nrtMemoryUsed(long struct) Unsafe version ofrtMemoryUsed()
. -
ntransientVbUsed
public static int ntransientVbUsed(long struct) Unsafe version oftransientVbUsed()
. -
ntransientIbUsed
public static int ntransientIbUsed(long struct) Unsafe version oftransientIbUsed()
. -
nnumPrims
Unsafe version ofnumPrims()
. -
nnumPrims
public static int nnumPrims(long struct, int index) Unsafe version ofnumPrims
. -
ngpuMemoryMax
public static long ngpuMemoryMax(long struct) Unsafe version ofgpuMemoryMax()
. -
ngpuMemoryUsed
public static long ngpuMemoryUsed(long struct) Unsafe version ofgpuMemoryUsed()
. -
nwidth
public static short nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static short nheight(long struct) Unsafe version ofheight()
. -
ntextWidth
public static short ntextWidth(long struct) Unsafe version oftextWidth()
. -
ntextHeight
public static short ntextHeight(long struct) Unsafe version oftextHeight()
. -
nnumViews
public static short nnumViews(long struct) Unsafe version ofnumViews()
. -
nviewStats
Unsafe version ofviewStats()
. -
nnumEncoders
public static short nnumEncoders(long struct) Unsafe version ofnumEncoders()
. -
nencoderStats
Unsafe version ofencoderStats()
.
-