Client Side Prediction

Posted by user13842 on Game Development See other posts from Game Development or by user13842
Published on 2012-10-24T10:07:46Z Indexed on 2012/10/24 11:18 UTC
Read the original article Hit count: 188

Filed under:

I have a question regarding Client Side prediction. Ive tried to search topics about my specific problem but couldn't find anything which really answered my problem.

Most tutorials and explanations assume that the Client sends messages like "Move my player up by 1 Position", but what if i send messages like "Set my player's velocity to x"?

Since it's hard to explain with text, i made a graphic explaining my problem. The main problem is, that the player sets his own velocity, due to Client Side Prediction, earlier than the Server. So if 2 different velocities overlap, the Server would get out of sync.

How can i tackle that problem? Thanks a lot.

Graphic: http://img27.imageshack.us/img27/6083/clientpred.png (Ignore the 5.5cm)

© Game Development or respective owner

Related posts about networking