Game dev
Saved & recent

Client-side prediction

Related terms: server reconciliation, rubber banding

The client applies the player's own inputs straight away instead of waiting for the server to confirm them. Controls feel instant even with high latency.

The server still computes the real result. When its answer arrives, the client compares. If they differ, the client corrects its position and replays the inputs sent since. That is reconciliation. A large visible correction is rubber banding.

Further reading
Unity Netcode for Entities: Introduction to Prediction
localprediction afterreplay 0 1 2 3 4 1 2 3 +1 +1 +1 +1 start server confirmation 0 1 2 3 4 inputs applied
The client moves immediately. The server later confirms position 1 after the second input. Reapplying the third and fourth inputs from that position brings the corrected client to position 3.

View in the full Game dev collection