From a3ff3075710c7657dad4579c90fb451736421140 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 14 Aug 2017 13:07:27 +0200 Subject: 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. --- src/game/g_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/g_main.c') 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}, -- cgit