Martin Gräßlin
44ad9f6ca7
Make snow behind windows the default as it is much nicer.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=893187
2008-12-06 09:12:33 +00:00
Lucas Murray
5413d0ec5d
SVN_SILENT Cleaned up recent commits.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=892363
2008-12-04 09:02:21 +00:00
Martin Gräßlin
39d23a7ab3
Do not activate OpenGL only effects in XRender mode.
...
BUG: 176617
svn path=/trunk/KDE/kdebase/workspace/; revision=892361
2008-12-04 08:47:07 +00:00
Martin Gräßlin
3150cb2631
Implement clipping of snow flakes in fragment shader. This fixes painting the flakes several times in multi screen setup as well as during active desktop grid effect. Also honour translations and scaling of the desktop and re-enabling snow during active full screen effect.
...
BUG: 176489
svn path=/trunk/KDE/kdebase/workspace/; revision=892202
2008-12-03 19:46:20 +00:00
Martin Gräßlin
b9fd1e6d10
* Update the snow flakes only once per frame. This fixes the problem of faster snow flakes if there are more then one screens.
...
* Disable snow effect if there is an active full screen effect as it causes some problems. E.g. in desktop grid the snow flakes are painted several times and by that look terrible.
CCBUG: 176489
svn path=/trunk/KDE/kdebase/workspace/; revision=890836
2008-11-30 13:11:11 +00:00
Lucas Murray
6d41a1320e
Moved all debug, warning and error messages into the KWin 1212 area.
...
Replaced deprecated kdDebug() with kDebug().
Removed empty debug messages.
svn path=/trunk/KDE/kdebase/workspace/; revision=885620
2008-11-17 15:04:52 +00:00
Martin Gräßlin
e1d4d50cd6
Some more optimizations to snow effect:
...
* move position updates of flakes to shader
* remove the for-loop which updates the flakes. This is handled in the loop for painting the flakes
* Don't test in each frame if a flake is on the screen. Precalculate the number of frames when then flake is on the screen and count the flakes.
* Set PAINT_SCREEN_TRANSFORMED
* Remove all unneeded code (like a QTime object when we already get the time in the method)
Now it takes ~ 17 % of CPU usage on my system. Seems to be the maximum of what is possible.
svn path=/trunk/KDE/kdebase/workspace/; revision=884305
2008-11-14 16:18:34 +00:00
Martin Gräßlin
8ecaefebcc
Adding optional shader to snow effect. Shader is used when hardware support is available.
...
Using shader reduces CPU load from approximately 50 % to less than 20 % on my system.
svn path=/trunk/KDE/kdebase/workspace/; revision=883348
2008-11-12 18:38:36 +00:00
Martin Gräßlin
9f96d84a12
Option to snow behind windows and small performance improvement by using a glList
...
svn path=/trunk/KDE/kdebase/workspace/; revision=882720
2008-11-11 11:31:12 +00:00
Enrique Matías Sánchez
f5efd9ca28
SVN_SILENT Fix typos in kdebase
...
svn path=/trunk/KDE/kdebase/workspace/; revision=875089
2008-10-23 09:31:44 +00:00
Lucas Murray
4982bb9909
Added improvements to the snow effect. Patch by Torgny Johansson.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=870683
2008-10-13 03:29:07 +00:00
Luboš Luňák
1d2c54edcc
Support for proper effect reconfiguration instead of reloading them.
...
Fixes e.g. the global animation combo not taking effect.
svn path=/trunk/KDE/kdebase/workspace/; revision=866903
2008-10-02 09:27:32 +00:00
Luboš Luňák
cff2b0e6cd
Abstract paint clipping into PaintClipper helper class that allows
...
stacking of clipping regions.
(http://lists.kde.org/?l=kwin&m=120138051215450&w=2 )
BUG: 156798
svn path=/trunk/KDE/kdebase/workspace/; revision=779045
2008-02-25 11:32:21 +00:00
Luboš Luňák
a6fbe3d13e
Snow effect from Martin Graesslin <ubuntu@martin-graesslin.com>.
...
svn path=/trunk/KDE/kdebase/workspace/; revision=758626
2008-01-08 15:47:31 +00:00