From 6ef7f746e45e761b2e97ad15ce6c88edcb394c05 Mon Sep 17 00:00:00 2001 From: Vitor Vieira <155513369+VitorVieiraZ@users.noreply.github.com> Date: Fri, 9 Aug 2024 04:21:31 -0300 Subject: [PATCH] Optimize WFS layers handling on iOS (#3561) * new environment variable for ios * commenting issue --- app/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 3ddf8356a..d0c35cd24 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -459,6 +459,11 @@ int main( int argc, char *argv[] ) // See issue #3431 -> disable Android accessibility features to prevent ANRs qputenv( "QT_ANDROID_DISABLE_ACCESSIBILITY", "1" ); #endif +#ifdef Q_OS_IOS + // See issue #3561 -> WFS layers causing stress on iOS + qputenv( "QGIS_USE_SHARED_MEMORY_KEEP_ALIVE", "1" ); + qDebug() << "Setting QGIS_USE_SHARED_MEMORY_KEEP_ALIVE environment variable TRUE"; +#endif // AppSettings has to be initialized after QGIS app init (because of correct reading/writing QSettings). AppSettings as;