gschup / ggrs

GGRS is a reimagination of GGPO, enabling P2P rollback networking in Rust. Rollback to the future!
Other
520 stars 25 forks source link

Rollback when remote player disconnects #3

Closed gschup closed 3 years ago

gschup commented 3 years ago

When we receive information that a player has disconnected on a certain frame, we should rollback to that frame and resimulate the game with correct input information. This is currently simply not happening and we wrongly have a few frames of input prediction in the game simulation.

This can lead to desyncs in sessions with more than two players.

Relevant code section