#Can anyone explain the latency issue between server and client?
8 messages · Page 1 of 1 (latest)
the nature of client server communication online means that there will always be a delay in communication, commonly referenced as ping
however players expect the inputs they make to respond appropriately, large delays can lead to a number of problems that kill the feel of the game
in a combat system simple examples of that would be on your screen you hit somebody but it doesn't go through because to the server you were already dead from something else
this can get more complicated though, especially with complex systems where players and projectiles are flying around
csgo for example has in built compensation to smooth over client server delay where the server predicts what the client is going to do and is constantly adjusting this so it's as accurate as possible
another thing that games usually do is to create the particles on the client but also have the server do them. the client then adjusts what it's doing to match what the server says should be happening. this way the client gets immediate feedback but we also aren't giving them too much power
this can be really complicated though depending on how in depth you want it so that's why people say avoid battlegrounds games if you don't know what a remote event is