From: Peter Stuge Subject: Re: Two 600ms pauses when starting wine on i915 Date: Thu, 30 Sep 2010 02:00:24 +0200 Message-ID: <20100930000024.4378.qmail@stuge.se> References: <201009291136.23043.toralf.foerster@gmx.de> <20100929230847.30488.qmail@stuge.se> <89kc63$i7cm2j@fmsmga002.fm.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from foo.birdnet.se (foo.birdnet.se [213.88.146.6]) by gabe.freedesktop.org (Postfix) with SMTP id 4F0179E744 for ; Wed, 29 Sep 2010 17:00:26 -0700 (PDT) Content-Disposition: inline In-Reply-To: <89kc63$i7cm2j@fmsmga002.fm.intel.com> 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: Chris Wilson Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Chris Wilson wrote: > > a few seconds of very irritating stuttering whenever I run wine. > > i915 > > wine triggers an xrandr storm for its own unknown reasons. Same underlying reason as for the 600ms keyboard pauses I saw. One #winehq person claims that ATI and NV drivers track monitor state and cache resolution information, which is what wine queries on startup. > The delay you see on starting is the driver (on wine's behalf) > repeatedly querying the outputs for connected displays It feels like it is being done twice. I'm taking a look in the wine code. I hope it can be resolved. I guess it's this call to XRRSizes(): http://source.winehq.org/git/wine.git/?a=blob;f=dlls/winex11.drv/xrandr.c#l258 Maybe make_modes() is also involved: http://source.winehq.org/git/wine.git/?a=blob;f=dlls/winex11.drv/xrandr.c#l111 //Peter