wayvnc icon indicating copy to clipboard operation
wayvnc copied to clipboard

Image freezes when cursor changes (sway)

Open powellnorma opened this issue 6 months ago • 2 comments

To reproduce: Open e.g. https://www.youtube.com/watch?v=AKeUssuu3Is now move with the mouse across some button, very fast (repeatedly) for 5 seconds or longer, such that the cursor changes often. Whenever the cursor changes, there is a noticeable freeze, the image starts to stutter.

The cursor is rendered on client side (I don't use -r)

I don't have this issue when connecting to x11vnc, nor do I have it when doing the same things directly in the sway session.

wayvnc: v0.9.1-e4ec935 (makepkg) neatvnc: v0.9.4-50fddde (makepkg) aml: v0.3.0-0-gb83f357 (makepkg)

sway version 1.11-rc2-7e7994db (May 26 2025, branch 'master') TigerVNC viewer v1.15.0

powellnorma avatar May 29 '25 17:05 powellnorma

I just tried this on headless sway git master and wayvnc git master and was not able to reproduce the problem.

sway version 1.12-dev-170c9c95 (Jun 17 2025, branch 'master')
wlroots: 0.19.0-33-ga30c10216
wayvnc: v0.10-dev-630ed4a (master)
neatvnc: v0.10-dev-6291248 (master)
aml: v1.0.0-rc0-1-gf6086bc (master)

There are stutters in videos regardless of mouse movement, but that is to be expected from VNC. There is no synchronisation of playback, so you cannot really expect it to be smooth. That being said, I did manage to get smooth playback using wlvncc running on the local machine and wayvnc -g, but that's just because it makes encoding speed and "network" latency consistent.

Can you maybe share some more information about your setup?

any1 avatar Jun 17 '25 15:06 any1

The video itself played fine when the cursor stayed the same. It only happens to stutter/ have short freezes when the cursor icon changed, e.g. to a "press button" icon. The more frequent the changes, the more severe the lag. Note that the cursor is rendered client-side. Will try to test this soon again with the newest versions, but cant do so right now. Thanks for checking.

powellnorma avatar Jun 17 '25 18:06 powellnorma