QtCraft API C++ classes QML types Handbook

<common/core/QcTickPhase.h>

Declarations at global scope in common/core/QcTickPhase.h. More...

Header: #include <common/core/QcTickPhase.h>

Types

enum class QcTickPhase { Players, Saving, ChunkLoading, BlockUpdates, Signal, …, Messages }

Detailed Description

Type Documentation

enum class QcTickPhase

The phases of a server tick in the order QcServer::tick runs them, plus the messages the server handles between two ticks (decision E-225).

The ids name them in the BENCH line (tick_<id>_avg_ms), in JSON and in the control interface.

ConstantValueDescription
QcTickPhase::Players0Leaving players: their crafting grid returns, their file is written.
QcTickPhase::Saving1The autosave when due, and damaged chunks reported.
QcTickPhase::ChunkLoading2Generated chunks taken over, waiting block updates of newly loaded chunks queued.
QcTickPhase::BlockUpdates3Queued block updates (neighbour changes) and the contents spilled by blocks set outside a block change.
QcTickPhase::Signal4Signal Dust circuits: plates, dust networks, components, pistons (decision E-335).
QcTickPhase::Liquids5Liquids flowing.
QcTickPhase::Fire6Fire taking its steps from its own queue (decision E-392).
QcTickPhase::Weather7The weather's course, lightning and the weather sent to the players (decision E-395).
QcTickPhase::Mobs8Players' health and hunger, creature behaviour, spawning and despawning, contact damage.
QcTickPhase::Projectiles9Projectiles flying, hitting, sticking and picked up (decision E-425).
QcTickPhase::Items10Dropped items (saplings and seeds that plant themselves) and experience orbs.
QcTickPhase::Plants11Plants growing, and animals breeding and laying eggs.
QcTickPhase::FallingBlocks12Falling blocks.
QcTickPhase::Explosions13Lit explosives counting down, explosions and the blocks they break (decision E-602).
QcTickPhase::Minecarts14Minecarts rolling along rails and their riders (decision E-382).
QcTickPhase::Machines15Machines and kitchen blocks working, open screens, trading and workstations updated.
QcTickPhase::Streaming16Chunks sent to and unloaded from the clients, unneeded chunks dropped.
QcTickPhase::ClientSync17Entities, time, food, player state and debug data sent to the clients.
QcTickPhase::Messages18Client messages handled since the previous tick (with the rate limits); not part of the tick.