[Qt-interest] Xorg performance
Matthew Fincham
matthewf at cat.co.za
Tue May 25 16:16:43 CEST 2010
On 25-05-10 16:04, Matthew Fincham wrote:
> Hi
>
> I am having performance trouble with the Qt4/Xorg combination.
> I have reduced it to a simple widget with a 40ms timer and an empty
> paint event. An update is called whenever the timer activates.
> This results in Xorg using 50-100% CPU, with the CPU usage varying
> depending on the size of the widget (See the test program listed below).
>
> OS: NetBSD 4
> Qt: 4.6.2
> Xorg: 1.3.0 (using XAA)
>
> Clearly there is a problem with this configuration. Does anyone know
> what it could be?
>
> Many thanks
> Matthew Fincham
Further investigation has found that using the command line option
"-graphicssystem raster" improves the performance dramatically.
The downside to this is that the application I am working on uses
"qt_x11Handler(QPaintDevice*)" to resolve a drawable for a QPaintDevice
and this is returning 0 in this mode.
Any hints would be appreciated.
Thanks again.
Matthew Fincham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100525/b91f415e/attachment.html
More information about the Qt-interest-old
mailing list