Hey
Recently I was implementing entities interpolation and next on the plate was client side prediction, which is smoothing player movements and increase responsiveness (predicting player movement before response from the server is received).
On the video I'm presenting effect of three algorithms:
- player movement prediction
- player movement reconciliation with the server response
- player position extrapolation (between physics ticks 20/s)
I'm simulating latency by setting server network tick 4/s which effectively making server to send all messages each 250ms. It's not like in real world but i have some insights how it'd work.
In general I think it work ok. It's minimizing lags effects quite significantly.
I thinking about adding to the entity interpolation similar mechanism which i have in player position reconciliation, which is not updating to position received from the server instantly but makes smooth transition across few simulation ticks (imagine elastic band). Perhaps adding it for all the entities will create too much overhead but adding it for enemy players would be nice. I'd increase experience significantly not only for players experiencing lags but others which interact with them.
Hope You like it!
Top comments (0)