Bug 219755 - Windows are moving and resizing very slow
Summary: Windows are moving and resizing very slow
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-22 22:51 UTC by NForce
Modified: 2010-11-10 20:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NForce 2009-12-22 22:51:29 UTC
Version:            (using Devel)
Compiler:          GCC 4.4.č 
OS:                Linux
Installed from:    Compiled sources

Windows moving and resizing is very slow and choppy. It is like that only if "Display window geometry when moving or resizing" option in "Window Behaviour" section is on, and only if compositing is on. KDE version is 4.3.85 (in 4.3.82 it was the same), compiled via gentoo kde overlay's ebuilds. Graphics card is ATI X1250, with latest xf86-video-ati driver from git, mesa 7.7rc4, kms off
Comment 1 Martin Flöser 2009-12-23 10:36:31 UTC

*** This bug has been marked as a duplicate of bug 208770 ***
Comment 2 NForce 2009-12-23 11:50:44 UTC
Hey, it's not duplicate. Bug 208770 is seen on 4.3.1, but for me, everything was OK until 4.3.80. On 4.3.0-4.3.4 everything was all right, but on 4.4 betas - no. And there is nothing about windows moving which is the worst case here
Comment 3 Martin Flöser 2009-12-23 12:01:27 UTC
And you are sure that this is not related to the fact that you use unstable drivers?
Comment 4 NForce 2009-12-23 12:13:33 UTC
Quite sure. Just compiled a stable version (6.12.4), and everything was the same. Actually, I am quite sure that it's related to KDE, because showing window geometry is just another kwin effect, isn't it? Because other kwin effects work fine
Comment 5 Martin Flöser 2009-12-23 12:28:03 UTC
no, show window geometry is not a kwin effect.

In fact that you say that moving windows is shown is slow is for me an indicator that it's related to X. Moving a window with compositing turned on is just moving a texture, so it's the same as for example present windows. With compositing turned off it's reasonable slower as all windows behind the moving window have to be repainted. So if it's slow with Compositing turned on it has to be X.
Comment 6 NForce 2009-12-23 12:34:51 UTC
Ok, but how could you explain that with compositing on, and showing geometry off, everything is nice and smooth?
Comment 7 Martin Flöser 2009-12-23 12:41:32 UTC
(In reply to comment #6)
> Ok, but how could you explain that with compositing on, and showing geometry
> off, everything is nice and smooth?
I have no idea - here it is fast. I neither use your distribution, nor your X Server, nor your kernel nor your hardware - so it's difficult to reproduce.

The option should not have any impact on the performance of moving. Could you please name your settings for the other options in Window Behaviour -> Moving.
Comment 8 NForce 2009-12-23 14:15:52 UTC
Tab Moving
	Windows:
		Display content in moving windows: on
		Display content in resizing windows: on
		Display window geometry when moving or resizing: if on bug is present, if off - bug is not there. Currently off
		Allow moving and resizing of maximized windows: off
	Snap zones:
		Border snap zone: 10 pixels
		Window snap zone: 10 pixels
		Center snap zone: none
		Snap windows only when overlapping: off
Comment 9 Martin Flöser 2009-12-23 14:23:20 UTC
ok that are the same options as I use. Can you try other combinations, e.g. Display content while moving off and display geometry on?
Comment 10 NForce 2009-12-23 14:28:50 UTC
Without content it's moving fast, but blinking a lot and leaving trail on the screen. And geometry box is laggy and choppy as before.
Comment 11 Thomas Lübking 2009-12-23 18:30:55 UTC
the geometry indicator has a heavy content update nature, maybe this stumbles your driver.
Have you watched cpu load on move/resize w/ geometry display?

I guess it makes quite some sense to implement this feature as desktop effect ;-)
Comment 12 NForce 2009-12-23 21:21:23 UTC
Yeah, kwin cpu load gets up to 22%, while without geometry box - up to 6%. But still I wonder why it was ok before >4.3.4
Comment 13 GODLiKE 2010-07-07 03:51:15 UTC
I see this bug also using NVIDIA hardware (9600GT). I use Gentoo, with KDE-4.5 beta2 (at least for now, until stable comes out), and have tried several Nvidia-drivers to no avail (currently using driver version 256).

If I disable the geometry box, everything moves fine. If I turn of compositing, everything moves fine. Even so, on a fresh newly opened X session, everything works as normal, but when some time passes (can't quite specify the time amount, but for example I was at work today and when I came back 9 hours later, it was like this), moving windows goes at 1fps or slower.

When moving and displaying the geometry box, CPU spikes really high (eats up one core of my E2180). I have 6GB of memory, so that shouldn't be a problem.

I see this behaviour both using the native QT4 backend or raster.
Comment 14 Thomas Lübking 2010-07-07 16:34:23 UTC
try this: http://kde-look.org/content/show.php?content=127177
Comment 15 Thomas Lübking 2010-11-10 20:21:32 UTC
SVN commit 1195300 by luebking:

add windowgeometry tip effect, bind it to the general setting and generalize effect feature provide api, thus update resize effect
BUG: 219755


 M  +2 -2      effects.cpp  
 M  +1 -1      effects.h  
 M  +1 -0      effects/CMakeLists.txt  
 M  +1 -1      effects/resize/resize.desktop  
 M  +1 -1      effects/resize/resize.h  
 A             effects/windowgeometry (directory)  
 A             effects/windowgeometry/CMakeLists.txt  
 A             effects/windowgeometry/windowgeometry.cpp   [License: GPL (v2+)]
 A             effects/windowgeometry/windowgeometry.desktop  
 A             effects/windowgeometry/windowgeometry.h   [License: GPL (v2+)]
 A             effects/windowgeometry/windowgeometry_config.cpp   [License: GPL (v2+)]
 A             effects/windowgeometry/windowgeometry_config.desktop  
 A             effects/windowgeometry/windowgeometry_config.h   [License: GPL (v2+)]
 A             effects/windowgeometry/windowgeometry_config.ui  
 M  +4 -2      geometry.cpp  
 M  +2 -0      kcmkwin/kwinoptions/windows.cpp  
 M  +5 -0      lib/kwineffects.cpp  
 M  +6 -1      lib/kwineffects.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1195300