lag SUCKS

Comments, questions, rants, etc, that are specifically about KGS go here.
Mef
Lives in sente
Posts: 852
Joined: Fri Apr 23, 2010 8:34 am
Rank: KGS [-]
GD Posts: 428
Location: Central Coast
Has thanked: 201 times
Been thanked: 333 times

Re: lag SUCKS

Post by Mef »

daal wrote:It may be true that KGS is not responsible for lag, but it is not the case, as several posters starting with Mivo (who most accurately hit the thread's nail on the head) have pointed out, that KGS could do nothing to reduce the effects of lag. It's just that they, like me, don't want to.

Placing blame is unproductive, but I agree, it has been entertaining. ;-)


I'd been more or less avoiding this thread because it seemed a bit like a rant thread (and hey, who doesn't love a good rant thread?) but just one thing to consider on these lines (if we're aiming for discussion). A proper lag compensation system requires access to the system clock, which pretty much by definition means native code (which in turn means no longer having a portable java application...or if you use the applet it isn't even an option at all). I am familiar with other servers for other games that do compensate for this, but I don't know of any that are cross-platform compatible (i.e. they are all windows only from my experience as a windows user), and they require downloading / installing an executable program (instead of a of just running a java webstart application).
User avatar
quantumf
Lives in sente
Posts: 844
Joined: Tue Apr 20, 2010 11:36 pm
Rank: 3d
GD Posts: 422
KGS: komi
Has thanked: 180 times
Been thanked: 151 times

Re: lag SUCKS

Post by quantumf »

Mef wrote:A proper lag compensation system requires access to the system clock, which pretty much by definition means native code (which in turn means no longer having a portable java application...or if you use the applet it isn't even an option at all). I am familiar with other servers for other games that do compensate for this, but I don't know of any that are cross-platform compatible (i.e. they are all windows only from my experience as a windows user), and they require downloading / installing an executable program (instead of a of just running a java webstart application).


Can you elaborate on what you mean by "system clock"? Obviously java has the getTime() method, but it seems you might be referring to something more low level, and presumably less hack-proof?
User avatar
SpongeBob
Lives in gote
Posts: 499
Joined: Sat Apr 24, 2010 3:18 pm
Rank: Fox 3D
GD Posts: 325
Location: Germany
Has thanked: 213 times
Been thanked: 96 times

Re: lag SUCKS

Post by SpongeBob »

Tofu wrote:Lol, this thread rules!

It even made me change my signature. :D

The reason that users experience lag on KGS more than on other servers is the basic design principle that KGS will only display your move after one roundtrip to the server and back. (As pointed out somewhere above.) If moves would be displayed directly in the client, things would behave more smoothly. Exact timing of moves within the last byo-yomi second would be no problem at all (try out the asian servers, like Tygem, to see what I mean).

I would say that this is one of the things which made a lot of sense in the past, when connections where much more unreliable and slower than they are today. I guess that if wms would design a server today, he would display moves directly in the client.
Stay out of my territory! (W. White, aka Heisenberg)
Kaya.gs
Lives with ko
Posts: 294
Joined: Fri Aug 12, 2011 10:52 am
Rank: 6d
GD Posts: 0
KGS: Dexmorgan
Wbaduk: c0nanbatt
Has thanked: 25 times
Been thanked: 78 times
Contact:

Re: lag SUCKS

Post by Kaya.gs »

SpongeBob wrote:
Tofu wrote:Lol, this thread rules!

It even made me change my signature. :D

The reason that users experience lag on KGS more than on other servers is the basic design principle that KGS will only display your move after one roundtrip to the server and back. (As pointed out somewhere above.) If moves would be displayed directly in the client, things would behave more smoothly. Exact timing of moves within the last byo-yomi second would be no problem at all (try out the asian servers, like Tygem, to see what I mean).

I would say that this is one of the things which made a lot of sense in the past, when connections where much more unreliable and slower than they are today. I guess that if wms would design a server today, he would display moves directly in the client.


This does not reduce lag, only the perception of it. Of course better feedback gives a faster and smoother experience, but also a more shocking one when it fails. You might see the move on your board, and then lost on time. That would be incredibly upsetting.
Founder of Kaya.gs
User avatar
SpongeBob
Lives in gote
Posts: 499
Joined: Sat Apr 24, 2010 3:18 pm
Rank: Fox 3D
GD Posts: 325
Location: Germany
Has thanked: 213 times
Been thanked: 96 times

Re: lag SUCKS

Post by SpongeBob »

Kaya.gs wrote:Of course better feedback gives a faster and smoother experience, but also a more shocking one when it fails. You might see the move on your board, and then lost on time. That would be incredibly upsetting.

The client knows how much time you have for your move and can control that exactly - why would you lose on time?
Lag would be noticed by how your opponents clock runs slower / adjustments to your opponents clock.

Have you played on Tygem? Did you ever lose on time?
Stay out of my territory! (W. White, aka Heisenberg)
duckweed
Dies in gote
Posts: 45
Joined: Sat Dec 18, 2010 6:29 am
Rank: Kgs 5 Kyu
GD Posts: 0
Has thanked: 3 times
Been thanked: 18 times

Re: lag SUCKS

Post by duckweed »

quantumf wrote:
Mef wrote:A proper lag compensation system requires access to the system clock, which pretty much by definition means native code (which in turn means no longer having a portable java application...or if you use the applet it isn't even an option at all). I am familiar with other servers for other games that do compensate for this, but I don't know of any that are cross-platform compatible (i.e. they are all windows only from my experience as a windows user), and they require downloading / installing an executable program (instead of a of just running a java webstart application).


Can you elaborate on what you mean by "system clock"? Obviously java has the getTime() method, but it seems you might be referring to something more low level, and presumably less hack-proof?



I believe he meant that you need to access a system counter (eg. the system up time) for a lag compensation system. You can't use system current time because it is too easily changed by the average user. Of course this is does not make it hackproof.
BigDoug
Dies with sente
Posts: 70
Joined: Fri Jun 04, 2010 2:59 am
GD Posts: 0
Has thanked: 8 times
Been thanked: 62 times

Re: lag SUCKS

Post by BigDoug »

Hello,

daal wrote:It may be true that KGS is not responsible for lag, but it is not the case, as several posters starting with Mivo (who IMO most accurately hit the thread's nail on the head) have pointed out, that KGS could do nothing to reduce the effects of lag. It's just that they, like me, don't want to.


One aspect of my work is representing our technology organisation to our business organisation (then representing the business to the technical people who have to build what we agreed to). Much of the interaction follows a very similar pattern:

Business : I just thought of a great idea
Technology : That's interesting. This is what it will cost to build it
Business : Are you crazy? It's simple.
Technology : It's simple on the screen and complicated behind the scenes
Business : You need to get creative (and make it future-proof by the way)

And so and so on. This thread echoed much of my working day...

By happy coincidence, I'm going through a similar experience at home. We have a crack in our shower basin. I thought the plumber would be able to fix it in an hour. However, he has to replace the basin, which means digging up the tiles, so my wife wants to change the bathtub, which means that she wants to renovate the entire bathroom. So what I thought would be a $250 fix has turned into a $15-20,000 redevelopment. I don't know anything about plumbing, so I thought something which is complex is easy. Funny...
Post Reply