Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate hit windows in performance calculator instead of databased difficulty attributes #31735

Open
wants to merge 1 commit into
base: pp-dev
Choose a base branch
from

Conversation

tsunyoku
Copy link
Member

See #31595 (comment).

Depends on ppy/osu-queue-score-statistics#321 so that score.BeatmapInfo.Difficulty can be used in the calculator server-side.

@tsunyoku
Copy link
Member Author

!diffcalc
RULESET=osu
OSU_A=https://github.com/ppy/osu/tree/pp-dev
OSU_B=#31735
SCORE_PROCESSOR_B=ppy/osu-queue-score-statistics#321

@smoogipoo
Copy link
Contributor

Can the great/ok attribute definitions be removed too?

@stanriders
Copy link
Member

You should do the same for other rulesets too then

@tsunyoku
Copy link
Member Author

tsunyoku commented Jan 30, 2025

Yes we can, but it's worth noting these other usages are not new. Note the following:

  • osu!mania's GreatHitWindow difficulty attribute can be removed with no consideration. It isn't even used in the first place, so useless storage.
  • osu!taiko's GreatHitWindow and OkHitWindow difficulty attributes can be removed in the same way this PR already does for osu!, and replace it with calculations in the performance calculator.

Following from https://discord.com/channels/188630481301012481/380598781432823815/1334524621625491507, I need to push a fix for the osu! changes to ensure that any mods which affect the base overall difficulty are applied to the beatmap difficulty. However, I'm unsure if this is going to result in a double application of mods in the case the beatmap provided already had them applied... I'm thinking if this is coming from the PP counter, or osu-tools, it's going to use a beatmap which already has the beatmap difficulty modified in context of the score. Maybe this could be done on the server-side so we can trust the beatmap difficulty object in the performance calculator and it will work in either case.

In doing this, I noticed that we may be able to go an extra step and remove the OverallDifficulty attribute from osu!'s difficulty attributes entirely.

Copy link

@smoogipoo
Copy link
Contributor

I guess it depends on what your goals are here. If the goal is only to remove the newly added attribute, then sure, but I was intending to go the full way and remove every single one to reduce DB storage requirements. Good catch on OD, perhaps the AR attribute too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Pending Review
Development

Successfully merging this pull request may close these issues.

3 participants