From 2430ffe4c855d782b157fafd0cd561d7c1561c2f Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Mon, 3 Aug 2009 10:56:01 +0100 Subject: variable timer intervals This patch introduces dynamic timer intervals: we slow down the refresh rate when there in no much activity but we get back to a fast refresh rate when the activity resume. Please note that qemu_timer_expired is not an inline function any more because I needed to call it from vnc.c however I don't think this change should have any serious consequence. Signed-off-by: Stefano Stabellini Signed-off-by: Anthony Liguori Message-Id: --- vnc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vnc.h') diff --git a/vnc.h b/vnc.h index 5c903de..fcc6824 100644 --- a/vnc.h +++ b/vnc.h @@ -93,6 +93,7 @@ struct VncSurface struct VncDisplay { QEMUTimer *timer; + int timer_interval; int lsock; DisplayState *ds; VncState *clients; -- cgit v1.1