Skip to content

Commit 568d9fe

Browse files
author
Sam Feeney
committed
stopped notedisplay::update from doing nothing millions of times a minute
1 parent 73ef312 commit 568d9fe

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/NoteField.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,18 @@ void NoteField::Update( float fDeltaTime )
348348
// Update fade to failed
349349
m_pCurDisplay->m_ReceptorArrowRow.SetFadeToFailPercent( m_FieldRenderArgs.fail_fade );
350350

351-
NoteDisplay::Update( fDeltaTime );
351+
/* No idea what this is supposed to be doing but it seems to be doing an awful lot of
352+
absolutely nothing at an awfully quick rate. Noteskins are fine... 3d noteskins are
353+
fine... mod maps are fine. Welp - Mina */
354+
355+
//NoteDisplay::Update(fDeltaTime);
352356
/* Update all NoteDisplays. Hack: We need to call this once per frame, not
353-
* once per player. */
357+
* once per player. */
354358
// TODO: Remove use of PlayerNumber.
355359

356-
PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
357-
if( pn == GAMESTATE->GetMasterPlayerNumber() )
358-
NoteDisplay::Update( fDeltaTime );
360+
/* PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
361+
if (pn == GAMESTATE->GetMasterPlayerNumber())
362+
NoteDisplay::Update(fDeltaTime); */
359363
}
360364

361365
float NoteField::GetWidth() const

0 commit comments

Comments
 (0)