unity transparency seems to use CPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Expired
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
When I play a video or open an opengl game and then open the dash or press the Super-Key until the Dash-Help appears, then the CPU usage is utilized heavily while the HUD shows up, when I expected no increased CPU usage after the transitition (which is sluggish by the way), because no additional operations on the CPU need to be done after the dash help is opened. The only thing I can think of is transparency which needs to be calculated, because the video is playing always needs to be updated, but this shouldn't increase CPU usage, because it _should_ take place on the GPU for being a purely graphical operation which my graphics can do easily (blur inclusive).
The CPU utilization is lower if you switch from blur to no blur, so this fortifies my assumption that the actual graphical transparency calculation takes place on the CPU or that some ping pong effect moves buffers from GPU to CPU and back, slowing things down, i don't know after all.
Playing a video increases compiz CPU utilization from ~5 to ~20 and and Xorg cpu utilization from ~5 to ~28
Also the FPS of video games decreases when the dash is activated, with blur even more.
Last but not least, when I playback a video and activate the dash or the dash help the video shortly interrupts for about ~200ms.
For comparison:
The single-parameter transparency of the compiz-plugin "Opacity, Brightness and Saturation" does not affect CPU usage at all, at least not visibly.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unity 5.12-0ubuntu1.1
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelMo
.proc.driver.
.proc.driver.
.proc.driver.
NVRM version: NVIDIA UNIX x86_64 Kernel Module 295.49 Mon Apr 30 23:46:33 PDT 2012
GCC version: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
.tmp.unity.
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
CompizPlugins: [core,composite
CompositorRunning: compiz
Date: Sat Jun 9 16:02:48 2012
DistUpgraded: Fresh install
DistroCodename: precise
DistroVariant: ubuntu
DkmsStatus:
nvidia-current, 295.40, 3.2.0-24-generic, x86_64: installed
nvidia-
GraphicsCard:
NVIDIA Corporation G98M [GeForce G 105M] [10de:06ec] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Acer Incorporated [ALI] Device [1025:0205]
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
JockeyStatus:
xorg:nvidia_
xorg:nvidia_
MachineType: Acer Aspire 5738
ProcEnviron:
LANGUAGE=de_CH:de
PATH=(custom, user)
LANG=de_CH.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
XorgConf:
Section "Device"
Identifier "Default Device"
Option "NoLogo" "True"
EndSection
dmi.bios.date: 02/20/2009
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: V1.03
dmi.board.name: JV50
dmi.board.vendor: Acer
dmi.board.version: Rev
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: Aspire 5738
dmi.product.
dmi.sys.vendor: Acer
version.compiz: compiz 1:0.9.7.8-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.
version.
version.
version.
version.
version.
version.
version.
version.
With intel graphics I find the opposite -- compiz CPU consumption is much lower when the blur is active. This is probably because it halves the frame rate that compiz can achieve :(
If you're finding CPU is higher in this case then it's probably a lot to do with the NVIDIA driver, which is known to hog the CPU much more than other drivers.