hypr-dynamic-cursors icon indicating copy to clipboard operation
hypr-dynamic-cursors copied to clipboard

Animated cursor jitters sometimes

Open prufaraSS opened this issue 6 months ago • 3 comments

Moving cursor periodically makes it sometimes jitter for one frame (it's really hard to notice) Also I've tried to disable plugin but it says "[ERR] ✖ Failed to write plugin state" so i had to delete it LMAO So yeah it doesn't happen when plugin is disabled so it's clearly plugin's problem not hyprcursors.

prufaraSS avatar May 18 '25 16:05 prufaraSS

Hmm, can you maybe try to capture a video of the thing happening? Does it happen during normal movement, or on cursor warp or when exactly? And which mode do you have activated?

Also I've tried to disable plugin but it says "[ERR] ✖ Failed to write plugin state" so i had to delete it LMAO

That's probably an issue on hyprpm side, having to do with the plugin store newly requiring root privileges to write to. So nothing I can really do about that. You can try to report that upstream if it happens again.

VirtCode avatar May 19 '25 10:05 VirtCode

https://github.com/user-attachments/assets/15cf36b2-32ca-439f-a177-dbb06e117623

ignore double cursor effect, it's hyprcursor problem.

prufaraSS avatar May 19 '25 16:05 prufaraSS

I think the jittering is caused by how we currently compute the velocity. Depending on when we sample the position (i.e. when hyprland ticks) this could result in the stuttering you are noticing. We might want to apply some smoothing in the future, which would probably prevent this.

Regarding the double cursor thing, should be fixed with the latest plugin revision.

VirtCode avatar May 24 '25 13:05 VirtCode

You could try to experiment with the newly added window options for stretch and tilt which can increase the sampling window time (see the readme). Maybe you can find some tradeoff that works for you.

Otherwise we would have to consider other options again (like explicit smoothing as mentioned above).

VirtCode avatar Jun 25 '25 14:06 VirtCode

You could try to experiment with the newly added window options for stretch and tilt which can increase the sampling window time (see the readme). Maybe you can find some tradeoff that works for you.

Otherwise we would have to consider other options again (like explicit smoothing as mentioned above).

with window option it's even easier to see this bug, i think it's more common when you flick a mouse in a process of "unstretching" animation

prufaraSS avatar Aug 06 '25 12:08 prufaraSS