mouse lag

The worst monsters in the Hearthlands warp the fabric of space and time...
tripp
Posts: 76
Joined: Thu Jan 23, 2014 2:24 am

mouse lag

Post by tripp »

i see it with the default client and ender

when you move the mouse, the cursor in game lags behind a bit , its not jittery, but theres definitely a delay.

is there some way to configure the mouse settings to move like a mouse normally moves?
User avatar
vatas
Posts: 5255
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: mouse lag

Post by vatas »

Are you using Linux?
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.)
tripp
Posts: 76
Joined: Thu Jan 23, 2014 2:24 am

Re: mouse lag

Post by tripp »

vatas wrote:Are you using Linux?

yeah how did you know?
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: mouse lag

Post by shubla »

tripp wrote: yeah how did you know?
Because this bug is specifíc to linux AWt etc. some custom clients offer option to disable hardware cursor which helps a bit.
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
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: mouse lag

Post by loftar »

To be more precise, the reason this happens on Linux is that the X11 backend for Java AWT doesn't support more than monochrome custom cursors, so the client needs to draw the cursor in software, making it subject to input latency.

You can, however, reduce the input latency generally by adjusting the "Frame Sync mode" in the video options. I myself have taken to use "CPU-sequential" most of the time, as I find it offers a reasonable compromise between latency and performance. It does however indeed decrease performance compared to the default option, so you'll have to evaluate for yourself whether the drop in performance is worth it for you on your hardware.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
tripp
Posts: 76
Joined: Thu Jan 23, 2014 2:24 am

Re: mouse lag

Post by tripp »

loftar wrote:To be more precise, the reason this happens on Linux is that the X11 backend for Java AWT doesn't support more than monochrome custom cursors, so the client needs to draw the cursor in software, making it subject to input latency.

You can, however, reduce the input latency generally by adjusting the "Frame Sync mode" in the video options. I myself have taken to use "CPU-sequential" most of the time, as I find it offers a reasonable compromise between latency and performance. It does however indeed decrease performance compared to the default option, so you'll have to evaluate for yourself whether the drop in performance is worth it for you on your hardware.
Thank you, this helped.
It looks like cpu/gpu offers the best
Could a monochrome cursor option be possibly implemented in the client for linux users?
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: mouse lag

Post by loftar »

tripp wrote:Could a monochrome cursor option be possibly implemented in the client for linux users?
Perhaps, but honestly, I'd rather see Java just fix this problem.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
Mashadar
Posts: 379
Joined: Thu Jan 20, 2011 9:34 am

Re: mouse lag

Post by Mashadar »

loftar wrote:To be more precise, the reason this happens on Linux is that the X11 backend for Java AWT doesn't support more than monochrome custom cursors, so the client needs to draw the cursor in software, making it subject to input latency.
You don't have to, 2 colors is enough for the cursor. I don't notice any difference between "tex" and "awt" mode, unless I specifically stare at the cursor. But people don't do that, the cursor is just a tool that assists the brain in knowing where the next click goes, no one actually looks at it.

I'd say the game actually being playable is infinitely more important than the cursor having some 5 extra colors.
The thing is, thanks to the rendering rewrite the game would actually work on notebooks with integrated graphics (which many people have), but definitely not with the default "tex" mode.
loftar wrote:Perhaps, but honestly, I'd rather see Java just fix this problem.
It's already been years like this, no point in waiting for it anymore.

Return to “Bugs”