[Spice-devel] keypress-delay should be configurable or auto-tuned

David Mansfield spice at dm.cobite.com
Wed Jun 18 06:40:24 PDT 2014


Hi All,

spice-gtk commit 0d5ad7e22d55552ef4be8368dcfbae879fb0b77e (widget: 
differentiate key press & release from press only events) introduced a 
short delay in sending key press events, which was designed to reduce 
unwanted key repeat.

However, on low-latency networks, this delay (default is 100ms) is quite 
noticeable and causes a "laggy" feel when using spice.

Currently I have recompiled spice-gtk with a 10ms delay and the overall 
feel is MUCH improved.  It's quite shocking how such a small thing can 
have such a large effect.

The actual delay used is a property in the spice widget, but is not 
exposed as a user controllable value (afaict), nor is the value 
automatically adjusted by, say, the RTT to the spice server.

I'd like to, at the minimum, add a "---spice-keypress-delay <n>" 
argument to remote-viewer, but in today's world, exposing settings to 
users is practically forbidden, so I'm doing a temperature check before 
I do anything. The alternative would be to auto-tune the value. If the 
auto-tune route is the way to go, I can come up with some ideas, but 
that can stay on hold.

Thoughts?

--
Thanks,
David Mansfield
Cobite, INC.



More information about the Spice-devel mailing list