QtCraft API C++ classes QML types Handbook

QcDebugSnapshot::Frame Struct

struct QcDebugSnapshot::Frame

Only in the graphical game. More...

Public Variables

qint64 blockLightBytes
int drawCalls
double fps
int frameLimit
bool gpuTimed
double lightJobMs
int lightJobsPending
qsizetype meshBacklog
double meshJobMs
qsizetype meshedSections
std::array<QcDebugSnapshot::Timing, QcFramePhases::count> phases
quint64 sectionBytes
int visibleSections

Detailed Description

Member Variable Documentation

int Frame::drawCalls

Draw calls of the latest frame.

double Frame::fps

Frames per second.

int Frame::frameLimit

The window's frame rate limit in force (decision E-835); 0 for none.

bool Frame::gpuTimed

GPU times need RHI timestamps (QSG_RHI_PROFILE=1).

qsizetype Frame::meshedSections

Sections that have a mesh.

std::array<QcDebugSnapshot::Timing, QcFramePhases::count> Frame::phases

The duration of each frame phase, indexed by QcFramePhase.

int Frame::visibleSections

Sections drawn in the latest frame.