From: Michel =?ISO-8859-1?Q?D=E4nzer?= Subject: Re: glxgears frame rate when DPMS is in "off" state Date: Tue, 11 Dec 2012 09:56:31 +0100 Message-ID: <1355216191.14659.178.camel@thor.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail.gna.ch (darkcity.gna.ch [195.226.6.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 30B9CE5C26 for ; Tue, 11 Dec 2012 00:56:52 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Ilija Hadzic Cc: xorg-driver-ati@lists.x.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Mon, 2012-12-10 at 13:12 -0600, Ilija Hadzic wrote: = > = > Clearly, the behavior that we have now is wrong from the power-savings = > perspective (i.e., it completely defeats the purpose of DPMS), Not sure I agree with this statement, given DPMS stands for *Display* Power Management Signaling, but whatever. > but before I try to hack up the fix, I would like to hear some > suggestions on what the "right" thing to do would be. How about something like this: If the swap can't be scheduled using a vertical blank event, because the relevant CRTC isn't running, check if the window's swap interval has elapsed since the last swap (using the refresh rate of the relevant CRTC's current / last set mode). If it hasn't, suspend the client until it has before doing the swap with a blit. -- = Earthling Michel D=E4nzer | http://www.amd.com Libre software enthusiast | Debian, X and DRI developer