summaryrefslogtreecommitdiffstats
path: root/server/red_dispatcher.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2014-11-02 22:11:58 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2014-11-27 14:27:41 +0100
commitc541d7e29dc0053e6434d053a50454bb8a7121e9 (patch)
treedf8298e56cab514b1bbe73c378aca39b91f5e595 /server/red_dispatcher.c
parentab12cf414c87e0cc3b43bdc47f57bef837986f3b (diff)
downloadspice-c541d7e29dc0053e6434d053a50454bb8a7121e9.tar.gz
spice-c541d7e29dc0053e6434d053a50454bb8a7121e9.tar.xz
spice-c541d7e29dc0053e6434d053a50454bb8a7121e9.zip
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
Diffstat (limited to 'server/red_dispatcher.c')
-rw-r--r--server/red_dispatcher.c9
1 files changed, 0 insertions, 9 deletions
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);