From ec2c181f4eefc6af04d310a3348978e14e50a328 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 7 Sep 2018 17:30:43 -0700 Subject: [PATCH] Use 4 threads for fetching box art --- app/backend/boxartmanager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/backend/boxartmanager.cpp b/app/backend/boxartmanager.cpp index 80067f84..55d54a9b 100644 --- a/app/backend/boxartmanager.cpp +++ b/app/backend/boxartmanager.cpp @@ -9,7 +9,11 @@ BoxArtManager::BoxArtManager(QObject *parent) : m_BoxArtDir(Path::getBoxArtCacheDir()), m_ThreadPool(this) { - m_ThreadPool.setMaxThreadCount(1); + // 4 is a good balance between fast loading for large + // app grids and not crushing GFE with tons of requests + // and causing UI jank from constantly stalling to decode + // new images. + m_ThreadPool.setMaxThreadCount(4); if (!m_BoxArtDir.exists()) { m_BoxArtDir.mkpath("."); }