QtCraft API C++ classes QML types Handbook

QcHealthSample Struct

What a program reports in its health line; unknown parts stay empty or -1. More...

Header: #include <common/diagnostics/QcHealthSample.h>

Public Variables

qint64 entities
std::optional<QcIntervalTiming> frames
std::optional<QcRoundTripSummary> latency
qint64 loadedChunks
bool paused
qint64 players
std::optional<QcIntervalTiming> roundTrip
std::optional<QcIntervalTiming> ticks
std::optional<QcTraffic> traffic

Detailed Description

Member Variable Documentation

std::optional<QcIntervalTiming> QcHealthSample::frames

Frame intervals of the game since the previous line.

std::optional<QcRoundTripSummary> QcHealthSample::latency

The round trip of the latency probes over the last ten seconds (client, decision E-886).

bool QcHealthSample::paused

The server's tick loop pauses (decision E-877): the line says "paused".

std::optional<QcIntervalTiming> QcHealthSample::roundTrip

Time from sending a player input until the server's answer acknowledges it (client).

std::optional<QcIntervalTiming> QcHealthSample::ticks

Server tick durations (the dedicated server: since the previous line).

std::optional<QcTraffic> QcHealthSample::traffic

Bytes so far over the network; the line shows the rate since the previous line.