From 074a3c601f8c6a64edbfa9b9108ad9dbbb3ee4cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sun, 9 May 2021 12:29:59 +0200 Subject: [PATCH] small prediction tweaks --- code/apps/client/source/prediction.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/code/apps/client/source/prediction.c b/code/apps/client/source/prediction.c index 3402876..92270de 100644 --- a/code/apps/client/source/prediction.c +++ b/code/apps/client/source/prediction.c @@ -6,10 +6,7 @@ #define PREDICT_SMOOTH_FACTOR_HI 0.12 float smooth_val(float cur, float tgt, float dt) { -#if 0 return zpl_lerp(cur, tgt, zpl_lerp(PREDICT_SMOOTH_FACTOR_HI, PREDICT_SMOOTH_FACTOR_LO, zpl_unlerp(dt, WORLD_TRACKER_UPDATE_FAST_MS, WORLD_TRACKER_UPDATE_SLOW_MS))); -#endif - return zpl_lerp(cur, tgt, PREDICT_SMOOTH_FACTOR_HI); } void predict_receive_update(entity_view *d, entity_view *data) {