[PyQt] QGraphicsView very slow under Linux and Mac OS X
Vincent Vande Vyvre
vincent.vandevyvre at swing.be
Wed Apr 3 17:34:56 BST 2013
Le 03/04/13 17:28, Clemens Brunner a écrit :
> On 04/03/2013 04:23 PM, Hans-Peter Jansen wrote:
>
>> What you see is possibly related to the default Qt graphics engine:
>> when using:
>>
>> QT_GRAPHICSSYSTEM=opengl python graphicsviewtest.py
>>
>> the values are oscillating around 150 here. With "native" and
>> "raster", it's
>> back to 25: openSUSE 12.2/x86_64, 2560x1600x32, nvidia proprietary
>> graphics,
>
> That's what I suspected initially. However, my graphics engine was set
> to native by default. I just tried all three engines:
> * native: around 100ms
> * raster: around 100ms
> * opengl: greater than 300ms
>
> I tested it on Arch Linux x86_64, 1920x1080, python2 2.7.3-4, sip
> 4.14.5-1, qt4 4.8.4-16, python2-pyqt 4.10-1.
>
> That's really weird... I will try to set up an openSUSE box in my
> VirtualBox to see if that works.
>
> Clemens
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
Tested on Ubuntu, after removed the unusued import QtOpenGL.
-----------------------------------------------------------------------------------------
On a 32 bytes machine screen 1600x900
Python 2.6.5 on a 32 bytes machine
Qt 4.6.2
PyQt 4.7.2
....27 23 26 24 25 25 25 25 25 25 25 25 25 25 25 25 27 23 25 25 25 25
25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 26 24 26 24 26 24 26 24 26
24 26 24 26 24 25 26 24 25 25 25 25
-----------------------------------------------------------------------------------------
On a 64 bytes machine screen 1600x900
Python 2.7.3
Qt 4.8.1
PyQt 4.9.1
.... 25 25 25 25 25 25 25 25 25 25 25 25 25 25 26 24 25 25 25 25 25 25
25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25
25 25 25 25 25 25 25 25 25 25
Python 3.2.3
Qt 4.8.1
PyQt 4.9.1
.... 24 25 26 25 25 24 26 25 25 24 26 25 25 25 25 25 25 24 26 25 25 24
26 25 25 24 26 25 25 25 25 25 25 25 25 25 25 25 25 25
--------------------------------------------------------------------------------------------------------
All three test in full screen of course.
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
More information about the PyQt
mailing list