Bug 246058 - When blur enabled kwin cpu goes from 0 to 5->6% and stays
Summary: When blur enabled kwin cpu goes from 0 to 5->6% and stays
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (other bugs)
Version First Reported In: git master
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 18:29 UTC by bill p. (aka google01103)
Modified: 2018-06-05 04:25 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Sysprof log (155.79 KB, application/octet-stream)
2010-07-28 23:38 UTC, Alexander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bill p. (aka google01103) 2010-07-28 18:29:35 UTC
Version:           SVN (using Devel) 
OS:                Linux

When blur is enabled kwin cpu goes from 0 to 5->6% and stays there even though no blur effect is being displayed.


I'm running Nvidia 256 series drivers, Nvidia 9500gt cpu, 64bit openSuse 11.3 and kde 4.6svn with qt4.6

Reproducible: Always

Steps to Reproduce:
enable blur

Actual Results:  
cpu goues up

Expected Results:  
no cpu spike
Comment 1 Alexander 2010-07-28 19:33:43 UTC
I have the same driver, the same video card, the same architecture and the same problem, but in Arch Linux. For me kwin CPU usage is 0 during idle and grows up only with any actions. Especially strongly during watching HD-videos — 10-20%.
Comment 2 Martin Flöser 2010-07-28 20:02:23 UTC
This might be a problem of the NVIDIA driver. I read a lot about problems
with the latest revision, but never about problems with 195.x
Comment 3 Alexander 2010-07-28 20:06:56 UTC
When watching 360p videos on youtube firefox CPU usage is 23-25%, xorg is 3-4%
and kwin is 14-18%...
Comment 4 bill p. (aka google01103) 2010-07-28 20:19:11 UTC
I've tried both driver series (195 & 256) and enabling blur takes 5% of my cpu without the blur effect being initiated - just being enabled.
Comment 5 Alexander 2010-07-28 23:38:42 UTC
Created attachment 49602 [details]
Sysprof log

After installing oxygen-transparent from svn and enabling kwin blur effect you will see more clear situation. Now, while playing video from youtube, kwin CPU usage is 40-50%, after disabling the blur effect — 3-4%.
Comment 6 Marian Kyral 2010-08-11 13:49:09 UTC
I can confirm that enabling blur efect causes increase of kwin CPU usage to 50 and even more percent.

It happened after upgrade to KDE 4.5.0.
Comment 7 Eugene M. Zheganin 2010-11-23 11:52:50 UTC
Same here, KDE 4.5.1.
Performance drastically improves after Blur effect is switched to off.
8600GTS/FreeBSD 8.0
Comment 8 Alexander 2011-05-09 09:19:06 UTC
The problem is still persists in KDE 4.6.3.
Comment 9 Martin Flöser 2014-01-08 13:56:58 UTC
It's a long time since 4.6, so I just have to ask whether the problem is still present?
Comment 10 bill p. (aka google01103) 2014-01-08 14:16:50 UTC
I stopped using it

enabling it today and it does not appear to work, maybe my new card is now blacklisted (running Nvidia 430gt, had a 9500gt iirc, with latest self compiled drivers under openSUSE 13.1 x64 & KDE 11.2.0)

fyi - transparency and wobbly window do work
Comment 11 Thomas Lübking 2014-01-08 14:36:26 UTC
What's the output of "qdbus org.kde.kwin /KWin supportInformation"?
Comment 12 bill p. (aka google01103) 2014-01-08 14:42:59 UTC
http://pastebin.com/3Kh4W1Ui

Blur Behind: no
kwin4_effect_blur
kwin4_effect_blur
kwin4_effect_blur:
blurRadius: 7
blur: false
useBlur: true
Comment 13 Thomas Lübking 2014-01-08 14:46:31 UTC
blur is supported and active - don't forget that the client has to set the blur regions.

-> restart plasma-desktop?
-> reconfigure oxygen-transparent/qtcurve/bespin?
-> apparently no CPU spike then? ;-)
Comment 14 bill p. (aka google01103) 2014-01-08 15:21:37 UTC
"don't forget that the client has to set the blur regions"?? - I thought blur would blur windows behind the window I was moving if the moving window was transparent. How to set blur regions?

sorry but configure what? Decorations? using Oxygen them and Oxygen decorations

obviously been long time and now I'm confused, sorry
Comment 15 Thomas Lübking 2014-01-08 15:25:16 UTC
There's no general blurring - clients indicate whether and what background they want to be blurred (to eg. not blur areas behind shadow etc.)

If you want a window to generally blur:

   xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0

click a window. should now be blurred.

    xprop -remove _KDE_NET_WM_BLUR_BEHIND_REGION

click the window again. should be unblurred.
Comment 16 Vlad Zahorodnii 2018-06-04 21:41:29 UTC
It's been ~4 years since last comment, does the problem still persist?
Comment 17 Martin Flöser 2018-06-05 04:25:43 UTC
Even if the implementation changed significantly so if it still exists it would be a different bug.