[RFC,spice-server,v5,21/22] WIP: Try to reduce delay

Submitted by Frediano Ziglio on Aug. 30, 2017, 3:28 p.m.

Details

Message ID 20170830152839.25305-22-fziglio@redhat.com
State New
Headers show
Series "Allows guests to send display data as video streams" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Aug. 30, 2017, 3:28 p.m.
This is an hacky patch that tries to reduce lag
---
 server/stream-device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/server/stream-device.c b/server/stream-device.c
index 93b546ac..d3685686 100644
--- a/server/stream-device.c
+++ b/server/stream-device.c
@@ -197,7 +197,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;
     }