OSDN Git Service

Tweaked number of threads a bit.
authorLoRd_MuldeR <mulder2@gmx.de>
Sat, 2 Nov 2013 00:06:45 +0000 (01:06 +0100)
committerLoRd_MuldeR <mulder2@gmx.de>
Sat, 2 Nov 2013 00:06:45 +0000 (01:06 +0100)
src/Thread_Initialization.cpp

index 19e2827..1770bc9 100644 (file)
@@ -286,7 +286,7 @@ double InitializationThread::doInit(const size_t threadCount)
        QDir appDir = QDir(QCoreApplication::applicationDirPath()).canonicalPath();
 
        QThreadPool *pool = new QThreadPool();
-       pool->setMaxThreadCount((threadCount > 0) ? threadCount : qBound(2U, (m_cpuFeatures.count * 2U), EXPECTED_TOOL_COUNT));
+       pool->setMaxThreadCount((threadCount > 0) ? threadCount : qBound(2U, (m_cpuFeatures.count * 3U), EXPECTED_TOOL_COUNT));
        
        LockedFile::selfTest();
        ExtractorTask::clearFlags();