QtCraft API C++ classes QML types Handbook

QcMsg::ServerDebug Struct

struct QcMsg::ServerDebug

Server -> client: tick phases and server counts, at most twice a second while subscribed. More...

Header: #include <common/protocol/QcDebugMessages.h>

Public Types

struct Chunks

Public Variables

QString biome
QcMsg::ServerDebug::Chunks chunks
quint32 fallingBlocks
QList<QcMsg::MobGoal> goals
quint32 items
float lateMaxMs
float lateMeanMs
quint32 loadedChunks
quint32 mobs
quint32 pendingBlockUpdates
std::array<float, QcTickPhases::count> phaseMaxMs
std::array<float, QcTickPhases::count> phaseMeanMs
quint32 players
QList<float> recentTickMs
quint64 skippedTicks
quint64 tick
float tickMaxMs
float tickMeanMs
quint32 waitingBlockUpdates
QString worldType

Static Public Members

const quint32 maxGoals
const quint32 maxRecentTicks
const qsizetype maxTextLength

Detailed Description

Member Variable Documentation

QcMsg::ServerDebug::Chunks ServerDebug::chunks

The chunk counts.

QList<QcMsg::MobGoal> ServerDebug::goals

Only with DebugSubscribe::mobGoals: creatures within goalRange of the player.

quint32 ServerDebug::loadedChunks

Chunks loaded.

const quint32 ServerDebug::maxGoals

The most entries of goals.

const quint32 ServerDebug::maxRecentTicks

The most entries of recentTickMs.

const qsizetype ServerDebug::maxTextLength

The longest biome and worldType.

quint32 ServerDebug::pendingBlockUpdates

Block updates of player actions and commands waiting for the next ticks.

quint32 ServerDebug::players

Players who have joined.

QList<float> ServerDebug::recentTickMs

Durations of the ticks since the previous message, oldest first (graph).

quint64 ServerDebug::skippedTicks

Ticks dropped since the server started because it fell behind.

quint64 ServerDebug::tick

The current tick of the world clock.

quint32 ServerDebug::waitingBlockUpdates

Block updates waiting for their chunk to load.