43
« on: April 15, 2014, 08:29:40 PM »
Plenty of people live in faraway countries like Australia. They get bad ping to Blockland servers as barely any servers are hosted near their country. This means that they can't battle well in Blockland, the weapon they are firing only actually fires about a fourth of a second later after the left mouse button is clicked.
Lag Compensation: having the server/host "reverse time" every time you send him an update, so that the server/host can have a good estimate of what you saw (and thus calculate if you actually shot at what you were shooting at). So, for example, if you have a 32ms ping according to your screen you shot at someone just before he went around the corner, the host will receive your shooting data 32ms later after the enemy already turned the corner. This, alone, would make the server/host decide that you missed. So to compensate for this lag, the server/host "rewinds time" to 32ms ago and sees the guy had not yet turned the corner, and that your shots did land. This would make combat alot easier for players with high ping. On the client you could have the gun shoot instantly as a bonus of this. This would make combat fair.