Skip to content

Commit

Permalink
slight optimization to memory handling in roll detect
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Apr 26, 2020
1 parent 8beba3c commit 6b034a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,12 +1192,13 @@ Calc::SetSequentialDownscalers(const vector<NoteInfo>& NoteInfo,
// how that case is handled atm
int lastcol = -1;
float lasttime = 0.f;

vector<float> lr;
vector<float> rl;
for (size_t i = 0; i < nervIntervals.size(); i++) {
// roll downscaler stuff
int totaltaps = 0;
vector<float> lr;
vector<float> rl;
lr.clear();
rl.clear();
int ltaps = 0;
int rtaps = 0;

Expand Down

0 comments on commit 6b034a3

Please sign in to comment.