Commit graph

8 commits

Author SHA1 Message Date
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
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
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
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
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