Skip to content

Decompose snap aim evaluator into several methods#38201

Open
tsunyoku wants to merge 2 commits into
ppy:pp-devfrom
tsunyoku:decompose-snap-eval
Open

Decompose snap aim evaluator into several methods#38201
tsunyoku wants to merge 2 commits into
ppy:pp-devfrom
tsunyoku:decompose-snap-eval

Conversation

@tsunyoku

Copy link
Copy Markdown
Member

I think this is a lot easier to read. The levels of nesting we were reaching, and coupling totally independent bonuses together makes this super overwhelming.

return DiffUtils.Pow(baseNerf + (1 - baseNerf) * vectorRepetition * maximum_vector_influence * stackFactor, 2);
}

private static double highBpmBonus(double ms) => 1 / (1 - DiffUtils.Pow(0.03, DiffUtils.Pow(ms / 1000, 0.65)));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have five of these. Move to a DiffUtils helper method?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each one of these has different constants, I think it may cause more confusion to try and consolidate

Comment thread osu.Game.Rulesets.Osu/Difficulty/Evaluators/Aim/SnapAimEvaluator.cs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants