Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Please test raster engine on Qt packages
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Wed Mar 03, 2010 12:47 pm    Post subject: Reply with quote

The qt-apps I use frequently are:
Konsole
Kompare
KRDC
vlc
amarok
kate
and they work fine.
Konsole has behaved slightly wierd, and at some point was just a grey window, but nothing reproducible yet, not sure if it's related to raster.
Back to top
View user's profile Send private message
Hwoarang
Developer
Developer


Joined: 24 Feb 2007
Posts: 701
Location: Leeds, UK

PostPosted: Thu Mar 04, 2010 6:51 am    Post subject: Reply with quote

I just enabled raster on my laptop (4.6.2). Everything works as expected to, with a little performance improvement

I use latest ~X and Intel video card
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 147

PostPosted: Thu Mar 04, 2010 7:15 am    Post subject: Reply with quote

Note that "-graphicssystem native"* can be driver-dependent. With some drivers, it might be faster than raster. This created a bit of confusion in the kdevelop mailing list when they wanted to decide whether they should stop forcing raster. I think most Intel people were seeing faster results with raster, while ATI and NVidia people were reporting native works faster.
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Thu Mar 04, 2010 8:01 am    Post subject: Reply with quote

RealNC wrote:
Note that "-graphicssystem native"* can be driver-dependent. With some drivers, it might be faster than raster. This created a bit of confusion in the kdevelop mailing list when they wanted to decide whether they should stop forcing raster. I think most Intel people were seeing faster results with raster, while ATI and NVidia people were reporting native works faster.

Being a nvidia user, that could explain why I don't see any noticeable performance improvement.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1580

PostPosted: Thu Mar 04, 2010 1:34 pm    Post subject: Reply with quote

RealNC wrote:
Note that "-graphicssystem native"* can be driver-dependent. With some drivers, it might be faster than raster. This created a bit of confusion in the kdevelop mailing list when they wanted to decide whether they should stop forcing raster. I think most Intel people were seeing faster results with raster, while ATI and NVidia people were reporting native works faster.


I have nvidia, and as I said, raster is significantly faster, especially for Konqueror.

01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Thu Mar 04, 2010 2:13 pm    Post subject: Reply with quote

I haven't noticed anything else, but I decided to try out konqueror on kde.org. And yes, there may be a slight speed increase with raster. For me it's small enough however that I'm not really certain it's actually there.
Code:
# lspci | grep -i vga
01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GTS 512] (rev a2)
Are there any qt benchmarks one can run to determine if there's a difference?
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1558
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Thu Mar 04, 2010 3:44 pm    Post subject: Reply with quote

I've always used the default (native) and have had good performance and no rendering issues with normal applications and only occasionally with the show/hide icon on the panel tray which was a bug resolved or just a bad config at the time. Using nvidia w/ nvidia opengl with a 9500gt card and e6600 on ~amd64.

Does anyone have any ram usage numbers comparing native and raster? Lower numbers there would make me consider it if everything else was equal or better too since things are working very well right now.

I've also noticed on a lot of applications I've tried that the "-graphicssystem" switch doesn't even work and this includes actual Qt apps so it makes testing a bit hit and miss.
_________________
#gentoo-kde on freenode
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 147

PostPosted: Thu Mar 04, 2010 4:04 pm    Post subject: Reply with quote

firephoto wrote:
I've also noticed on a lot of applications I've tried that the "-graphicssystem" switch doesn't even work and this includes actual Qt apps so it makes testing a bit hit and miss.


It should work on all of them. To test, pass an invalid value, like "-graphicssystem lol". You'll get an error message that this engine doesn't exist. Also, it's a common mistake to use "--" instead of "-". Only use one dash.
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1558
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Thu Mar 04, 2010 6:05 pm    Post subject: Reply with quote

****edited*

never mind, it was a typo. too many s's
_________________
#gentoo-kde on freenode


Last edited by firephoto on Thu Mar 04, 2010 8:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
RealNC
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2008
Posts: 147

PostPosted: Thu Mar 04, 2010 6:13 pm    Post subject: Reply with quote

kwrite works here:

Code:
kwrite -graphicssystem lol
Unable to load graphicssystem "lol"


So it's recognized.

I don't have the other apps installed though.
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 396
Location: Venice FL

PostPosted: Thu Mar 04, 2010 8:25 pm    Post subject: Reply with quote

Something I have noticed since using raster is when your select something like Save or Save As from the file menu (try it in kwrite) and you mouse over the list of directories and files the text will move about a bit as the pointer passes over them.

I added the raster use flag, so with -graphicssystem native on kwrite as an example the anomaly is not present.

George
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1558
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Thu Mar 04, 2010 8:38 pm    Post subject: Reply with quote

It was just a typo here.

Is there a reason for this change? To me it seems more of a compensation for poor graphics drivers and also isn't something recommended by upstream. Something that set the option in the environment for graphics drivers where appropriate would seem like a better solution rather than shifting the breakage to different users (by default).
_________________
#gentoo-kde on freenode
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1580

PostPosted: Thu Mar 04, 2010 8:47 pm    Post subject: Reply with quote

firephoto wrote:
It was just a typo here.

Is there a reason for this change? To me it seems more of a compensation for poor graphics drivers and also isn't something recommended by upstream. Something that set the option in the environment for graphics drivers where appropriate would seem like a better solution rather than shifting the breakage to different users (by default).


If I understand it correctly, it's a compensation for slow X library operations - instead of telling X to draw different shapes using generic functions, they are doing the drawings themselves and then tell X to just paint the whole pixmap. I could be wrong, though.
Back to top
View user's profile Send private message
gami
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 297

PostPosted: Fri Mar 05, 2010 7:26 am    Post subject: Reply with quote

While for most people enabling "-graphicssystem raster" by default will probably result in a better performance on the local machine, there's one serious drawback when running applications over the network. I regularly run desktop sessions over NoMachine's NX (e.g. net-misc/nxserver-freenx, net-misc/nxserver-freeedition). Due to the nature of the raster backend, I see a huge increase of the required bandwidth in konqueror, as essentially everything is transferred as bitmap data. The native backend uses the X11 protocol to signal that different text glyphs need to be displayed, which for text heavy applications is much less bandwidth intensive.

It's a case of you win some, you loose some, I guess...
Back to top
View user's profile Send private message
Ormaaj
Guru
Guru


Joined: 28 Jan 2008
Posts: 312

PostPosted: Tue Mar 09, 2010 11:18 am    Post subject: Reply with quote

How can I quickly globally toggle this? Is the only way to recompile qt-gui with the raster use flag? I am also having issues with NX being very slow, but raster has advantages when running applications locally. It would be nice to be able to log in locally and have all qt applications automatically started in raster, and logging in remotely runs QT with the native renderer.
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Tue Mar 09, 2010 1:58 pm    Post subject: Reply with quote

Ormaaj wrote:
How can I quickly globally toggle this? Is the only way to recompile qt-gui with the raster use flag?

I believe the global enable is qt-gui +raster, yes.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1580

PostPosted: Tue Mar 09, 2010 7:43 pm    Post subject: Reply with quote

Ormaaj wrote:
How can I quickly globally toggle this? Is the only way to recompile qt-gui with the raster use flag? I am also having issues with NX being very slow, but raster has advantages when running applications locally. It would be nice to be able to log in locally and have all qt applications automatically started in raster, and logging in remotely runs QT with the native renderer.


It's a bit hard to tell for me, but try running the application with "-graphicssystem native" (all KDE (at least) applications take that), and see if it actually switches.
Back to top
View user's profile Send private message
Olis
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2004
Posts: 124
Location: Germany

PostPosted: Wed Mar 10, 2010 5:56 am    Post subject: Re: Please test raster engine on Qt packages Reply with quote

Hwoarang wrote:
Qt team is considering to enable raster graphics engine[1] by default on Qt packages ( that is qt-gui ). In order to proceed, we need you to enable this use flag, rebuild qt-gui, as well as testing as many Qt apps as you can. Please report possible bugs related to this graphics backend directly to this thread or gentoo bugzilla

Unfortunately I found a problem with vmware-workstation-6.5.3.185404. I'm using it to run some (last) Windows application where I haven't found a Linux counterpart yet.

After compiling qt-gui with the "raster" flag I got two mouse pointers when moving the mouse in the lower part of the Windows session and I wasn't able to select the start button etc. any more. It looked as if I had moved the mouse outside of the window already.

Calling /opt/vmware/workstation/bin/vmware with "-graphicssystem native" doesn't help as this is just a bash script which calls the binary via a function defined in another script. So I would have to modify files that are installed with the application.

When compiling qt-gui without "raster" flag VMware Workstation works without problems.

I haven't upgraded to the current version 7 yet since this is not even in portage at the moment.

Oliver
Back to top
View user's profile Send private message
ewaller
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 263
Location: Pasadena, CA

PostPosted: Wed Mar 10, 2010 6:31 am    Post subject: Reply with quote

Hey!!

That fixed the problem I described here: http://forums.gentoo.org/viewtopic-t-818636-highlight-.html

It not only fixed the texture rendering problem with qt4/examples/opengl/textures, It fixed my program so that it works again *and* the
error message
Code:
WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported!  This is an application bug!
is gone.

Cool.
_________________
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Back to top
View user's profile Send private message
Ormaaj
Guru
Guru


Joined: 28 Jan 2008
Posts: 312

PostPosted: Wed Mar 10, 2010 11:09 pm    Post subject: Reply with quote

AM088 wrote:
Ormaaj wrote:
How can I quickly globally toggle this? Is the only way to recompile qt-gui with the raster use flag? I am also having issues with NX being very slow, but raster has advantages when running applications locally. It would be nice to be able to log in locally and have all qt applications automatically started in raster, and logging in remotely runs QT with the native renderer.


It's a bit hard to tell for me, but try running the application with "-graphicssystem native" (all KDE (at least) applications take that), and see if it actually switches.
I realize you can run individual QT applications with that option. It does work AFAICT. However, I want to do something like set it in the environment so that all QT applications will temporararily run with a specific renderer depending upon whether you are logged in locally or remotely without having to change the useflag and recompile qt-gui.

(I use NX server just about every day depending on whether i'm at school or home, and raster/native have significant performance advantages depending.)
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Thu Mar 11, 2010 7:07 am    Post subject: Reply with quote

Ormaaj wrote:
I want to do something like set it in the environment so that all QT applications will temporararily run with a specific renderer depending upon whether you are logged in locally or remotely without having to change the useflag and recompile qt-gui.


This is just an idea. It's not tested, it's not correct, and may not help at all if you use the K-menu. But it could be something to get you started.
Code:
for file in `find /usr/bin/ -type f`; do
        USEQT=$(ldd $file 2>&1 | grep -v "error" | grep -v "warning" | grep -c QtGui)
        if [ "$USEQT" -gt 0 ]; then
                echo "alias $file $file -graphicssystem native"
        fi
done

Pipe the output to a file, and source it when necessary. Hope that can help you.
Back to top
View user's profile Send private message
Olis
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2004
Posts: 124
Location: Germany

PostPosted: Mon Mar 15, 2010 5:59 am    Post subject: Re: Please test raster engine on Qt packages Reply with quote

Olis wrote:
Unfortunately I found a problem with vmware-workstation-6.5.3.185404. I'm using it to run some (last) Windows application where I haven't found a Linux counterpart yet.

After compiling qt-gui with the "raster" flag I got two mouse pointers when moving the mouse in the lower part of the Windows session and I wasn't able to select the start button etc. any more. It looked as if I had moved the mouse outside of the window already.

Ok, this isn't related to qt-gui it seems. I suddenly got the same problem again yesterday, although qt-gui was compiled without raster flag.

Searching the forum I found that it was a GTK problem. I now have VMWARE_USE_SHIPPED_GTK set to yes, recompiled qt-gui with raster flag and everything is still fine :-)

So forget about my report, no problems with raster flag at the moment.

Oliver
Back to top
View user's profile Send private message
aCOSwt
Veteran
Veteran


Joined: 19 Oct 2007
Posts: 1509
Location: Between the keyboard and the chair

PostPosted: Mon May 23, 2011 9:45 am    Post subject: Reply with quote

What is the status about this with qt 4.7 ?
I see that raster still not defaults to on,
Is the idea abandonned ? OpenGL finally to be preferred ? :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum