Don't fade between random movies. It causes slowdown during the fades, especially on slower machines.

This commit is contained in:
Chris Danford
2003-06-22 17:46:31 +00:00
parent cb3092e70d
commit f339dd9d00
+7 -2
View File
@@ -289,8 +289,13 @@ void Background::LoadFromSong( Song* pSong )
if( bLoadedAnyRandomBackgrounds )
{
CString sBGName = RandomBackground( ctr );
bool bFade = PREFSMAN->m_BackgroundMode==PrefsManager::BGMODE_RANDOMMOVIES ||
PREFSMAN->m_BackgroundMode==PrefsManager::BGMODE_MOVIEVIS;
// Don't fade. It causes frame rate dip, especially on
// slower machines.
bool bFade = false;
//bool bFade = PREFSMAN->m_BackgroundMode==PrefsManager::BGMODE_RANDOMMOVIES ||
// PREFSMAN->m_BackgroundMode==PrefsManager::BGMODE_MOVIEVIS;
m_aBGChanges.push_back( BackgroundChange(f,sBGName,1.f,bFade) );
ctr = (ctr+1)%PREFSMAN->m_iNumBackgrounds;
}