<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.
| Constant | Value | Description |
|---|---|---|
QcTickPhase::Players | 0 | Leaving players: their crafting grid returns, their file is written. |
QcTickPhase::Saving | 1 | The autosave when due, and damaged chunks reported. |
QcTickPhase::ChunkLoading | 2 | Generated chunks taken over, waiting block updates of newly loaded chunks queued. |
QcTickPhase::BlockUpdates | 3 | Queued block updates (neighbour changes) and the contents spilled by blocks set outside a block change. |
QcTickPhase::Signal | 4 | Signal Dust circuits: plates, dust networks, components, pistons (decision E-335). |
QcTickPhase::Liquids | 5 | Liquids flowing. |
QcTickPhase::Fire | 6 | Fire taking its steps from its own queue (decision E-392). |
QcTickPhase::Weather | 7 | The weather's course, lightning and the weather sent to the players (decision E-395). |
QcTickPhase::Mobs | 8 | Players' health and hunger, creature behaviour, spawning and despawning, contact damage. |
QcTickPhase::Projectiles | 9 | Projectiles flying, hitting, sticking and picked up (decision E-425). |
QcTickPhase::Items | 10 | Dropped items (saplings and seeds that plant themselves) and experience orbs. |
QcTickPhase::Plants | 11 | Plants growing, and animals breeding and laying eggs. |
QcTickPhase::FallingBlocks | 12 | Falling blocks. |
QcTickPhase::Explosions | 13 | Lit explosives counting down, explosions and the blocks they break (decision E-602). |
QcTickPhase::Minecarts | 14 | Minecarts rolling along rails and their riders (decision E-382). |
QcTickPhase::Machines | 15 | Machines and kitchen blocks working, open screens, trading and workstations updated. |
QcTickPhase::Streaming | 16 | Chunks sent to and unloaded from the clients, unneeded chunks dropped. |
QcTickPhase::ClientSync | 17 | Entities, time, food, player state and debug data sent to the clients. |
QcTickPhase::Messages | 18 | Client messages handled since the previous tick (with the rate limits); not part of the tick. |