CGlobalVarsBase
CGlobalVarsBase -- Global variables used by shared code
float realtime;
Absolute time
int framecount;
Absolute frame counter - continues to increase even if game is paused
float absoluteframetime;
Non-paused frametime
float absoluteframestarttimestddev;
float curtime;
-- Source SDK
float frametime;
Time spent on last server or client frame (has nothing to do with think intervals)
int maxClients;
Current maxplayers setting
int tickcount;
Simulation ticks - does not increase when game is paused
float interval_per_tick;
Simulation tick interval. tickrate = 1/interval_per_tick
float interpolation_amount;
interpolation amount ( client-only ) based on fraction of next tick which has elapsed
int simTicksThisFrame;
int network_protocol;
Current saverestore data
void* pSaveData;
bool m_bClient;
Set to true in client code.
bool m_bRemoteClient;
True if we are a remote clinet (needs prediction & interpolation - server not on this machine) as opposed to split-screen or local
Last updated