nCine::FrameStatistics::Snapshot struct

Values averaged over the last complete interval.

Public variables

std::uint32_t Sequence
Changes every time the snapshot does.
std::uint32_t FrameCount
Number of frames the snapshot averages, zero until the first interval completes.
float FrameTime
Average frame time in milliseconds.
float MaxFrameTime
Longest frame of the interval in milliseconds.
float PhaseTimes
Average time of each phase in milliseconds.
float DrawCalls
Average number of draw calls per frame.
float RenderCommands
Average number of render commands per frame, before they were batched into the draw calls.
std::uint64_t MemoryUsed
Memory in use in bytes, or zero where it cannot be queried.
std::uint64_t MemoryTotal
Memory the use is out of in bytes, or zero where there is no fixed amount.
Counter Counters
Counters reported by the backends, in the order they first reported.
std::uint32_t CounterCount
Number of valid entries in Counters.

Variable documentation

std::uint32_t nCine::FrameStatistics::Snapshot::Sequence

Changes every time the snapshot does.

So whatever is derived from the snapshot - the formatted text of an overlay, say - can be redone only when there is something new, twice a second rather than every frame.