mouse cursor lags in linux

The worst monsters in the Hearthlands warp the fabric of space and time...

mouse cursor lags in linux

Postby shubla » Fri Oct 19, 2018 4:15 pm

On default client, there is great delay when moving it.
Image
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
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: mouse cursor lags in linux

Postby loftar » Sat Oct 20, 2018 1:49 am

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
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: mouse cursor lags in linux

Postby Granger » Sat Oct 20, 2018 6:10 am

Why not, as many games have, add an option to use the system cursor?
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9264
Joined: Mon Mar 22, 2010 2:00 pm

Re: mouse cursor lags in linux

Postby vatas » Sat Oct 20, 2018 8:14 am

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.)
User avatar
vatas
 
Posts: 4873
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: mouse cursor lags in linux

Postby shubla » Sat Oct 20, 2018 1:49 pm

Granger wrote:Why not, as many games have, add an option to use the system cursor?

If it really reduces input lag, some checkbox to do this would be nice.
Image
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
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: mouse cursor lags in linux

Postby loftar » Sat Oct 20, 2018 11:01 pm

shubla wrote:If it really reduces input lag, some checkbox to do this would be nice.

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.

Granger wrote:Why not, as many games have, add an option to use the system cursor?

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.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: mouse cursor lags in linux

Postby shubla » Sat Jan 19, 2019 5:43 pm

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.
Image
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
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: mouse cursor lags in linux

Postby loftar » Sun Jan 20, 2019 9:32 pm

shubla wrote:For me, the normal cursor with many colors moves with 1-2 second delay

I'm pretty sure it's 2-3 frames. I don't disagree that it feels like a lot more, though.
shubla wrote:Current fix for this is just to enable the 1-bit cursor. Its not that bad.

It really is quite horribly bad, though.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: mouse cursor lags in linux

Postby Ysh » Sun Jan 20, 2019 9:35 pm

Granger wrote:Why not, as many games have, add an option to use the system cursor?

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.
Kaios wrote:Spice Girls are integral to understanding Ysh's thought process when communicating, duly noted.

I have become victory of very nice Jordan Coles Contest! Enjoy my winning submit here if it pleasures you.
User avatar
Ysh
 
Posts: 5953
Joined: Sun Jan 31, 2010 4:43 am
Location: Chatting some friends on forum

Re: mouse cursor lags in linux

Postby shubla » Mon Jan 21, 2019 12:56 am

loftar wrote:
shubla wrote:For me, the normal cursor with many colors moves with 1-2 second delay

I'm pretty sure it's 2-3 frames. I don't disagree that it feels like a lot more, though.
shubla wrote:Current fix for this is just to enable the 1-bit cursor. Its not that bad.

It really is quite horribly bad, though.

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.
Image
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
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland


Return to Bugs

Who is online

Users browsing this forum: Claude [Bot] and 48 guests