fribbels / hsr-optimizer

A Honkai Star Rail optimizer, relic scorer, damage calculator, and various other tools for building and gearing characters
https://fribbels.github.io/hsr-optimizer/
MIT License
209 stars 42 forks source link

[Performance] Improve score simulation performance #420

Open fribbels opened 4 weeks ago

fribbels commented 4 weeks ago

Motivation

image

Currently some characters have to do this for their combat scoring, which is over 4000 simulation runs on the card load

This comes from having to calculate:

Goal

Improve the simulation speed / improve the optimal substat algorithm so these characters don't lag the page as much. The goal is to load the sim without a noticeable slowdown.