Bug 23707

Summary: clutter-using applications are unusably slow
Product: xorg Reporter: Sam Morris <sam>
Component: Driver/intelAssignee: Jesse Barnes <jbarnes>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium    
Version: 7.4 (2008.09)   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540191
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.log none

Description Sam Morris 2009-09-04 05:34:18 UTC
All libclutter-using programs run very slowly on my Samsung Q45 laptop.

A few versions of the driver ago (one of the 2.7.99 versions probably)
this didn't happen, but in 2.8.0 and 2.8.1 I get one frame every 3-4 seconds.

Example of affected programs include the demos in /usr/share/doc/python-clutter/examples, Empathy's 'view contacts on a map' feature and the new GNOME window manager, mutter.

00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
	Subsystem: Samsung Electronics Co Ltd Device c510
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 28
	Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=1M]
	Region 2: Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at 1800 [size=8]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
		Address: fee0300c  Data: 41a9
	Capabilities: [d0] Power Management version 3
		Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
		Bridge: PM- B3+

I'm using Debian's 2.6.30 kernel which is currently branched off 2.6.30.4.

This bug is forwarded from <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540191>.
Comment 1 Sam Morris 2009-09-04 05:36:17 UTC
Created attachment 29213 [details]
Xorg.log
Comment 2 Sam Morris 2009-09-04 10:28:02 UTC
"The drivers probably aren't handling sync-to-vblank properly, so Clutter
is timing out there. You can work around that by setting the environment
variable

CLUTTER_VBLANK=none"

and this does indeed work around the bug.
Comment 3 Jesse Barnes 2009-09-08 09:36:51 UTC
I'm working on adding vblank wait support to DRI2; when that lands it should fix this problem.
Comment 4 Julien Cristau 2009-09-23 06:56:20 UTC
I accidentally booted with ums today, and now I'm seeing this e.g. with sol-clutter.  IIRC it wasn't an issue with kms.
Comment 5 Jesse Barnes 2009-10-05 10:33:28 UTC
Yeah, it's just related to DRI2.  I think it's a dupe 0f 22056 (we have a few of these actually, cleaning them up now).

*** This bug has been marked as a duplicate of bug 22056 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.