A common workaround is a technique called Linear Interpolation which allows predictively moving the game objects while the client is waiting for the next update to arrive, making sure the overall experience is as smooth as possible.Īccording to Unity, “When making games it can sometimes be useful to linearly interpolate between two values. In a live networked game, there’s a high possibility that a minor network lag might cause a bad experience for the person playing it. But before we continue, a note on network lag and linear interpolation: We’ll use the client-server strategy in our Space Invaders game. All communication between the players happens only via this game server and never directly. This enables a fully synchronized game environment for all the players involved. The game server holds the game logic and controls what happens on the client-side.
0 Comments
Leave a Reply. |