All time values are high-resolution timestamps, while time frequencies define timestamps-per-second for that hardware.
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | BGFXStats.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CPUTIMEBEGIN
The struct member offsets. |
| public static final int | CPUTIMEEND
The struct member offsets. |
| public static final int | CPUTIMEFRAME
The struct member offsets. |
| public static final int | CPUTIMERFREQ
The struct member offsets. |
| public static final int | ENCODERSTATS
The struct member offsets. |
| public static final int | GPUFRAMENUM
The struct member offsets. |
| public static final int | GPUMEMORYMAX
The struct member offsets. |
| public static final int | GPUMEMORYUSED
The struct member offsets. |
| public static final int | GPUTIMEBEGIN
The struct member offsets. |
| public static final int | GPUTIMEEND
The struct member offsets. |
| public static final int | GPUTIMERFREQ
The struct member offsets. |
| public static final int | HEIGHT
The struct member offsets. |
| public static final int | MAXGPULATENCY
The struct member offsets. |
| public static final int | NUMBLIT
The struct member offsets. |
| public static final int | NUMCOMPUTE
The struct member offsets. |
| public static final int | NUMDRAW
The struct member offsets. |
| public static final int | NUMDYNAMICINDEXBUFFERS
The struct member offsets. |
| public static final int | NUMDYNAMICVERTEXBUFFERS
The struct member offsets. |
| public static final int | NUMENCODERS
The struct member offsets. |
| public static final int | NUMFRAMEBUFFERS
The struct member offsets. |
| public static final int | NUMINDEXBUFFERS
The struct member offsets. |
| public static final int | NUMOCCLUSIONQUERIES
The struct member offsets. |
| public static final int | NUMPRIMS
The struct member offsets. |
| public static final int | NUMPROGRAMS
The struct member offsets. |
| public static final int | NUMSHADERS
The struct member offsets. |
| public static final int | NUMTEXTURES
The struct member offsets. |
| public static final int | NUMUNIFORMS
The struct member offsets. |
| public static final int | NUMVERTEXBUFFERS
The struct member offsets. |
| public static final int | NUMVERTEXLAYOUTS
The struct member offsets. |
| public static final int | NUMVIEWS
The struct member offsets. |
| public static final int | RTMEMORYUSED
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TEXTHEIGHT
The struct member offsets. |
| public static final int | TEXTUREMEMORYUSED
The struct member offsets. |
| public static final int | TEXTWIDTH
The struct member offsets. |
| public static final int | TRANSIENTIBUSED
The struct member offsets. |
| public static final int | TRANSIENTVBUSED
The struct member offsets. |
| public static final int | VIEWSTATS
The struct member offsets. |
| public static final int | WAITRENDER
The struct member offsets. |
| public static final int | WAITSUBMIT
The struct member offsets. |
| public static final int | WIDTH
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | BGFXStats(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | |
| public long | |
| public long | |
| protected BGFXStats | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static BGFXStats | |
| public static BGFXStats. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static BGFXStats | |
| public static BGFXStats. | |
| public BGFXEncoderStats. | |
| public int | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public short | |
| public int | |
| public static long | |
| public static long | |
| public static long | |
| public static long | |
| public static BGFXEncoderStats. | |
| public static int | |
| public static long | |
| public static long | |
| public static long | |
| public static long | |
| public static long | |
| public static short | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static short | |
| public static short | |
| public static short | |
| public static short | |
| public static short | |
| public static short | |
| public static IntBuffer | |
| public static int | |
| public static short | |
| public static short | |
| public static short | |
| public static short | |
| public static short | |
| public static short | |
| public static short | |
| public static long | |
| public static short | |
| public static long | |
| public static short | |
| public static int | |
| public static int | |
| public int | |
| public int | |
| public int | |
| public short | |
| public short | |
| public short | |
| public short | |
| public short | |
| public short | |
| public IntBuffer | |
| public int | |
| public short | |
| public short | |
| public short | |
| public short | |
| public short | |
| public short | |
| public short | |
| public static BGFXViewStats. | |
| public static long | |
| public static long | |
| public static short | |
| public long | |
| public int | |
| public short | |
| public long | |
| public short | |
| public int | |
| public int | |
| public BGFXViewStats. | |
| public long | waitRender()
time spent waiting for render backend thread to finish issuing draw commands to underlying graphics API |
| public long | |
| public short |