From f339dd9d00812981e5a8a4ec07717b7108912589 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 22 Jun 2003 17:46:31 +0000 Subject: [PATCH] Don't fade between random movies. It causes slowdown during the fades, especially on slower machines. --- stepmania/src/Background.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index 6a47fb4174..bdf13a75b2 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -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; }