Bug 293330 - very slow performance in kwin effects. Much worst than in kde 4.7.4
Summary: very slow performance in kwin effects. Much worst than in kde 4.7.4
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 4.8.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-02-04 22:40 UTC by masterdany88
Modified: 2018-10-27 02:21 UTC (History)
0 users

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


Attachments
kwin.txt (750 bytes, text/plain)
2012-02-04 23:28 UTC, masterdany88
Details
glxinfo.txt (27.36 KB, text/plain)
2012-02-04 23:28 UTC, masterdany88
Details
kwinrc (7.64 KB, application/octet-stream)
2012-02-04 23:29 UTC, masterdany88
Details

Note You need to log in before you can comment on or make changes to this bug.
Description masterdany88 2012-02-04 22:40:36 UTC
Version:           4.8.0 (using KDE 4.8.0) 
OS:                Linux

very slow performance after updating to 4.8

Reproducible: Always

Steps to Reproduce:
run composite and kwin

Actual Results:  
it works very slowly

Expected Results:  
it should give at least 60 fps
Comment 1 Thomas Lübking 2012-02-04 23:03:31 UTC
For a very wild guess, run "kcmshell4 kwincompositing" and disable blurring in the second tab, but in general this "report" lacks a tiny little bit of information.

What about GPU, installed driver, backend (Opengl/XRender), Qt Graphicssystem, general CPU load, a specification of "what is slow" (moving windows, resizing, activation, ...)

Please open konsole and run:
glxinfo > glxinfo.txt
kwin --replace > kwin.txt &
and attach both created .txt files alongside ~/.kde/share/config/kwinrc to this bug (Attach to the bug! Do not post them! Do not attempt to attach them to a mail in case you intend to hit the reply button - click the link to enter the bugreport instead)

Next you run "top" and watch whether there's sth. at high load when "kwin is slow" or in general and share your findings.
Comment 2 masterdany88 2012-02-04 23:28:15 UTC
Created attachment 68506 [details]
kwin.txt
Comment 3 masterdany88 2012-02-04 23:28:52 UTC
Created attachment 68507 [details]
glxinfo.txt
Comment 4 masterdany88 2012-02-04 23:29:45 UTC
Created attachment 68508 [details]
kwinrc
Comment 5 masterdany88 2012-02-04 23:35:57 UTC
Sorry. My english is so bad. It's hard for me to explain all of it.
At First. I've the newest nvidia drivers for my geforce8600mgt512
And everything was great. But after updating from 4.7.4 to 4.8 the whole kwin is slow. is not as smooth as it was earlier. average cpu usage is about 5%
with firefox 30% (it depend on flash).
Its hard to explain it

here You have my graphic:
kcmshell4 kwincompositing
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 8600M GT/PCI/SSE2
OpenGL version string:                  3.3.0 NVIDIA 280.13
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         280.13
GPU class:                              G80/G90
OpenGL version:                         3.3
GLSL version:                           3.30
X server version:                       1.10.4
Linux kernel version:                   3.0
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 8600M GT/PCI/SSE2
OpenGL version string:                  3.3.0 NVIDIA 280.13
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         280.13
GPU class:                              G80/G90
OpenGL version:                         3.3
GLSL version:                           3.30
X server version:                       1.10.4
Linux kernel version:                   3.0
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes


Why do I have to deactivate blur??
I was using it from begining. And it was better than in 4.8
Comment 6 masterdany88 2012-02-04 23:40:38 UTC
After deactivating blur effect performance are not enaught smooth :(
Comment 7 Thomas Lübking 2012-02-04 23:53:05 UTC
Your English doesn't matter - as long as there is some information, we'll read it regardless ;-)

The "deactivate blur" suggestion was a wild guess based upon your "no information", ie. if it had been an intel chip or a software renderer or so.

Try 
a) another decoration (not aurorae, possibly not oxygen)
b) to disable v'syncing
c) "kwriteconfig --file kwinrc --group Compositing --key GraphicsSystem raster; qdbus org.kde.kwin /KWin reconfigure"
Comment 8 masterdany88 2012-02-05 00:41:52 UTC
None of it helps.
Comment 9 Thomas Lübking 2012-02-05 01:03:48 UTC
- What's the output of "qdbus org.kde.kwin /KWin activeEffects"
- Is it slow with xrender ("kcmshell4 kwincompositing", 3rd tab) as well?
- Does disabling all effect plugins (yet keeping compositing up) help?
- run "kdebugdialog", activate kwin(1212) restart kwin from konsole and check for the considered refresh rate ("Refresh rate 60 Hz" or so, in doubt just "kwin --replace | grep -i refresh &"
Comment 10 masterdany88 2012-02-15 14:37:47 UTC
danielo@danielos:~$ qdbus org.kde.kwin /KWin activeEffects
kwin4_effect_translucency
kwin4_effect_blur
danielo@danielos:~$ 



danielo@danielos:~$ kwin --replace | grep -i refresh &
[1] 25569
danielo@danielos:~$ kwin(25568) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"  non_native_pixmaps:  true
kwin(25568) KWin::CompositingPrefs::detect: glx version is  1 . 4
kwin(25568) KDecorationPlugins::loadPlugin: kwin : path  "/usr/lib/kde4/kwin3_oxygen_transparent.so"  for  "kwin3_oxygen_transparent"
kwin(25568) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"  non_native_pixmaps:  true
kwin(25568) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"  non_native_pixmaps:  true
kwin(25568) KWin::Workspace::setupCompositing: Initializing OpenGL compositing
kwin(25568) KWin::SceneOpenGL::initBufferConfigs: Drawable visual (depth  24 ): 0x "49"
kwin(25568) KWin::SceneOpenGL::initBufferConfigs: Drawable visual (depth  32 ): 0x "64"
kwin(25568) KWin::SceneOpenGL::initBuffer: Buffer visual (depth  24 ): 0x "47"
kwin(25568) KWin::ShaderManager::initShaders: Ortho Shader is valid
kwin(25568) KWin::ShaderManager::initShaders: Generic Shader is valid
kwin(25568) KWin::ShaderManager::initShaders: Color Shader is valid
kwin(25568) KWin::SceneOpenGL::SceneOpenGL: DB: true , Direct: true
kwin(25568) KWin::currentRefreshRate: Refresh rate  50 Hz
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_sheet"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_dimscreen"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_zoom"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_flipswitch"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_thumbnailaside"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_cubeslide"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_mousemark"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_logout"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_login"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_presentwindows"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_desktopgrid"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_highlightwindow"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_minimizeanimation"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_translucency"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_scalein"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_dashboard"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_blur"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_taskbarthumbnail"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_cube"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_coverswitch"
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_outline"                                                                                           
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_dialogparent"                                                                                      
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_slideback"                                                                                         
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_startupfeedback"                                                                                   
kwin(25568) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_trackmouse"                                                                                        
kwin(25568) KWin::Workspace::updateClientArea: screens:  1 desktops:  2                                                                                                            
kwin(25568) KWin::Workspace::updateClientArea: Done.  




I am not sure of that, but seems to be faster and smoother. maybe deactivating vsync helped.
thanks
Comment 11 Thomas Lübking 2012-02-15 15:49:58 UTC
kwin(25568) KWin::currentRefreshRate: Refresh rate  50 Hz

Does your screen actually run at this frequency?
nvidia-settings -q RefreshRate

otherwise
kwriteconfig --file kwinrc --group Compositing --key RefreshRate <correct_Hz_here>
kwin --replace &
Comment 12 Martin Flöser 2012-04-09 07:38:11 UTC
no feedback for more than a month.

As this is more of a user support issue than a bug report I recommend to use forum.kde.org or a forum about Linux in your native tongue.
Comment 13 Andrew Crouthamel 2018-09-23 02:21:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Andrew Crouthamel 2018-10-27 02:21:29 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!