small prediction tweaks

isolation_bkp/dynres
Dominik Madarász 2021-05-09 12:29:59 +02:00
parent 7d1e5c1d61
commit 074a3c601f
1 changed files with 0 additions and 3 deletions

View File

@ -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) {