Moved the System view preloading to the correct location.

This commit is contained in:
Leon Styhre 2021-12-08 19:57:31 +01:00
parent 7c366d776e
commit 80555eb7a3

View file

@ -938,6 +938,10 @@ void ViewController::preload()
{
unsigned int systemCount = static_cast<int>(SystemData::sSystemVector.size());
// This reduces the amount of texture pop-in when loading theme extras.
if (!SystemData::sSystemVector.empty())
getSystemListView();
for (auto it = SystemData::sSystemVector.cbegin(); it != SystemData::sSystemVector.cend();
++it) {
if (Settings::getInstance()->getBool("SplashScreen") &&
@ -949,9 +953,6 @@ void ViewController::preload()
}
(*it)->getIndex()->resetFilters();
// This makes sure we avoid texture pop-in when loading theme extras.
getSystemListView();
if (Settings::getInstance()->getBool("PreloadGamelists"))
getGameListView(*it)->preloadGamelist();
else