limit searching to 16 beats
This commit is contained in:
@@ -708,6 +708,7 @@ float FindLastDisplayedBeat( const PlayerState* pPlayerState, int iDrawDistanceB
|
|||||||
// Adjust search distance so that notes don't pop onto the screen.
|
// Adjust search distance so that notes don't pop onto the screen.
|
||||||
float fSearchDistance = 10;
|
float fSearchDistance = 10;
|
||||||
float fLastBeatToDraw = GetDisplayedPosition(pPlayerState)->m_fSongBeat+fSearchDistance;
|
float fLastBeatToDraw = GetDisplayedPosition(pPlayerState)->m_fSongBeat+fSearchDistance;
|
||||||
|
float fSpeedMultiplier = GetDisplayedTiming(pPlayerState)->GetDisplayedSpeedPercent(GetDisplayedPosition(pPlayerState)->m_fSongBeatVisible, GetDisplayedPosition(pPlayerState)->m_fMusicSecondsVisible);
|
||||||
|
|
||||||
const int NUM_ITERATIONS = 20;
|
const int NUM_ITERATIONS = 20;
|
||||||
|
|
||||||
@@ -733,6 +734,11 @@ float FindLastDisplayedBeat( const PlayerState* pPlayerState, int iDrawDistanceB
|
|||||||
fSearchDistance /= 2;
|
fSearchDistance /= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( fSpeedMultiplier < 0.75 )
|
||||||
|
{
|
||||||
|
fLastBeatToDraw = min(fLastBeatToDraw, GetDisplayedPosition(pPlayerState)->m_fSongBeat + 16);
|
||||||
|
}
|
||||||
|
|
||||||
return fLastBeatToDraw;
|
return fLastBeatToDraw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user