Skip to content

Commit

Permalink
Remove Step SR calculation progress for 2024 rework calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Wieku committed Oct 13, 2024
1 parent 1a09e62 commit 5202064
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/rulesets/osu/performance/pp241007/difficulty.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package pp241007

import (
"fmt"
"github.com/wieku/danser-go/app/beatmap/difficulty"
"github.com/wieku/danser-go/app/beatmap/objects"
"github.com/wieku/danser-go/app/rulesets/osu/performance/api"
Expand Down Expand Up @@ -156,8 +155,6 @@ func (diffCalc *DifficultyCalculator) CalculateStep(objects []objects.IHitObject

diffCalc.addObjectToAttribs(objects[0], &stars[0])

lastProgress := -1

for i, o := range diffObjects {
attr := stars[i]
diffCalc.addObjectToAttribs(objects[i+1], &attr)
Expand All @@ -168,16 +165,6 @@ func (diffCalc *DifficultyCalculator) CalculateStep(objects []objects.IHitObject
flashlightSkill.Process(o)

stars = append(stars, diffCalc.getStars(aimSkill, aimNoSlidersSkill, speedSkill, flashlightSkill, diff, attr))

if len(diffObjects) > 2500 {
progress := (100 * i) / (len(diffObjects) - 1)

if progress != lastProgress && progress%5 == 0 {
log.Println(fmt.Sprintf("Progress: %d%%", progress))
}

lastProgress = progress
}
}

endTime := time.Now()
Expand Down

0 comments on commit 5202064

Please sign in to comment.