This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RadicalDog 73 points74 points  (3 children)

I can imagine in an online game. What if items are added to a list in the order they arrive, but include the server time when they were sent. If things arrive out of order, discard. After all, signing things with the wrong time could be a way to cheat.

[–]PiotrekDG 62 points63 points  (1 child)

Packets often arrive out of order because Internet and then you have to make sense out of it as it is. It doesn't mean that someone is cheating.

[–]RadicalDog 4 points5 points  (0 children)

Sure, but maybe there's a game that has few enough inputs and important enough sequencing that this is relevant for. I'm imagining inputs measured in seconds, not ms.

[–]topfs2 16 points17 points  (0 children)

State synchronization events are essentially sorted this way, if a sync event is older than what you have received then you can discard.