-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
mouse cursor lags in linux
On default client, there is great delay when moving it.

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: mouse cursor lags in linux
Painfully aware. For some reason, Java on X11 doesn't support more than 1-bit-color cursors, and therefore the client has to draw the cursor manually instead of having the window system do it, and it is therefore affected by input latency. Technically, input latency should be minimized, but doing so is somewhat difficult. It is something I am trying to improve in the rewritten client, however.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
Granger
- Posts: 9255
- Joined: Mon Mar 22, 2010 2:00 pm
Re: mouse cursor lags in linux
Why not, as many games have, add an option to use the system cursor?
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
-
vatas
- Posts: 5255
- Joined: Fri Apr 05, 2013 8:34 am
- Location: Suomi Finland Perkele
Re: mouse cursor lags in linux
If I understood correctly, that would mean black-and-white cursor that might look bit out of the place. However I'd prefer that to noticeable input lag.
Haven and Hearth Wiki (Maintained by volunteers - test/verify when practical. Forum thread
Basic Claim Safety (And what you’re doing wrong
TL:;DR: Build a Palisade with only Visitor gates.)
Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)
Basic Claim Safety (And what you’re doing wrong
TL:;DR: Build a Palisade with only Visitor gates.)
Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: mouse cursor lags in linux
If it really reduces input lag, some checkbox to do this would be nice.Granger wrote:Why not, as many games have, add an option to use the system cursor?

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: mouse cursor lags in linux
It doesn't actually reduce input lag, it just exempts the mouse cursor from it. Arguably, the delayed mouse cursor is more "accurate", since clicks don't take effect until after the input latency has passed anyway.shubla wrote:If it really reduces input lag, some checkbox to do this would be nice.
What really should happen is that Java should support full-color cursors on X11. I have always expected this to happen any release now, and have no idea why that hasn't been the case.Granger wrote:Why not, as many games have, add an option to use the system cursor?
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: mouse cursor lags in linux
Current fix for this is just to enable the 1-bit cursor. Its not that bad. For me, the normal cursor with many colors moves with 1-2 second delay, it makes the game literally unplayable as you can not even click things because coordination with cursor is difficult.
It actually is not black-and-white, but rather it chooses two dominant colors from the higher-color version of the cursor.
It actually is not black-and-white, but rather it chooses two dominant colors from the higher-color version of the cursor.

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: mouse cursor lags in linux
I'm pretty sure it's 2-3 frames. I don't disagree that it feels like a lot more, though.shubla wrote:For me, the normal cursor with many colors moves with 1-2 second delay
It really is quite horribly bad, though.shubla wrote:Current fix for this is just to enable the 1-bit cursor. Its not that bad.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
Ysh
- Posts: 5953
- Joined: Sun Jan 31, 2010 4:43 am
- Location: Chatting some friends on forum
Re: mouse cursor lags in linux
I think in this case you also lose contextual cursor icon. I will rather play with 2 color cursor as I do now than system cursor only.Granger wrote:Why not, as many games have, add an option to use the system cursor?
I have become victory of very nice Jordan Coles Contest! Enjoy my winning submit here if it pleasures you.Kaios wrote:Spice Girls are integral to understanding Ysh's thought process when communicating, duly noted.
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: mouse cursor lags in linux
I have 10 fps in my village with a decent computer, because there are like hundreds of non-rotting sheep carcasses. So 2-3 frames does feel like a lot.loftar wrote:I'm pretty sure it's 2-3 frames. I don't disagree that it feels like a lot more, though.shubla wrote:For me, the normal cursor with many colors moves with 1-2 second delayIt really is quite horribly bad, though.shubla wrote:Current fix for this is just to enable the 1-bit cursor. Its not that bad.

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client