After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 96042 - Performance issues with Crux theme .
Performance issues with Crux theme .
Status: RESOLVED DUPLICATE of bug 95802
Product: metacity
Classification: Other
Component: themes
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2002-10-17 08:47 UTC by Satyajit Kanungo
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0


Attachments
performance report with Crux theme. (2.46 KB, patch)
2002-10-17 09:20 UTC, Satyajit Kanungo
none Details | Review

Description Satyajit Kanungo 2002-10-17 08:47:44 UTC
I could see significant performance degradation while using metacity with
"Crux" theme. The moving, resizing of windows is not at all smooth with 
Crux. The cpu usage sometime goes upto 20% (for metacity) while just moving
the terminal around the screen.While with "Atlanata" or in fact any other
theme it is working fine. 

Is it a Issue with the theme only ?There are improvements being discussed
for Crux in #91739. Will this issue also be addressed there.
Comment 1 Satyajit Kanungo 2002-10-17 09:18:41 UTC
Attaching a detailed analysis of performance of metacity when  Crux
and  Atalanta themes are used. The analysis is done by  Shane OConnor
<Shane.Oconnor@Sun.COM> .
Comment 2 Satyajit Kanungo 2002-10-17 09:20:07 UTC
Created attachment 11624 [details] [review]
performance report with Crux theme.
Comment 3 Havoc Pennington 2002-10-17 13:23:38 UTC
It's expected and inevitable that Crux will be slower than Atlanta; 
Atlanta is optimized for speed, but looks ugly.

Here is my system:

[hp@dhcppc3 hdtest]$ unst2 metacity-theme-viewer Crux
Loaded theme "Crux" in 0.03 seconds
Drew 100 frames for 200x200 clients in 0.31 seconds (0.0031 seconds
per frame)
[hp@dhcppc3 hdtest]$ unst2 metacity-theme-viewer Atlanta
Loaded theme "Atlanta" in 0.01 seconds
Drew 100 frames for 200x200 clients in 0.09 seconds (0.0009 seconds
per frame)

So Atlanta is about 3 times faster. Given the extra work Crux is 
doing, I think this is actually pretty good, I would not 
expect it to be possible to do much better.

On Solaris the ratio may be a good bit worse, due to lack of 
MMX acceleration of image scaling, and lack of Xrender for 
rendering the image data to the screen. What does theme-viewer 
say on your system?

If you did a detailed profile it might give you some optimization
ideas, but I'm guessing all the time is spent in image scaling and 
rendering, and those just aren't going to speed up without tricks 
like MMX or X server extensions. A cache isn't really viable without
blowing memory usage through the roof.
Comment 4 Satyajit Kanungo 2002-10-17 13:50:40 UTC
On my Solaris box,  also I get similar ratios between Atlanata 
and Crux theme . And also the figures are worse than what are
mentioned by you.

theme viewer  on my Solaris machine says :

-metacity-theme-viewer Crux
Loaded theme "Crux" in 0.08 seconds
Drew 100 frames for 200x200 clients in 2.83 seconds (0.0283 seconds
per frame)

-metacity-theme-viewer Atlanta
Loaded theme "Atlanta" in 0.02 seconds
Drew 100 frames for 200x200 clients in 0.25 seconds (0.0025 seconds
per frame)
Comment 5 Heath Harrelson 2002-10-30 13:30:02 UTC
This appears to cover the same performance issues with pixmap Metacity
themes on Solaris as bug 95802, although with a little less detail.

Marking duplicate, but feel free to reopen if I've missed something
important.

*** This bug has been marked as a duplicate of 95802 ***