Use the raster rendering engine by default on OSX
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 25 Mar 2014 22:13:21 +0000 (23:13 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 25 Mar 2014 22:21:24 +0000 (23:21 +0100)
Seems like using the raster engine fixes performance issues on OSX,
and there seem to be no noticeable side-effects compared to native
rendering. So let's use this by default.

If you notice issues, please let us know. Also, you can always enforce
native rendering via command line:

open Quassel\ Client.app -W --args -graphicssystem native

Thanks to rikai for figuring this out!

src/common/main.cpp

index b026d47..417ecff 100644 (file)
@@ -60,6 +60,11 @@ int main(int argc, char **argv)
     QCoreApplication::setOrganizationName(Quassel::buildInfo().organizationName);
     QCoreApplication::setOrganizationDomain(Quassel::buildInfo().organizationDomain);
 
+    // on OSX with Qt4, raster seems to fix performance issues
+#if QT_VERSION < 0x050000 && defined Q_OS_MAC && !defined BUILD_CORE
+    QApplication::setGraphicsSystem("raster");
+#endif
+
     AbstractCliParser *cliParser;
 
 #ifdef HAVE_KDE