don't update g_bAllowVivid several times each frame
This commit is contained in:
@@ -73,8 +73,6 @@ int NoteDisplay::GetTapFrameNo( const float fNoteBeat )
|
|||||||
fBeatFraction = froundf( fBeatFraction, 0.25f );
|
fBeatFraction = froundf( fBeatFraction, 0.25f );
|
||||||
int iBeatFractionContrib = fBeatFraction * iNumFrames;
|
int iBeatFractionContrib = fBeatFraction * iNumFrames;
|
||||||
|
|
||||||
g_bAllowVivid = GAMEMAN->GetMetricB( "NoteDisplay", "AllowVivid" );
|
|
||||||
|
|
||||||
int iFrameNo;
|
int iFrameNo;
|
||||||
if( g_bAllowVivid && GAMESTATE->m_PlayerOptions[m_PlayerNumber].m_ColorType == PlayerOptions::COLOR_VIVID )
|
if( g_bAllowVivid && GAMESTATE->m_PlayerOptions[m_PlayerNumber].m_ColorType == PlayerOptions::COLOR_VIVID )
|
||||||
iFrameNo = (iSongBeatFrameContrib + iBeatFractionContrib) % iNumFrames;
|
iFrameNo = (iSongBeatFrameContrib + iBeatFractionContrib) % iNumFrames;
|
||||||
|
|||||||
Reference in New Issue
Block a user