Skip to content

Commit

Permalink
remind myself why im doing dumb bad slow stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 8, 2020
1 parent 2f7036f commit 4d692b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2007,10 +2007,13 @@ Calc::WideWindowRollScaler(const vector<NoteInfo>& NoteInfo,
// the unique val is not really used at the moment, basically we filter
// out the vectors for stuff way outside the applicable range, like 500
// ms hits that would otherwise throw off the variation estimations
// unique val is actually used for optimizing cases where you have
// absolute pure roll formation and you know youwant to slamjam it,
// there's probably a faster way to do the same thing but w.e for now
for (auto& v : itv_array)
for (auto& n : v) {
if (!unique_vals.count(n))
unique_vals.insert(n);
if (!unique_vals.count(n)) // 0.5% profiler
unique_vals.insert(n); // 1% profiler
window_vals.push_back(n);
}
float v_mean = mean(window_vals);
Expand Down

0 comments on commit 4d692b0

Please sign in to comment.