mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-04 00:36:36 +00:00
Use 4 threads for fetching box art
This commit is contained in:
parent
fae98eb13a
commit
ec2c181f4e
@ -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…
x
Reference in New Issue
Block a user