microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.88k stars 6.53k forks source link

Mouse crosshair lags one update behind the actual position #27731

Open ParadoxV5 opened 1 year ago

ParadoxV5 commented 1 year ago

Microsoft PowerToys version

0.72.0 & before

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Mouse Utilities

Steps to reproduce

activate mouse crosshairs and move the mouse

✔️ Expected Behavior

The crosshair is responsive to mouse movements.

❌ Actual Behavior

The crosshair is sometimes a step behind the actual mouse position.

For me, it’s

Other Software

LetheReal-0x00 commented 9 months ago

Crosshairs are very "choppy" as I move around my pc and give me an illusion that my pc is somewhat lagging while my mouse still moves smoothly. Can we sync it with monitor refresh rate?

pressRtowin commented 5 months ago

I had a pretty detailed description of this behavior in https://github.com/microsoft/PowerToys/issues/16650. Despite some comments here and there stating that this issue is unrelated, what I was reporting was actually due to two different things working together: the crosshair thickness issue (a static offset), which was solved; and this delayed update issue (a dynamic offset), which remains overlooked.

pressRtowin commented 5 months ago

Is there any reason the code from the screen ruler tool can't be reused here? It seems to work perfectly as far as I can tell.