mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-03-04 22:57:14 +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_BoxArtDir(Path::getBoxArtCacheDir()),
|
||||||
m_ThreadPool(this)
|
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()) {
|
if (!m_BoxArtDir.exists()) {
|
||||||
m_BoxArtDir.mkpath(".");
|
m_BoxArtDir.mkpath(".");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue