From c541d7e29dc0053e6434d053a50454bb8a7121e9 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Sun, 2 Nov 2014 22:11:58 +0100 Subject: Remove guest side video time-stamping The multimedia time is defined by the server side monotonic time [1], but the drawing time-stamp is done in guest side, so it requires synchronization between host and guest. This is expensive, when no audio is playing, there is a ~30x/sec wakeup to update the qxl device mmtime, and it requires marking dirty the rom region. Instead, the video timestamping can be done more efficiently on server side, without visible drawbacks. [1] a better timestamp could be the audio time, since audio players are usually sync with audio time) Related to: https://bugzilla.redhat.com/show_bug.cgi?id=912763 --- server/red_dispatcher.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'server/red_dispatcher.c') diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c index a6ffe7be..d8389bc5 100644 --- a/server/red_dispatcher.c +++ b/server/red_dispatcher.c @@ -751,15 +751,6 @@ static void qxl_worker_loadvm_commands(QXLWorker *qxl_worker, red_dispatcher_loadvm_commands((RedDispatcher*)qxl_worker, ext, count); } -void red_dispatcher_set_mm_time(uint32_t mm_time) -{ - RedDispatcher *now = dispatchers; - while (now) { - now->qxl->st->qif->set_mm_time(now->qxl, mm_time); - now = now->next; - } -} - static inline int calc_compression_level(void) { spice_assert(streaming_video != STREAM_VIDEO_INVALID); -- cgit