mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-13 04:42:27 +00:00
Use 4 threads for fetching box art
This commit is contained in:
parent
fae98eb13a
commit
ec2c181f4e
1 changed files with 5 additions and 1 deletions
|
@ -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(".");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue