Multiplayer Networking: How to deal with unordered packets?

Started by
10 comments, last by overman1 10 months, 1 week ago

Kylotan said:

I always recommend this video, which covers many of the concepts above:

3 other things to consider:

  1. Mirror isn't that great, Make sure it's not doing dumb stuff, make sure you're using the right transport, etc.
  2. You don't need to throw away out of order messages, only those that arrive too late to be useful or those which are superceded by other messages.
  3. You're always going to get some message loss, so on one hand you do need to actively mitigate against it with redundantly sent information and state interpolation to cover ‘gaps’, but on the other hand you want to be careful not to let these hide bugs.
  1. Damn…
  2. I ended up throwing away commands that arrived too late and that helped significantly. The performance is way better now and there is not stuttering

This topic is closed to new replies.

Advertisement