• 0 Posts
  • 107 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2024

help-circle













  • second movement takes place in the server, to do so in the client is nuts.

    For the vast majority of games, it’s in between, because the latency if you waited for the server every frame you moved would be way too much.

    It’s something like you have a local model of where everything is, and send updates to the server of where your local model says your character (and whatever else your inputs affect) are. The server receives that data, potentially validates it (server side anti cheat checking that your movement makes sense, similar to the OP post, for example), and then forwards that info to all players. The client side positions of everything are updated based on that info. Usually some interpolation is added to make things move more smoothly.