Bug 178131 - oxygen/ozone kwin decorator themes very slow repainting
Summary: oxygen/ozone kwin decorator themes very slow repainting
Status: RESOLVED FIXED
Alias: None
Product: Oxygen
Classification: Plasma
Component: win deco (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
: 179406 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-19 02:00 UTC by Shawn Starr
Modified: 2014-04-25 11:53 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Oxygen sysprof results (6.17 KB, text/plain)
2008-12-19 02:01 UTC, Shawn Starr
Details
A video from the redrawing bug (257.30 KB, video/ogg)
2009-06-18 17:15 UTC, Bob K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Starr 2008-12-19 02:00:16 UTC
Version:            (using Devel)
Compiler:          4.3.2 gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) 
OS:                Linux
Installed from:    Compiled sources

When using Oxygen/Ozone window decorations there is high syscall usage.

1) I ran sysprof and resized windows with either decoration, there is a lot of paint calls. Switching Plastik the problem goes away.

Attached is the system calls and their total times
Comment 1 Shawn Starr 2008-12-19 02:01:33 UTC
Created attachment 29429 [details]
Oxygen sysprof results
Comment 2 Jonathan Thomas 2009-01-02 20:16:55 UTC
*** Bug 179406 has been marked as a duplicate of this bug. ***
Comment 3 Quentin Denis 2009-01-12 14:54:17 UTC
I can confirm this issue!
Comment 4 Martin Flöser 2009-05-14 15:00:24 UTC
can you try again with KDE 4.2.3?
Comment 5 Kai Krakow 2009-05-18 21:55:36 UTC
I'm experiencing this excessive redrawing issue, too. Compositing and effects are disabled (and cannot be enabled due to using the sis driver).

When switching windows or the title changes, the decoration buttons start flickering for about 1 second and you can see the title bar being redrawn multiple times with flat color and full design.

The problem becomes even worse when new windows open, as this really slows down painting the rest of the window and sometimes takes five seconds or so with the window manager being completely stalled (no reaction to mouse clicks or key presses) and the decorations of at least two windows flickering.

Sometimes this leaves artifacts like grey or black window title buttons or a dark grey to black gradient along the whole title bar.

This happens with both ozone and oxygen decorations. Switching to keramik for example fixes this mostly (still leaving some very short flickering but no more artifacts or excessive redraws).
Comment 6 Bob K 2009-06-18 17:14:49 UTC
I can confirm this too. 
The problem only reproducible with oxygen, and it's fork nitrogen (from kde-look.org).
I'm using intel driver 2.7.99, xorg 1.6.1, 2.6.30-8 and jaunty.
I will attach a video that contains the problem in action.
Comment 7 Bob K 2009-06-18 17:15:55 UTC
Created attachment 34633 [details]
A video from the redrawing bug
Comment 8 Krzysztof Sobolewski 2009-08-20 19:58:54 UTC
I'm observing this too. One one machine, using radeon driver, it's almost unnoticeable, but on my Nvidia laptop it makes the whole desktop practically unusable, despite it being the faster machine. Switching windows can take several seconds and mere changing a tab in Konsole produces noticeable lag (because of change in the window title). [Moreover, if I try to switch windows too fast after switching desktops, the whole desktop loses touch with the keyboard and I have to restart the X Server.]

Frankly, this is seriously ridiculous.
Comment 9 Hugo Pereira Da Costa 2009-10-18 20:17:31 UTC
I think this was due to the fact that main title bar paintEvent was triggering buttons painting (which in turn would trigger title bar paint, etc). This has been fixed for kde4.3

Is someone able to reproduce the issue with kde4.3 or trunk ? 
Otherwise will close the bug.

(Note: I also think this was fixed with Nitrogen at KDE-Look)
Comment 10 Kai Krakow 2009-10-18 23:55:22 UTC
I am currently not experiencing it with SiS graphic card and xorg server 1.6 in KDE 4.3.2.
Comment 11 Bob K 2009-10-19 08:55:57 UTC
(In reply to comment #9)
> I think this was due to the fact that main title bar paintEvent was triggering
> buttons painting (which in turn would trigger title bar paint, etc). This has
> been fixed for kde4.3
> 
> Is someone able to reproduce the issue with kde4.3 or trunk ? 
> Otherwise will close the bug.
> 
> (Note: I also think this was fixed with Nitrogen at KDE-Look)

At me the problem is still exists.

Jaunty

meta@meeeta:~$ kde4-config --version
Qt: 4.5.2
KDE: 4.3.2 (KDE 4.3.2)
kde4-config: 1.0

Linux meeeta 2.6.31-020631-generic #020631 SMP Thu Sep 10 22:34:46 UTC 2009 i686 GNU/Linux

xf86-video-intel-2.8.99.901

(eee 1000h)
Comment 12 Hugo Pereira Da Costa 2009-10-19 18:03:10 UTC
@Kopiás

Damn. Did you also try with recent Nitrogen (http://www.kde-look.org/content/show.php/Nitrogen?content=99551). I ask because it has similar patches to what will go into kde4.4 ?
Comment 13 Hugo Pereira Da Costa 2010-04-24 06:56:35 UTC
Any attempt using oxygen from kde4.4 series ?
There was a serious bug concerning buttons repainting in kde4.3 oxygen/ozone, that has been fixed since then.
Besides, well, ozone is gone, nitrogen is largely unmaintained, and oxygen has undergone major re-writting, notably to absorb nitrogen.
Comment 14 Hugo Pereira Da Costa 2010-06-02 03:31:39 UTC
Need feedback on kde4.4/kde4.5
As far as I know repaint is fast enough here (using Intel Graphics card, with all effects enabled). Even faster when disabling transition effect, shadows, etc.
Comment 15 Krzysztof Sobolewski 2010-06-03 20:09:16 UTC
It could be... But I can't tell, because all of plasma became so sluggish in recent versions that it is masking any improvement here.
Comment 16 Søren Holm 2011-08-01 20:50:58 UTC
As  far as I can tell, this is still a problem on KDE 4.7.0