Unity is wasting CPU repeatedly reloading some icons on every redraw in SimpleLauncherIcon::GetTextureForSize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Fix Released
|
Undecided
|
Daniel van Vugt | ||
unity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When profiling compiz/unity (during pulse animations) I noticed LauncherIcon:
The cause is pretty obvious in SimpleLauncherI
Fixing the simple logic error in SimpleLauncherI
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.16-
ProcVersionSign
Uname: Linux 2.6.38-10-generic x86_64
NonfreeKernelMo
Architecture: amd64
CompizPlugins: [core,bailer,
Date: Sun Aug 7 12:59:41 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
LANGUAGE=en_AU:en
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Neil J. Patel (community): Approve
-
Diff: 42 lines (+6/-1)2 files modifiedsrc/SimpleLauncherIcon.cpp (+5/-1)
src/SimpleLauncherIcon.h (+1/-0)
Changed in unity: | |
assignee: | nobody → Daniel van Vugt (vanvugt) |
It seems a fix has already been committed to unity 4.x without a bug number: bazaar. launchpad. net/~unity- team/unity/ trunk/revision/ 1296#plugins/ unityshell/ src/SimpleLaunc herIcon. cpp
http://