light-themes make the system slow and laggy

Bug #769605 reported by Alistair Buxton
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
light-themes (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: light-themes

Steps to reproduce:

1. Have an nvidia card and binary driver (probably)
2. Run glxgears (with or without vsync)
3. Open some other windows, any programs will do.
4. Click in a window that isn't focused.

At this point you'll see glxgears (and the whole desktop) freeze for about 1 second. The the new window starts working

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: light-themes 0.1.8.13
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sat Apr 23 19:05:12 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110422)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: light-themes
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Here is a video demonstrating the problem: http://www.youtube.com/watch?v=NOpwdUwyNys

I recorded this video on my mobile phone so the quality is a bit low, sorry about that. But I wanted to faithfully capture the speed and I figured a desktop recorder might prevent me from doing that.

So, first I switch between two windows while using Ambiance. Notice that the gears stop moving for about a second while I do this. In fact, the whole display of the computer freezes up during this time.

Next, I minimize/restore a window. Notice that the animation barely even shows because it is so laggy, and again the whole display freezes up.

Next I switch to clearlooks theme and repeat the tests, and no noticable delay is observed.

Also note that glxgears is running in a frankly tiny window and is locked to vsync so it only renders 60 frames per second. This should use a minimal amount of resources. It certainly shouldn't cause this much lag. If vsync is disabled glxgears hits 6000 fps. Also note that the lag increases when more graphically intensive software is running, but is always significantly worse with light-themes than with any other theme.

I suspected that the issue was caused by the huge drop shadows of light-themes so I attempted to disable them by editing the theme XML file setting the radius to 0 as follows:

<shadow radius="0" opacity="0.75" color="#abde4f" x_offset="1" y_offset="4"/>

However this did not make any difference to the speed.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Pretty easy to confirm this. Massive lag switching between windows.

Changed in light-themes (Ubuntu):
status: New → Confirmed
Revision history for this message
Konrad (konradmb) wrote :

I found solution for this bug. This patch seems to fix it and this bug: https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/714909 too. The patch turns off any shadows enforced by config file and windows resizing on unfocusing. Let me know if it works and this is my first patch, so it might not work.

Revision history for this message
Konrad (konradmb) wrote :

You should apply patch on config file in: /usr/share/themes/Radiance/metacity-1/metacity-theme-1.xml

tags: added: patch
Andrea Cimitan (cimi)
Changed in light-themes (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.