Skip to content

Commit

Permalink
Somewhat fix poor performance on songs with lots of bpm changes, and …
Browse files Browse the repository at this point in the history
…commit forgotten header file.
  • Loading branch information
xwidghet committed Aug 21, 2016
1 parent a7ca8c7 commit e3e3460
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Player: public ActorFrame

protected:
void UpdateTapNotesMissedOlderThan( float fMissIfOlderThanThisBeat );
void UpdateJudgedRows();
void UpdateJudgedRows(float fDeltaTime);
void FlashGhostRow( int iRow );
void HandleTapRowScore( unsigned row );
void HandleHoldScore( const TapNote &tn );
Expand Down
8 changes: 4 additions & 4 deletions src/TimingData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,9 @@ void FindEvent(int& event_row, int& event_type,
const vector<TimingSegment*>& bpms, const vector<TimingSegment*>& warps,
const vector<TimingSegment*>& stops, const vector<TimingSegment*>& delays)
{
if(start.is_warping && BeatToNoteRow(start.warp_destination) < event_row)
if(start.is_warping && BeatToNoteRowNotRounded(start.warp_destination) < event_row)
{
event_row= BeatToNoteRow(start.warp_destination);
event_row= BeatToNoteRowNotRounded(start.warp_destination);
event_type= FOUND_WARP_DESTINATION;
}
if(start.bpm < bpms.size() && bpms[start.bpm]->GetRow() < event_row)
Expand All @@ -793,9 +793,9 @@ void FindEvent(int& event_row, int& event_type,
event_row= delays[start.delay]->GetRow();
event_type= FOUND_DELAY;
}
if(find_marker && BeatToNoteRow(beat) < event_row)
if(find_marker && BeatToNoteRowNotRounded(beat) < event_row)
{
event_row= BeatToNoteRow(beat);
event_row= BeatToNoteRowNotRounded(beat);
event_type= FOUND_MARKER;
}
if(start.stop < stops.size() && stops[start.stop]->GetRow() < event_row)
Expand Down

0 comments on commit e3e3460

Please sign in to comment.