Add an option to preload all banners. This adds to the screen load
time, but makes the actual screen much cleaner. Add an option to disable banner preloading completely, to remove all long waits completely. Don't ChangeBannersWhenFast if we're set to this.
This commit is contained in:
@@ -475,6 +475,16 @@ void MusicWheel::BuildWheelItemDatas( vector<WheelItemData> &arrayWheelItemDatas
|
||||
ASSERT(0); // invalid PlayMode
|
||||
}
|
||||
|
||||
if(PREFSMAN->m_BannerCacheType == PREFSMAN->preload_all)
|
||||
{
|
||||
for( i=0; i<arrayWheelItemDatas.size(); i++ )
|
||||
{
|
||||
WheelItemData& WID = arrayWheelItemDatas[i];
|
||||
if(WID.HasBanner())
|
||||
TEXTUREMAN->CacheTexture( Banner::BannerTex(WID.GetBanner()) );
|
||||
}
|
||||
}
|
||||
|
||||
// init music status icons
|
||||
for( i=0; i<arrayWheelItemDatas.size(); i++ )
|
||||
{
|
||||
@@ -1048,7 +1058,7 @@ void MusicWheel::SetOpenGroup(CString group, SongSortOrder so)
|
||||
//
|
||||
// cache banners
|
||||
//
|
||||
if(from[i].HasBanner())
|
||||
if(from[i].HasBanner() && PREFSMAN->m_BannerCacheType == PREFSMAN->preload_group)
|
||||
TEXTUREMAN->CacheTexture( Banner::BannerTex(from[i].GetBanner()) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user