From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWALT-00081K-E9 for qemu-devel@nongnu.org; Wed, 29 Jul 2009 10:41:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWALO-0007yC-15 for qemu-devel@nongnu.org; Wed, 29 Jul 2009 10:41:30 -0400 Received: from [199.232.76.173] (port=53757 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWALN-0007y5-NQ for qemu-devel@nongnu.org; Wed, 29 Jul 2009 10:41:25 -0400 Received: from mx2.redhat.com ([66.187.237.31]:41471) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWALN-0006Oj-5p for qemu-devel@nongnu.org; Wed, 29 Jul 2009 10:41:25 -0400 Message-ID: <4A705F8E.4070401@redhat.com> Date: Wed, 29 Jul 2009 16:41:18 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 3 of 3] variable timer intervals References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Stabellini Cc: qemu-devel@nongnu.org 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? cheers, Gerd