From 2b30c1389e79b9b82ba34b0af453e3be370a42ad Mon Sep 17 00:00:00 2001 From: Simon Walton Date: Tue, 15 May 2018 14:30:08 -0700 Subject: [PATCH] Try reducing concurrent downloads for Android --- interface/src/Application.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 61ed5acdd2..69da4fa062 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -333,6 +333,7 @@ static bool DISABLE_DEFERRED = QProcessEnvironment::systemEnvironment().contains #endif static const int MAX_CONCURRENT_RESOURCE_DOWNLOADS = 16; +static const int MAX_CONCURRENT_RESOURCE_DOWNLOADS_LOWEND = 4; // For processing on QThreadPool, we target a number of threads after reserving some // based on how many are being consumed by the application and the display plugin. However, @@ -1314,7 +1315,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo bool success; int concurrentDownloads = concurrentDownloadsStr.toInt(&success); if (!success) { +#if !defined(Q_OS_ANDROID) concurrentDownloads = MAX_CONCURRENT_RESOURCE_DOWNLOADS; +#else + concurrentDownloads = MAX_CONCURRENT_RESOURCE_DOWNLOADS_LOWEND; +#endif } ResourceCache::setRequestLimit(concurrentDownloads);