Skip to main content

Impromptu Vlog #1: Experiment in synchronizing tick numbers for rollback networking

Submitted by David Snopek on Friday, 2021-05-28 @ 12:01pm

I've been trying to think through how I'd implement rollback networking (to potentially use it in Retro Tank Party) and one thing I've gotten hung up on is how to synchronize tick numbers across peers.

This is the article that I'm basing my implementation off of:

And I think it's working! It skips frames when necessary to keep the two peers in sync.

I should have probably showed this in the video, but the messages that the peers are passing to each other contain only the current local tick number, and then next tick number they expect to receive from the other peer (so, basically, the last tick number they received plus 1). And the local/remote lag and advantage are calculated just from those values.


Subscribe to get an email when new articles or videos are posted on!

* indicates required


Add new comment
The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.