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:
Glenn Maynard
2003-06-18 20:39:04 +00:00
parent 6f4a5af3b9
commit 854bb37ade
+2 -2
View File
@@ -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()) );
}