[regression] All apps have a lower frame rate under Unity.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Fix Released
|
High
|
Daniel van Vugt | ||
4.0 |
Fix Released
|
High
|
Daniel van Vugt | ||
unity (Ubuntu) |
Fix Released
|
High
|
Daniel van Vugt | ||
Oneiric |
Fix Released
|
Undecided
|
Daniel van Vugt | ||
Precise |
Fix Released
|
High
|
Daniel van Vugt |
Bug Description
TEST CASE:
1. Install VirtualGL from http://
2. Run /opt/VirtualGL/
3. Note the frame rate that glxspheres reports.
This frame rate is significantly lower when running Unity, than when running Unity-2D or Gnome Shell (3.2).
However, if you open CCSM and disable the Unity plugin of compiz, instantly the frame rate jumps up to the same as you see in Unity-2D or Gnome Shell. So this proves the issue is not with vanilla compiz, but specifically a problem with the Unity plugin.
This bug does not seem to occur with high-end graphics hardware using high-performance proprietary drivers. However it seems easy to reproduce using open source DRM drivers: intel, nouveau or radeon.
ORIGINAL DESCRIPTION:
A recent update to compiz in oneiric has had a big impact on 3d performance. The desktop feels more sluggish, and the glxspheres benchmark indicates about half the performance compared to metacity and mutter (on my Sandy Bridge GPU I get 30-32 fps in unity/compiz vs 59-60 fps in both unity-2d/metacity and gnome-shell/
I also tested the oneiric beta2 live CD (amd64) and performance was similar (ie regressed compared to beta1).
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: compiz 1:0.9.5.
Uname: Linux 3.1.0-rc7-
.tmp.unity.
ApportVersion: 1.23-0ubuntu1
Architecture: amd64
CompizPlugins: [core,bailer,
CompositorRunning: None
Date: Wed Sep 28 09:15:49 2011
DistUpgraded: Log time: 2011-09-02 11:56:50.062543
DistroCodename: oneiric
DistroVariant: ubuntu
GraphicsCard:
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 GF106 [GeForce GT 555M] [10de:0df4] (rev ff) (prog-if ff)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
MachineType: Dell Inc. Dell System XPS L502X
PackageArchitec
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: compiz
UpgradeStatus: Upgraded to oneiric on 2011-09-27 (0 days ago)
dmi.bios.date: 03/25/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A04
dmi.board.name: 0NJT03
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: Dell System XPS L502X
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.5.
version.ia32-libs: ia32-libs 20090808ubuntu23
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.
version.
version.
version.
version.
version.
version.
version.
Related branches
- Sam Spilsbury (community): Approve
- Unity Team: Pending requested
-
Diff: 60 lines (+13/-4)4 files modifiedplugins/unityshell/src/BackgroundEffectHelper.cpp (+9/-0)
plugins/unityshell/src/BackgroundEffectHelper.h (+1/-1)
plugins/unityshell/src/PanelView.cpp (+1/-2)
plugins/unityshell/src/unityshell.cpp (+2/-1)
- Jason Smith (community): Approve
- Mirco Müller: Pending requested
- Neil J. Patel: Pending requested
-
Diff: 1729 lines (+1188/-297)11 files modifiedplugins/unityshell/src/BackgroundEffectHelper.cpp (+13/-0)
plugins/unityshell/src/BackgroundEffectHelper.h (+1/-1)
plugins/unityshell/src/PanelView.cpp (+1/-2)
plugins/unityshell/src/ScreenEffectFramebufferObject.cpp (+234/-0)
plugins/unityshell/src/ScreenEffectFramebufferObject.h (+87/-0)
plugins/unityshell/src/unityshell.cpp (+75/-257)
plugins/unityshell/src/unityshell.h (+7/-35)
standalone-clients/CMakeLists.txt (+16/-2)
standalone-clients/GLFuncLoader.cpp (+51/-0)
standalone-clients/GLFuncLoader.h (+33/-0)
standalone-clients/TestScreenEffectFramebufferObject.cpp (+670/-0)
- Jason Smith (community): Approve
- Robert Carr (community): Approve
-
Diff: 1711 lines (+1184/-294)12 files modifiedplugins/unityshell/src/BackgroundEffectHelper.cpp (+13/-0)
plugins/unityshell/src/BackgroundEffectHelper.h (+1/-1)
plugins/unityshell/src/PanelView.cpp (+1/-2)
plugins/unityshell/src/ScreenEffectFramebufferObject.cpp (+234/-0)
plugins/unityshell/src/ScreenEffectFramebufferObject.h (+84/-0)
plugins/unityshell/src/comptransientfor.cpp (+2/-0)
plugins/unityshell/src/unityshell.cpp (+73/-256)
plugins/unityshell/src/unityshell.h (+7/-35)
tests/CMakeLists.txt (+14/-0)
tests/GLFuncLoader.cpp (+51/-0)
tests/GLFuncLoader.h (+33/-0)
tests/TestScreenEffectFramebufferObject.cpp (+671/-0)
summary: |
- compiz 3d performance regression + Running compiz makes 3D apps like glxspheres (VirtualGL) perform worse. |
description: | updated |
Changed in compiz (Ubuntu): | |
status: | Incomplete → Confirmed |
tags: | added: testcase |
affects: | compiz (Ubuntu) → unity (Ubuntu) |
summary: |
- Running compiz makes 3D apps like glxspheres (VirtualGL) perform worse. + Unity makes 3D apps like glxspheres (VirtualGL) or glxgears perform + worse. |
description: | updated |
description: | updated |
summary: |
- Unity makes 3D apps like glxspheres (VirtualGL) or glxgears perform - worse. + Unity makes 3D apps run much slower. |
description: | updated |
description: | updated |
tags: | added: regression-release |
Changed in unity (Ubuntu): | |
assignee: | nobody → Daniel van Vugt (vanvugt) |
Changed in unity (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in compiz (Ubuntu): | |
assignee: | nobody → Daniel van Vugt (vanvugt) |
status: | New → In Progress |
Changed in unity: | |
status: | New → In Progress |
assignee: | nobody → Daniel van Vugt (vanvugt) |
Changed in compiz (Ubuntu): | |
status: | In Progress → Invalid |
no longer affects: | compiz (Ubuntu) |
summary: |
- Unity makes 3D apps run much slower. + [regression] Unity makes 3D apps run much slower. |
description: | updated |
description: | updated |
description: | updated |
Changed in unity: | |
importance: | Undecided → High |
Changed in unity (Ubuntu): | |
importance: | Undecided → High |
summary: |
- [regression] Unity makes 3D apps run much slower. + [regression] All apps have a lower frame rate under Unity. |
tags: | added: performance |
Changed in unity (Ubuntu Oneiric): | |
status: | Confirmed → In Progress |
assignee: | nobody → Daniel van Vugt (vanvugt) |
Changed in unity: | |
status: | Fix Released → Fix Committed |
milestone: | none → 5.0.0 |
Changed in unity: | |
status: | Fix Committed → Fix Released |
I also see exactly the same behavior with Oneiric's Compiz and Radeon HD 3200 (AMD 780G chipset's integrated graphics). Compiz is a lot slower/laggier than it was in 11.04.
Testing with glxgears (leaving the glxgears window in its default size) on latest Ubuntu 11.10:
Compiz is at around 33-42 FPS
Mutter is at a stable 59.xxx FPS
Ubuntu's 11.04 Compiz was also at 59.xxx FPS (the screen's refresh is at 60 fps).
There is a chance that the fix in:
https:/ /bugs.launchpad .net/ubuntu/ +source/ fglrx-installer /+bug/763005
solves it, but i don't have a way to test it until a PPA of the fix for Oneiric is build.
I think that this is a very important regression because for the systems that it affects, Compiz/Unity becomes unbearably stuttery/slow.