small prediction tweaks
parent
7d1e5c1d61
commit
074a3c601f
|
@ -6,10 +6,7 @@
|
||||||
#define PREDICT_SMOOTH_FACTOR_HI 0.12
|
#define PREDICT_SMOOTH_FACTOR_HI 0.12
|
||||||
|
|
||||||
float smooth_val(float cur, float tgt, float dt) {
|
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)));
|
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) {
|
void predict_receive_update(entity_view *d, entity_view *data) {
|
||||||
|
|
Loading…
Reference in New Issue