mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Previously other players jittered because the entity sat frozen at its destination between movement packets, then snapped to the new start position on the next packet (stop-pop-stop-pop at ~10 Hz). Entity interpolation now tracks a smoothed velocity and dead-reckons past the end of each packet window, so the entity keeps gliding at the estimated speed until the next server update arrives. Movement stops only after two consecutive intervals with no new packet (entity has genuinely stopped). Also replaced the raw packet-delta duration with an exponential moving average (EMA) per player. A single slow or fast packet no longer spikes the playback speed; the EMA converges on the actual send rate (~100 ms) and absorbs jitter without adding a fixed input-latency penalty. |
||
|---|---|---|
| .. | ||
| audio | ||
| auth | ||
| core | ||
| game | ||
| network | ||
| pipeline | ||
| platform | ||
| rendering | ||
| ui | ||