make ActiveAttackList update faster
This commit is contained in:
@@ -32,10 +32,11 @@ void ActiveAttackList::Update( float fDelta )
|
|||||||
BitmapText::Update( fDelta );
|
BitmapText::Update( fDelta );
|
||||||
|
|
||||||
// refresh text only once every 1/2 second
|
// refresh text only once every 1/2 second
|
||||||
float fNowSeconds = RageTimer::GetTimeSinceStart()*2;
|
float fNowSeconds = RageTimer::GetTimeSinceStart();
|
||||||
float fLastSeconds = RageTimer::GetTimeSinceStart()*2 - fDelta;
|
float fLastSeconds = RageTimer::GetTimeSinceStart() - fDelta;
|
||||||
|
bool bTimeToUpdate = froundf(fNowSeconds,0.5f) != froundf(fLastSeconds,0.5f);
|
||||||
|
|
||||||
if( (int)fNowSeconds != (int)fLastSeconds )
|
if( bTimeToUpdate )
|
||||||
{
|
{
|
||||||
CString s;
|
CString s;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user