Re: Re: OpenGL and Plasma::Wallpaper

2012-01-01 Thread Martin Gräßlin
On Saturday 31 December 2011 12:10:37 Shaun Reich wrote:
 On Sat, Dec 31, 2011 at 5:17 AM, Martin Gräßlin mgraess...@kde.org wrote:
  On Thursday 29 December 2011 11:21:36 Justin L. Boss wrote:
  Personally I am not a big fan of having animations which would require
  OpenGL in the background. Most of the time the background is not visible,
  it requires resources and puts load on the compositor which has to update
  the scene although nothing changes (full repaints are most expensive).
 
  May I ask why you want to use OpenGL?

 Probably because QPainter is dog slow.
using OpenGL doesn't make it faster if you need QPainter to render to the
background ;-)

 Also, I don't think you should be against OGL wallpapers, considering
 some really sweet/impressive things could be done with them which
 could really make KDE stand out. e.g. a wallpaper playing a moving OGL
 scene, movies, virus wallpaper (which is currently a large CPU drain,
 and has no HW accel afik). Take Win 7 for instance, how they have
 Dreamscene™ or whatever.
I divide the world into two categories: good for KWin, bad for KWin. An
animated wallpaper is bad for KWin as it needs to update everything all the
time. In that sense it does not matter whether the wallpaper uses OpenGL or
something else. If it is animated than it is bad.

This is of course orthogonal to what it provides: being awesome. KWin has also
the being awesome things which are in fact bad for KWin. But what's the
difference? Nobody tries to use the desktop while the cube is spinning. It
just doesn't matter that KWin is using lots of resources.

In case of a wallpaper covered by windows it does matter whether the
background makes everything slow or not. So here I just think we should not
give users the tool to make the desktop unbearable slow. Yes it looks awesome,
yes new users might love it. Yes new users will switch back to whatever they
used, because everything is extremely slow.

So unless our wallpapers learn to not redraw the areas which are not visible
anyway (which is probably impossible to know for the wallpaper), I am not a
fan of animated wallpapers in general.

Just for the record: using always animated wallpapers should perform better
thanks to optimizations in 4.8.

Cheers
Martin

signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Re: OpenGL and Plasma::Wallpaper

2012-01-01 Thread Shaun Reich
On Sun, Jan 1, 2012 at 12:54 PM, Martin Gräßlin mgraess...@kde.org wrote:
 On Saturday 31 December 2011 12:10:37 Shaun Reich wrote:
 On Sat, Dec 31, 2011 at 5:17 AM, Martin Gräßlin mgraess...@kde.org wrote:
  On Thursday 29 December 2011 11:21:36 Justin L. Boss wrote:
  Personally I am not a big fan of having animations which would require
  OpenGL in the background. Most of the time the background is not visible,
  it requires resources and puts load on the compositor which has to update
  the scene although nothing changes (full repaints are most expensive).
 
  May I ask why you want to use OpenGL?

 Probably because QPainter is dog slow.
 using OpenGL doesn't make it faster if you need QPainter to render to the
 background ;-)

Aaw, I was hoping using OGL/qml and what not would remove the need to
go through QPainter at all. If only...

 So unless our wallpapers learn to not redraw the areas which are not visible
 anyway (which is probably impossible to know for the wallpaper), I am not a
 fan of animated wallpapers in general.

 Just for the record: using always animated wallpapers should perform better
 thanks to optimizations in 4.8.

Cools.


-- 
Shaun Reich,
KDE Software Developer (kde.org)
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Re: Re: OpenGL and Plasma::Wallpaper

2012-01-01 Thread Martin Gräßlin
On Sunday 01 January 2012 13:37:45 Shaun Reich wrote:
 On Sun, Jan 1, 2012 at 12:54 PM, Martin Gräßlin mgraess...@kde.org wrote:
  On Saturday 31 December 2011 12:10:37 Shaun Reich wrote:
  On Sat, Dec 31, 2011 at 5:17 AM, Martin Gräßlin mgraess...@kde.org
wrote:
   On Thursday 29 December 2011 11:21:36 Justin L. Boss wrote:
   Personally I am not a big fan of having animations which would require
   OpenGL in the background. Most of the time the background is not
   visible,
   it requires resources and puts load on the compositor which has to
   update
   the scene although nothing changes (full repaints are most expensive).
  
   May I ask why you want to use OpenGL?
 
  Probably because QPainter is dog slow.
 
  using OpenGL doesn't make it faster if you need QPainter to render to the
  background ;-)

 Aaw, I was hoping using OGL/qml and what not would remove the need to
 go through QPainter at all. If only...
it will with QML2 and the OpenGL SceneGraph :-)

signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


OpenGL and Plasma::Wallpaper

2011-12-31 Thread Justin L. Boss
Is there a way to use opengl in a Plasma::Wallpaper. Maybe by passing a opengl 
surface to QPainter then having Plasma::Wallpaper display it or does the 
Plasma::Wallpaper except opengl calls?

Thanks for your thoughts.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: OpenGL and Plasma::Wallpaper

2011-12-31 Thread Martin Gräßlin
On Thursday 29 December 2011 11:21:36 Justin L. Boss wrote:
 Is there a way to use opengl in a Plasma::Wallpaper. Maybe by passing a
 opengl surface to QPainter then having Plasma::Wallpaper display it or does
 the Plasma::Wallpaper except opengl calls?
You could do the same as the GLApplet [1] does: paint to a PBO or FBO, convert 
it to QImage and render the image. But this looks like a memory intensive 
operation and probably not a good idea.

My recommendation would be to wait till we have QML 2 where everything is done 
in OpenGL :-)

Personally I am not a big fan of having animations which would require OpenGL 
in the background. Most of the time the background is not visible, it requires 
resources and puts load on the compositor which has to update the scene 
although nothing changes (full repaints are most expensive).

May I ask why you want to use OpenGL?

Cheers
Martin


[1] 
https://projects.kde.org/projects/kde/kdelibs/repository/revisions/master/entry/plasma/glapplet.cpp

signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: OpenGL and Plasma::Wallpaper

2011-12-31 Thread Shaun Reich
On Sat, Dec 31, 2011 at 5:17 AM, Martin Gräßlin mgraess...@kde.org wrote:
 On Thursday 29 December 2011 11:21:36 Justin L. Boss wrote:
 Personally I am not a big fan of having animations which would require OpenGL
 in the background. Most of the time the background is not visible, it requires
 resources and puts load on the compositor which has to update the scene
 although nothing changes (full repaints are most expensive).

 May I ask why you want to use OpenGL?

Probably because QPainter is dog slow.

Also, I don't think you should be against OGL wallpapers, considering
some really sweet/impressive things could be done with them which
could really make KDE stand out. e.g. a wallpaper playing a moving OGL
scene, movies, virus wallpaper (which is currently a large CPU drain,
and has no HW accel afik). Take Win 7 for instance, how they have
Dreamscene™ or whatever.

Having features like this is similar to having neat and incredibly
useless OGL window animations (e.g. cube), ergo...everybody wants
them, haha ;)

-- 
Shaun Reich,
KDE Software Developer (kde.org)
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel