mas-bandwidth / yojimbo

A network library for client/server games written in C++
BSD 3-Clause "New" or "Revised" License
2.48k stars 244 forks source link

Ignoring late packets #176

Closed kingoftheconnors closed 2 years ago

kingoftheconnors commented 2 years ago

Does Yojimbo support a channel that ignores late packets? Like sending a player state, and if one packet comes in later than newer packets, it just gets dropped?

kingoftheconnors commented 2 years ago

As GafferOnGames said in #178:

Yojimbo is just a library for you to define channels for communication, serialization for messages etc. It doesn't force you to any particular network model, although it has been designed with the needs of AAA games. You need to implement a playout delay buffer yourself.

After testing it I have confirmed, yojimbo doesn't intercept or try to affect out-of-order packets. If you think out-of-order UDP packets should be dropped, that's for you to implement!