From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZFAA-0006C7-QX for qemu-devel@nongnu.org; Tue, 11 Mar 2008 20:49:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZFA9-0006Bv-IG for qemu-devel@nongnu.org; Tue, 11 Mar 2008 20:49:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZFA9-0006Bs-DR for qemu-devel@nongnu.org; Tue, 11 Mar 2008 20:49:45 -0400 Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZFA4-0005gc-91 for qemu-devel@nongnu.org; Tue, 11 Mar 2008 20:49:45 -0400 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20080312005205.HOXJ27871.mtaout02-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Wed, 12 Mar 2008 00:52:05 +0000 Received: from implementation.famille.thibault.fr ([82.21.96.230]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20080312004942.HIHE29112.aamtaout04-winn.ispmail.ntl.com@implementation.famille.thibault.fr> for ; Wed, 12 Mar 2008 00:49:42 +0000 Received: from samy by implementation.famille.thibault.fr with local (Exim 4.69) (envelope-from ) id 1JZFA0-0002uK-EA for qemu-devel@nongnu.org; Wed, 12 Mar 2008 01:49:36 +0100 Date: Wed, 12 Mar 2008 00:49:31 +0000 From: Samuel Thibault Subject: Re: [Qemu-devel] [PATCH] Slowdown SDL while minimized Message-ID: <20080312004931.GA4404@implementation> References: <20080311111251.GA5831@implementation.uk.xensource.com> <47D71C3A.8060007@flac.kalibalik.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47D71C3A.8060007@flac.kalibalik.dk> 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 Anders, le Wed 12 Mar 2008 00:56:42 +0100, a écrit : > Samuel Thibault wrote: > >When SDL is invisible/minimized, there is no need to keep calling the > >VGA refresh 33 times per second. This patch reduces in that case the > >rate to 2 times per second, which should be responsive enough for the > >un-minimizing event. > > > > Is there any need to update at all, if the canvas is not visible? Indeed not. We however still need to have a look at the SDL queue, to detect the un-minimize event. > How about some infrastructure for pausing the update completely? I > think that could also be used for VNC displays, when no client is > connected. Actually in Xen it goes even further: when the client hasn't sent an update request since a long time, the VNC server assumes the client is minimized, and in pratice that is the case. Samuel