Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWARv-0002SL-HM for qemu-devel@nongnu.org; Wed, 29 Jul 2009 10:48:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWARq-0002PT-Ra for qemu-devel@nongnu.org; Wed, 29 Jul 2009 10:48:10 -0400 Received: from [199.232.76.173] (port=59732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWARq-0002PN-Iz for qemu-devel@nongnu.org; Wed, 29 Jul 2009 10:48:06 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:27587 helo=SMTP.EU.CITRIX.COM) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWARp-0007oZ-CS for qemu-devel@nongnu.org; Wed, 29 Jul 2009 10:48:06 -0400 Date: Wed, 29 Jul 2009 15:48:49 +0100 From: Stefano Stabellini Subject: Re: [Qemu-devel] [PATCH 3 of 3] variable timer intervals In-Reply-To: <4A705F8E.4070401@redhat.com> Message-ID: References: <4A705F8E.4070401@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: "qemu-devel@nongnu.org" , Stefano Stabellini On Wed, 29 Jul 2009, Gerd Hoffmann wrote: > On 07/29/09 14:09, Stefano Stabellini wrote: > > 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. > > Looks good in principle. Untested though because it doesn't apply > without patch #2. > > > if (vs->output.offset&& !vs->audio_cap&& !vs->force_update) > > /* kernel send buffers are full -> drop frames to throttle */ > > - return; > > + return 0; > > Maybe it makes sense to integrate this throttle logic into the refresh > rate adaption? Please don't drop #2 just because of copyrect: I would rather fix copyrect myself before #2 and rebase #2 on top of it. I also prefer to keep #3 separated and at the end of the series because we can have a better logic to understand when it makes sense to slow down the refresh rate.