trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: November 2011

Workaround for bad Qt4 performance

From: Sanne <sanne@...>
Date: Tue, 15 Nov 2011 20:13:58 +0100
Hi all,

I was listening in on the last irc meeting and caught an aftermeeting 
mentioning about bad Qt4 performance. I offered an article and a possible 
workaround I found recently, in case people are not aware of it, and was 
asked to bring it to attention to other developers also, so here goes:

I'm suffering bad graphical performance in Qt4 and PyQt4 applications and 
searched for solutions. I found a post on nokia.com [1] that mentions a 
command line switch that might help.

In short: adding "-graphicssystem raster" to my Qt4 applications' command line 
improved performance drastically for me. There's also a method to set it 
programmatically, and an environment variable [2].

[1] http://labs.qt.nokia.com/2008/10/22/so-long-and-thanks-for-the-blit/
[2] http://doc.qt.nokia.com/4.7/qapplication.html#setGraphicsSystem

Thanks and much regards,
Sanne