GNOME Bugzilla – Bug 96042
Performance issues with Crux theme .
Last modified: 2004-12-22 21:47:04 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.
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> .
Created attachment 11624 [details] [review] performance report with Crux theme.
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.
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)
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 ***