Add basic density consideration to HP drain #26039
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Builds upon #26012 to add some basic form of density consideration.
I need more time to test this, but PRing for review for now.
The idea I'm going for is to normalise higher-density sections back to more reasonable values so that they don't skew the algorithm too much, while preserving some effects of density. Basically - taking the edge off.
In this implementation, a "section" refers to, at least for the osu! ruleset, a combo colour. This is completely theoretical at this point and I haven't tested the effect of applying the normalisation per-hitobject, but this may lead to more interesting effects around things like 1-combo bursts. Definitely needs more testing.
Replays.zip (compare vs PR above)