Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jjdig-00035l-KC for qemu-devel@nongnu.org; Wed, 09 Apr 2008 13:04:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jjdie-00032O-Ga for qemu-devel@nongnu.org; Wed, 09 Apr 2008 13:04:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jjdie-00031w-A0 for qemu-devel@nongnu.org; Wed, 09 Apr 2008 13:04:20 -0400 Received: from smtp02.citrix.com ([66.165.176.63]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jjdic-0004QN-HL for qemu-devel@nongnu.org; Wed, 09 Apr 2008 13:04:19 -0400 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m39H39Rn006318 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 9 Apr 2008 10:03:12 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1JjdhU-0002oJ-5V for qemu-devel@nongnu.org; Wed, 09 Apr 2008 18:03:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18428.63180.164022.338170@mariner.uk.xensource.com> Date: Wed, 9 Apr 2008 18:03:08 +0100 From: Ian Jackson Subject: [Qemu-devel] Two display refresh timers Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Is there a particular reason why there are two separate bits of machinery, and two call flows, for vga display updates ? When using vnc, vnc.c sets a timer for regular calls to vnc_update_client, which calls into vga.c to update the DisplayState data array (and associated dirty flags) and sends updates as a result. When using sdl, vl.c sets a timer for regular calls to dpy_refresh. vnc displays have a NULL dpy_refresh. It would seem more rational if there was only one call flow. It should probably be done by the output machinery, since that is what knows about the desirable update frequency, flow control, etc. So I think dpy_refresh should be abolished and instead sdl.c should arrange its own timer. Ian.