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

Add verbose difficulty calculator option to make intermediate calculations visible #15011

Closed
wants to merge 13 commits into from

Conversation

joseph-ireland
Copy link
Contributor

@joseph-ireland joseph-ireland commented Oct 9, 2021

Currently WIP, I can add to all modes and simplify a bit if you think this is going in the right direction.

Implements #14934

There are a few small details that maybe should change:

  1. information is collected for all difficulty calculations, not just the verbose one. This will have a small memory overhead on the order of ~100 bytes per hit object, but shouldn't impact computation speed or allocations. If necessary, data could be stored in a VerboseOsuDifficultyHitObject or something else

  2. maybe you don't like the "logic in the constructor" thing - that can be moved into explicitly instantiating a struct later at the cost of a few extra LOC but no other benefit IMO

  3. if we want to integrate this into the editor in future then maybe a new attribute should be used rather than newtonsoft json. My perferred option would be to get rid of the baseHitObject members so everything is included, but that would require more work.

this diff is probably more relevant than what's listed: https://github.com/joseph-ireland/osu/compare/refactor-skills...joseph-ireland:verbose-difficulty?expand=1

@stanriders
Copy link
Member

This was pretty much done by #18458

@smoogipoo smoogipoo closed this Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants