lichess.org
Donate

An extension for measuring your and your opponent's ping on Lichess

Very cool, should be interesting to see. Appreciate your work!
I like the transparency of this idea, Should be something lichess lists on their site along with how much lag compensation player gets, important that people are getting fair play. Great stuff.
Yeah, that would be very nice. Though, measuring ping with standart methods can be innacurate. Sometimes, for example, a ping measured to Lichess can be 50ms, but an actual latency is about 150ms (because an OS or a browser can sometimes add latency). Or vice versa: sometimes Lichess shows a player's lag as 200ms for example, but their actual latency is about 100ms, which can result in calculating a negative ping for their opponent.

In this extension the common lag value is very accurate (after several, sometimes about 7, moves), though in measuring the latency of both players it still depends on the Lichess's ping index.

This is how the math works here, by the way:

Let's say that around 30 seconds have passed on both players' chess clocks. But since there is lag compensation, every move (every two turns) adds about 150ms to the time passed in real life. So if only 30 seconds have passed on the game's clocks, in real life have passed about 36 seconds. So this application subtracts 30 from 36. We get 6 seconds. And then they are devided by the number of moves. If the number of moves is 40, we get that the common lag is 150ms. To find an opponent's ping, the application substracts the ping of the player from the common lag.
By the way, you have an interesting idea. Maybe it's possible to find out client-side what is the amount of lag compensation we get, compared to the actual latency. Need to think about that.
One way is to compare lag compensation for premoves with lag compensation for usual moves.
Yes I think this would be a good idea for lichess to implement. (Transparency) For now I am using this to get an idea of which players are faster the ones with more lag or less...trying to get an idea of how lag compensation might benefit one more or less :)

This topic has been archived and can no longer be replied to.