MaxOhn / rosu-pp

PP and star calculation for all osu! gamemodes
MIT License
85 stars 40 forks source link

feat: improve generate hitresults #23

Closed MaxOhn closed 1 year ago

MaxOhn commented 1 year ago

Albeit extremely performant, osu-tools' hitresult generation does not always generate the most accurate result w.r.t. to given accuracy. This PR re-implements hitresult generation by utilizing an optimized brute-force to get a result that matches the accuracy as close as possible. This comes to the detriment of performance. It also adds the method {Mode}PP::generate_state to provide the score state that will be used in performance calculation.