don't SetParams constantly
This commit is contained in:
@@ -492,9 +492,12 @@ void GameSoundManager::Update( float fDeltaTime )
|
|||||||
}
|
}
|
||||||
|
|
||||||
RageSoundParams p = g_Playing->m_Music->GetParams();
|
RageSoundParams p = g_Playing->m_Music->GetParams();
|
||||||
|
if( p.m_Volume != fVolume )
|
||||||
|
{
|
||||||
p.m_Volume = fVolume;
|
p.m_Volume = fVolume;
|
||||||
g_Playing->m_Music->SetParams( p );
|
g_Playing->m_Music->SetParams( p );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( !g_UpdatingTimer )
|
if( !g_UpdatingTimer )
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user