reuse path & length bufs for curves
This commit is contained in:
@@ -37,7 +37,7 @@ impl<'h> DistanceObjectPatternGenerator<'h> {
|
||||
prev_pattern: &'h Pattern,
|
||||
orig: &'h Beatmap,
|
||||
repeats: usize,
|
||||
curve: &Curve,
|
||||
curve: &Curve<'_>,
|
||||
edge_sounds: &'h [u8],
|
||||
) -> Self {
|
||||
let timing_point = orig.timing_point_at(hit_object.start_time);
|
||||
|
||||
@@ -136,7 +136,7 @@ impl Beatmap {
|
||||
}
|
||||
|
||||
struct SliderParams<'c> {
|
||||
curve: &'c Curve,
|
||||
curve: &'c Curve<'c>,
|
||||
duration: u32,
|
||||
repeats: usize,
|
||||
start_time: f64,
|
||||
@@ -144,7 +144,7 @@ struct SliderParams<'c> {
|
||||
}
|
||||
|
||||
impl<'c> SliderParams<'c> {
|
||||
fn new(start_time: f64, repeats: usize, curve: &'c Curve) -> Self {
|
||||
fn new(start_time: f64, repeats: usize, curve: &'c Curve<'c>) -> Self {
|
||||
Self {
|
||||
curve,
|
||||
repeats,
|
||||
|
||||
Reference in New Issue
Block a user