Need help regarding Network Interpolation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ploppy


Context: I’m working on a test project to test the multiplayer features of Godot.
Lobby, player connection, player disconnection, server disconnection, position synchronisation, everything is working properly.

Though the interpolation is causing me some serious problems.
I’ve read many things on multiplayer interpolation but I can’t figure it out.

In my current setup:

  • Clients and server synchronise their clocks. The server send its current time, the clients add half of their ping to the given time.

Whatever I try, the formula: InterpolationTime = 2 x NetworkUpdateTime (to support 1 packet loss) just doesn’t seem to work.

Here is a small simulation, as you can see the Client 1 receives the C2 info too late (already behind its render time due to high latency of C1):

Arrows represents the direction of network packets (from sender to receiver).

I hope it makes sens.

enter image description here

:bust_in_silhouette: Reply From: dant4

Hello, maybe you could have a look to this article