[Spice-devel] [RFC PATCH spice-server v4 21/22] WIP: Try to reduce delay

Jonathon Jongsma jjongsma at redhat.com
Mon Aug 28 19:38:07 UTC 2017


A description of the problem you're trying to solve here would help me
evaluate this patch. You say that it's "WIP" and "hacky", so I assume
that you don't intend this to be the actual solution, but without some
discussion of the behavior before and after this patch, it's hard to
comment intelligently.



On Fri, 2017-08-25 at 10:54 +0100, Frediano Ziglio wrote:
> This is an hacky patch that tryes to reduce lag
> ---
>  server/stream-device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/stream-device.c b/server/stream-device.c
> index 5ab41396..88e5abba 100644
> --- a/server/stream-device.c
> +++ b/server/stream-device.c
> @@ -182,7 +182,7 @@ handle_msg_data(StreamDevice *dev,
> SpiceCharDeviceInstance *sin)
>          // TODO collect all message ??
>          // up: we send a single frame together
>          // down: guest can cause a crash
> -        stream_channel_send_data(dev->stream_channel, buf, n,
> reds_get_mm_time());
> +        stream_channel_send_data(dev->stream_channel, buf, n,
> reds_get_mm_time() - 2000);
>          dev->hdr.size -= n;
>      }
>      if (dev->hdr.size == 0) {


More information about the Spice-devel mailing list