0
Answered

how client timing and calculations work

mufen-z 8 months ago • updated by Sia (Moderator) 8 months ago 2

I have noticed that in some battles, when my internet happens to be bad, all other tanks will freeze because of connection errors or some sort of delay in the webSocket. However, my own tank is still able to move when the keys are pressed. This means that all movement for tanks are handled by the client, not the server.


If this is so, why dose the speed of the tank not slow down when the game fps is low for a particular individual? wouldn't the client's slower loop result is a slower tank speed?

Answer

Answer

Hi,

Every movement is controlled by the game server. If you make any movement or shoot someone that data packet is sent from your client to the Tanki server. You might have experienced, sometimes when you shoot someone before dying, they don't receive any damage but you have seen them getting hit. That's because the data packet of your damage was never sent to the server.  You only saw it because of your ping lag.

Now, why doesn't tank's speed slows down when FPS are low? FPS is the rate at which your computer produces unique images. That means if your fps are slow, you will see the frames slower but, that doesn't mean speed of your tank/turret will become slow its just, there will be a delay between what's really happening and what you are seeing.  If a player with very low fps is playing, his game will most likely keep on freezing or it will be very laggy to play.

Answer

Hi,

Every movement is controlled by the game server. If you make any movement or shoot someone that data packet is sent from your client to the Tanki server. You might have experienced, sometimes when you shoot someone before dying, they don't receive any damage but you have seen them getting hit. That's because the data packet of your damage was never sent to the server.  You only saw it because of your ping lag.

Now, why doesn't tank's speed slows down when FPS are low? FPS is the rate at which your computer produces unique images. That means if your fps are slow, you will see the frames slower but, that doesn't mean speed of your tank/turret will become slow its just, there will be a delay between what's really happening and what you are seeing.  If a player with very low fps is playing, his game will most likely keep on freezing or it will be very laggy to play.