Be careful with HasBanner; it checks to see if the file exists, which involves
scanning the directory, and doing that to a whole group of songs can take a long time. (I have unfinished code to speed this up, but we don't need this particular call anyway ...)
This commit is contained in:
@@ -1109,8 +1109,8 @@ void MusicWheel::SetOpenGroup(CString group, SongSortOrder so)
|
||||
//
|
||||
// cache banners
|
||||
//
|
||||
if(from[i].HasBanner() && PREFSMAN->m_BannerCacheType == PREFSMAN->preload_group)
|
||||
TEXTUREMAN->CacheTexture( Banner::BannerTex(from[i].GetBanner()) );
|
||||
// if(from[i].HasBanner() && PREFSMAN->m_BannerCacheType == PREFSMAN->preload_group)
|
||||
// TEXTUREMAN->CacheTexture( Banner::BannerTex(from[i].GetBanner()) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user