Bugs item #2951123, was opened at 2010-02-13 08:03
Message generated for change (Comment added) made by nhnb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101111&aid=2951123&group_id=1111
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Client
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Winter Knight (wk2)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2 second lag between keypress/mouse click and moving.
Initial Comment:
The lag makes this game unplayable. There is about a 1 to 2 second delay between pressing the arrow keys, or double clicking the mouse, and my character moving. Disabling key repeat has no noticeable effect.
I am using the Linux client, Debian Stable, Sun JRE 6.
Someone suggested I give you a traceroute, which I have attached. I had to use -I (for ICMP), because something was in the way preventing a default traceroute. I am using a wireless connection, but I had this problem, and similar RTT, when I had my computer directly plugged into the modem about a month ago.
I haven't looked at the code, so I can't be sure, but I think the problem is 2-fold:
a) I am in the United States and your server is in Germany (or nearby, going by the IP address)
b) The stendhal client depends on network feedback before moving. If this is the case, you might want to look into predictive UI feedback (I'm not sure this is what experts would call it), where the client gives feedback based on how the server would probably react.
----------------------------------------------------------------------
>Comment By: Hendrik Brummermann (nhnb)
Date: 2010-02-13 21:21
Message:
Hi Winter,
200ms round trip is pretty high, even for connection to the US. More than
half of that is used within the US and not to cross the ocean:
14 ae-2-2.ebr2.Washington1.Level3.net (4.69.132.70) 125.220 ms 125.942
ms 104.455 ms
15 ae-43-43.ebr2.Frankfurt1.Level3.net (4.69.137.57) 193.538 ms 203.131
ms 198.609 ms
23 stendhal.game-host.org (81.169.180.51) 194.846 ms 196.386 ms
198.735 ms
But that is still only 0.2 seconds in sum for the movement action to
travel to the server and the moving perception to travel back. While this
is noticeable, it is far less than 2 seconds.
The client makes use of movement prediction for soft movement between
tiles. Stopping of movement caused by a collision is predicted in this
context. But starting and stopping (unless caused by a collision) is not
predicted, yet. This is something we should look into.
In some rare cases lag is caused by client side by the rendering code.
Could you try to start Stendhal with these parameters and tell me if that
improves the situation?
java -Xmx128m -Dsun.java2d.pmoffscreen=false -jar stendhal-0.80.jar
java -Xmx128m -Dsun.java2d.opengl=true -jar stendhal-0.80.jar
java -Xmx128m -Dsun.java2d.pmoffscreen=false -Dsun.java2d.opengl=true
-jar stendhal-0.80.jar
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101111&aid=2951123&group_id=1111
|