summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-08-14 13:07:27 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-08-14 13:31:00 +0200
commita3ff3075710c7657dad4579c90fb451736421140 (patch)
tree85e59eaf3f240b4c7653ad0cfeec4c9dedd623af /src/game/g_main.c
parent8bc5b6fdd9424823a0c46b961f4a4d12b2a8692c (diff)
Implement player extrapolation.
If a player doesn't send client frames fast enough then there will be some server frames where they don't move. This is visible as 'warping' and is generally very undesirable. Extrapolation tries to fix the problem by filling in the missing data by continuing player's trajectory.
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 55508be..1c6d84e 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -122,6 +122,7 @@ vmCvar_t g_popularMapsVotePercent;
vmCvar_t g_banIPs;
vmCvar_t g_filterBan;
vmCvar_t g_smoothClients;
+vmCvar_t g_debugExtrapolation;
vmCvar_t g_outdatedClientMessage;
vmCvar_t pmove_fixed;
vmCvar_t pmove_msec;
@@ -416,6 +417,7 @@ static cvarTable_t gameCvarTable[ ] =
"Set a name by pressing Escape and choosing Options", CVAR_ARCHIVE, 0, qfalse},
{ &g_smoothClients, "g_smoothClients", "1", 0, 0, qfalse},
+ { &g_debugExtrapolation, "g_debugExtrapolation", "0", 0, 0, qfalse},
{ &g_outdatedClientMessage, "g_outdatedClientMessage", "", CVAR_ARCHIVE, 0, qfalse},
{ &pmove_fixed, "pmove_fixed", "0", CVAR_SYSTEMINFO, 0, qfalse},
{ &pmove_msec, "pmove_msec", "8", CVAR_SYSTEMINFO, 0, qfalse},