bgfx_stats_t

Renderer statistics data. @remarks All time values are high-resolution timestamps, while time frequencies define timestamps-per-second for that hardware.

Members

Variables

cpuTimeBegin
long cpuTimeBegin;

Render thread CPU submit begin time.

cpuTimeEnd
long cpuTimeEnd;

Render thread CPU submit end time.

cpuTimeFrame
long cpuTimeFrame;

CPU time between two bgfx::frame calls.

cpuTimerFreq
long cpuTimerFreq;

CPU timer frequency. Timestamps-per-second

encoderStats
bgfx_encoder_stats_t* encoderStats;

Array of encoder stats.

gpuMemoryMax
long gpuMemoryMax;

Maximum available GPU memory for application.

gpuMemoryUsed
long gpuMemoryUsed;

Amount of GPU memory used by the application.

gpuTimeBegin
long gpuTimeBegin;

GPU frame begin time.

gpuTimeEnd
long gpuTimeEnd;

GPU frame end time.

gpuTimerFreq
long gpuTimerFreq;

GPU timer frequency.

height
ushort height;

Backbuffer height in pixels.

maxGpuLatency
uint maxGpuLatency;

GPU driver latency.

numBlit
uint numBlit;

Number of blit calls submitted.

numCompute
uint numCompute;

Number of compute calls submitted.

numDraw
uint numDraw;

Number of draw calls submitted.

numDynamicIndexBuffers
ushort numDynamicIndexBuffers;

Number of used dynamic index buffers.

numDynamicVertexBuffers
ushort numDynamicVertexBuffers;

Number of used dynamic vertex buffers.

numEncoders
byte numEncoders;

Number of encoders used during frame.

numFrameBuffers
ushort numFrameBuffers;

Number of used frame buffers.

numIndexBuffers
ushort numIndexBuffers;

Number of used index buffers.

numOcclusionQueries
ushort numOcclusionQueries;

Number of used occlusion queries.

numPrims
uint[bgfx_topology_t.BGFX_TOPOLOGY_COUNT] numPrims;

Number of primitives rendered.

numPrograms
ushort numPrograms;

Number of used programs.

numShaders
ushort numShaders;

Number of used shaders.

numTextures
ushort numTextures;

Number of used textures.

numUniforms
ushort numUniforms;

Number of used uniforms.

numVertexBuffers
ushort numVertexBuffers;

Number of used vertex buffers.

numVertexLayouts
ushort numVertexLayouts;

Number of used vertex layouts.

numViews
ushort numViews;

Number of view stats.

rtMemoryUsed
long rtMemoryUsed;

Estimate of render target memory used.

textHeight
ushort textHeight;

Debug text height in characters.

textWidth
ushort textWidth;

Debug text width in characters.

textureMemoryUsed
long textureMemoryUsed;

Estimate of texture memory used.

transientIbUsed
int transientIbUsed;

Amount of transient index buffer used.

transientVbUsed
int transientVbUsed;

Amount of transient vertex buffer used.

viewStats
bgfx_view_stats_t* viewStats;

Array of View stats.

waitRender
long waitRender;

Time spent waiting for render backend thread to finish issuing draw commands to underlying graphics API.

waitSubmit
long waitSubmit;

Time spent waiting for submit thread to advance to next frame.

width
ushort width;

Backbuffer width in pixels.

Meta