QtCraft API C++ classes QML types Handbook

<clientcore/tick/QcSessionTickMode.h>

Declarations at global scope in clientcore/tick/QcSessionTickMode.h. More...

Header: #include <clientcore/tick/QcSessionTickMode.h>

Types

enum class QcSessionTickMode { Threaded, Timer, Manual }

Detailed Description

Type Documentation

enum class QcSessionTickMode

How a client session ticks (decision E-560).

ConstantValueDescription
QcSessionTickMode::Threaded0At 20 Hz on the session's tick thread (in the session's thread with QTCRAFT_SESSION_THREAD=0): a long frame holds up neither the prediction nor the network. The graphical client.
QcSessionTickMode::Timer1At 20 Hz in the session's thread: every tick is applied before the next one runs, so counts of ticks are exact (headless client and control interface; no frames hold the thread up).
QcSessionTickMode::Manual2Only when the caller asks (QcClientSession::tick, tests), in the session's thread.