sliders now share a vertex buf
This commit is contained in:
+4
-2
@@ -45,6 +45,7 @@ pub fn stars(
|
||||
let with_hr = mods.hr();
|
||||
let mut ticks = Vec::new(); // using the same buffer for all sliders
|
||||
let mut slider_state = SliderState::new(map);
|
||||
let mut curve_buf = Vec::new();
|
||||
|
||||
let mut fruits = 0;
|
||||
let mut droplets = 0;
|
||||
@@ -92,7 +93,7 @@ pub fn stars(
|
||||
/ 100.0;
|
||||
|
||||
// Build the curve w.r.t. the curve points
|
||||
let curve = Curve::new(curve_points, *pixel_len);
|
||||
let curve = Curve::new(curve_points, *pixel_len, &mut curve_buf);
|
||||
|
||||
let mut current_distance = tick_distance;
|
||||
let time_add = duration * (tick_distance / (*pixel_len * *repeats as f32));
|
||||
@@ -284,6 +285,7 @@ pub fn strains(map: &Beatmap, mods: impl Mods) -> Strains {
|
||||
let with_hr = mods.hr();
|
||||
let mut ticks = Vec::new(); // using the same buffer for all sliders
|
||||
let mut slider_state = SliderState::new(map);
|
||||
let mut curve_buf = Vec::new();
|
||||
|
||||
// BUG: Incorrect object order on 2B maps that have fruits within sliders
|
||||
let mut hit_objects = map
|
||||
@@ -325,7 +327,7 @@ pub fn strains(map: &Beatmap, mods: impl Mods) -> Strains {
|
||||
/ 100.0;
|
||||
|
||||
// Build the curve w.r.t. the curve points
|
||||
let curve = Curve::new(curve_points, *pixel_len);
|
||||
let curve = Curve::new(curve_points, *pixel_len, &mut curve_buf);
|
||||
|
||||
let mut current_distance = tick_distance;
|
||||
let time_add = duration * (tick_distance / (*pixel_len * *repeats as f32));
|
||||
|
||||
Reference in New Issue
Block a user