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:

https://www.gamasutra.com/blogs/RyanJuckett/20161208/287162/Rollback_Networking_in_INVERSUS.php

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!

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

* indicates required

Comments

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.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.