[regression] glxspheres runs very slowly in Precise (only 2-3 FPS)

Bug #944627 reported by Rocko on 2012-03-02
This bug affects 11 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)

Bug Description

Using the intel card, glxspheres only manages around 2 frames per second in precise, whereas in oneiric it runs at around 59-60 fps (ie the monitor refresh frequency).

Using my nvidia card and bumblebee, glxspheres can only manage 70-75fps in precise whereas in oneiric it runs at around 150-160fps.

Disabling the unity plugin (via CCSM) has no effect.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: compiz 1:
Uname: Linux 3.3.0-rc5-git-20120226.0832 x86_64

ApportVersion: 1.93-0ubuntu2
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,imgpng,place,snap,session,vpswitch,move,mousepoll,regex,unitymtgrabhandles,gnomecompat,resize,animation,grid,wall,workarounds,expo,ezoom,fade,scale,unityshell]
CompositorRunning: compiz
 Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
 dmesg: write failed: Broken pipe
Date: Fri Mar 2 16:14:11 2012
DistUpgraded: Log time: 2012-03-02 10:26:00.360989
DistroCodename: precise
DistroVariant: ubuntu
 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Dell Device [1028:050e]
 NVIDIA Corporation GF108 [GeForce GT 540M] [10de:0df4] (rev ff) (prog-if ff)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: Dell Inc. Dell System XPS L502X
PackageArchitecture: all
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.3.0-rc5-git-20120226.0832 root=UUID=67083065-b92e-4596-a218-817c1dfc8ae7 ro i915.i915_enable_rc6=1 quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: Upgraded to precise on 2012-03-02 (0 days ago)
dmi.bios.date: 07/20/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A06
dmi.board.name: 0NJT03
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnDellInc.:bvrA06:bd07/20/2011:svnDellInc.:pnDellSystemXPSL502X:pvr:rvnDellInc.:rn0NJT03:rvrA00:cvnDellInc.:ct8:cvr0.1:
dmi.product.name: Dell System XPS L502X
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:
version.ia32-libs: ia32-libs 20090808ubuntu33
version.libdrm2: libdrm2 2.4.30-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.1-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.1-0ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu4
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Rocko (rockorequin) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compiz (Ubuntu):
status: New → Confirmed
Rocko (rockorequin) wrote :

With compiz v 1: I now only get around half a frame per second using the intel card. The nvidia card still runs at about 70 fps using nvidia (less than half the speed it got in ubuntu 11.10).

Hanine HAMZIOUI (hanynowsky) wrote :

Same here in Precise (updated).
Difference between 11.10 & 12.04 is huge.
I captured a screencast to illustrate the fps rates in precise.


I recall, in 11.10, my laptop's intel card ran glxspheres at 60 fps while the discrete nvidia at about 140.

Daniel van Vugt (vanvugt) wrote :

Confirmed with Intel Sandybridge graphics. glxspheres is stuck around 3 FPS.

However installing a _slower_ old nvidia card, glxspheres has no such problem and runs smoothly.

Changed in compiz:
status: New → Confirmed
summary: - glxspheres runs very slowly in Precise
+ glxspheres runs very slowly in Precise (only 2-3 FPS)

Note also that glxspheres still only runs at 3 FPS in Unity 2D, Gnome Shell, Gnome Classic. So this is not a compiz-specific bug.

no longer affects: compiz
affects: compiz (Ubuntu) → xserver-xorg-video-intel (Ubuntu)
Daniel van Vugt (vanvugt) wrote :

glxspheres64 is using 100% of the CPU. callgrind shows all of this is spent in:

100% intelBitmap
    |- 100% _swrast_Bitmap
        |- 50% intelSpanRenderStart
        |- 50% intelSpanRenderFinish

I'm a bit worried about "_swrast_Bitmap". Sounds like it's rendering in software for some reason. Although glxspheres64 says:

Polygons in scene: 62464
Visual ID of window: 0x99
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Sandybridge Desktop
3.464074 frames/sec - 3.865907 Mpixels/sec

affects: xserver-xorg-video-intel (Ubuntu) → mesa (Ubuntu)
Daniel van Vugt (vanvugt) wrote :

More profile details:

100% intelBitmap
    |- 100% _swrast_Bitmap
        |- 50% intelSpanRenderStart
            |- 50% intel_miptree_map
        |- 50% intelSpanRenderFinish
            |- 50% intel_miptree_unmap

And both intel_miptree_map/intel_miptree_unmap call:
    69% intel_offset_S8
which is the single most expensive function.

Changed in mesa (Ubuntu):
status: Confirmed → Triaged
summary: - glxspheres runs very slowly in Precise (only 2-3 FPS)
+ [regression] glxspheres runs very slowly in Precise (only 2-3 FPS)
Changed in mesa (Ubuntu):
importance: Undecided → Medium
Timo Aaltonen (tjaalton) wrote :

try disabling FBC by adding 'i915.i915_enable_fbc=0' to the kernel options

Timo Aaltonen (tjaalton) wrote :

nevermind, tried it myself and it didn't help

Bryce Harrington (bryce) wrote :

If I understand correctly, glxspheres appears to be part of the bumblebee package (which we don't officially support here). Are you able to reproduce this bug using some other 3D app that we do support?

If not, another thing to check would be if the new mesa 8.0.3 fixes it, although I suspect it doesn't. I've set up a PPA for testing it here: https://launchpad.net/~bryce/+archive/mesa-803

Changed in mesa (Ubuntu):
status: Triaged → Incomplete
Daniel van Vugt (vanvugt) wrote :

I was thinking the fix for #48545 in Mesa 8.0.3 might be related. But that' still a guess and I can't test it right now.

Rocko (rockorequin) wrote :

I still see the problem with mesa 8.0.3:

Polygons in scene: 62464
Visual ID of window: 0xbd
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Sandybridge Mobile
2.389327 frames/sec - 2.666489 Mpixels/sec
1.590925 frames/sec - 1.775473 Mpixels/sec
1.599480 frames/sec - 1.785020 Mpixels/sec

Bryce Harrington (bryce) on 2012-06-19
Changed in mesa (Ubuntu):
status: Incomplete → Confirmed
Oibaf (oibaf) wrote :

Is this still an issue with 14.04?

Changed in mesa (Ubuntu):
status: Confirmed → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for mesa (Ubuntu) because there has been no activity for 60 days.]

Changed in mesa (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers