How to use timestamps for packets instead of ticks

Started by
9 comments, last by JohnnyCode 11 years, 8 months ago
you should always get most actual data to compute the frame. If there is more data in the stack (info for 3 frames has arrived while client was computing its previous frame, then you should pick the latest, while it can couse problems, you may need to process all of those that arrived, but this will couse you dilema you are solving). I would say that you should pick the latest and if player did not see 3 frames that got interacted on him, it is his penalty. In this way your aplication can allways decide on client's side. Imagine everyone is positioned on their places most up to date, so that if you aim someone, the other one is informed of it, even that he didn't spot you for a lag.

This topic is closed to new replies.

Advertisement