From 8f0d1023a48ff32c84d01f7a510143a3c35902e7 Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Thu, 17 Jan 2019 21:47:59 +0100 Subject: [PATCH] Use threaded renderer by default in linux. This improves performances. --- app/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 650b810..fd41236 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -33,6 +33,10 @@ int main(int argc, char *argv[]) // This disables QT appmenu under Ubuntu, which is not working with QML apps. setenv("QT_QPA_PLATFORMTHEME", "", 1); +#if defined (Q_OS_LINUX) + setenv("QSG_RENDER_LOOP", "threaded", 0); +#endif + #if defined(Q_OS_MAC) // This allows UTF-8 characters usage in OSX. setenv("LC_CTYPE", "UTF-8", 1);