nCine::RenderStatistics class

Gathers statistics about the rendering subsystem.

Accumulates per-frame counters for render commands, buffers, textures, custom VBOs/IBOs, culled nodes, the VAO pool and the command pool. The various rendering classes are friends so they can feed it data; only compiled when profiling is enabled.

Public types

class Commands
Counters for render commands of a single type or aggregated across all types.
class Buffers
Counters for the managed buffers of a single type.
class Textures
Counters for textures and their total video memory usage.
class CustomBuffers
Counters for custom VBOs or IBOs and their total memory usage.
class VaoPool
Counters for the VAO pool size, capacity, reuses and bindings.
class CommandPool
Counters for the render command pool used/free sizes and retrievals.

Public static functions

static auto GetAllCommands() -> const Commands&
Returns the command statistics aggregated across all types.
static auto GetCommands(RenderCommand::Type type) -> const Commands&
Returns the command statistics for the specified type.
static auto GetBuffers(RenderBuffersManager::BufferTypes type) -> const Buffers&
Returns the buffer statistics for the specified type.
static auto GetTextures() -> const Textures&
Returns the aggregated texture statistics.
static auto GetCustomVBOs() -> const CustomBuffers&
Returns the aggregated custom VBOs statistics.
static auto GetCustomIBOs() -> const CustomBuffers&
Returns the aggregated custom IBOs statistics.
static auto GetCulled() -> std::uint32_t
Returns the number of DrawableNode objects culled for being off-screen.
static auto GetVaoPool() -> const VaoPool&
Returns the statistics about the VAO pool.
static auto GetCommandPool() -> const CommandPool&
Returns the statistics about the render command pool.