Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Natelytle
Copy link
Contributor

@Natelytle Natelytle commented Jun 15, 2025

For an acceptable loss in precision, we can speed up the error function implementations by around 5x. This affects both standard and taiko, as both modes use DifficultyCalculationUtils.Erf for their accuracy scaling. In standard, this necessitates a change to the maximum tested precision, however taiko's calculation is not precision-sensitive and is therefore fine without any changes.

This massively speeds up the standard performance calculator, by around 2x.

Old:
image
New:
image

Erf approximation delta visualization:
https://www.desmos.com/calculator/lyg8opgpej

ErfInv approximation delta visualization:
https://www.desmos.com/calculator/npbyvxpwtw

@tsunyoku
Copy link
Member

@tsunyoku
Copy link
Member

!diffcalc
RULESET=taiko
OSU_A=https://github.com/ppy/osu/tree/pp-dev
OSU_B=#33717

@github-actions
Copy link

@github-actions
Copy link

@tsunyoku tsunyoku enabled auto-merge (squash) June 18, 2025 12:51
@tsunyoku tsunyoku moved this from Pending Maintainers Review to Pending Merge in Difficulty calculation changes Jun 18, 2025
@tsunyoku tsunyoku merged commit d5ef8c8 into ppy:pp-dev Jun 18, 2025
4 of 8 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge to Pending Deploy in Difficulty calculation changes Jun 18, 2025
Finadoggie pushed a commit to Finadoggie/osu that referenced this pull request Aug 18, 2025
…h approximations (ppy#33717)

* Reimplement error functions

* Fix bug with adjustment for negative values

* Formatting

---------

Co-authored-by: tsunyoku <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Pending Deploy

Development

Successfully merging this pull request may close these issues.

2 participants