You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very large numbers of attacks causes a very large number of permutations to be generated. The memory issues have been resolved by moving to a generator, however, the response time is still too high for attacks 10+
Instead of creating results on a per toughness basis, the fighters.ts model should instead loop through the permutations once, appending to lt, eq, and gt objects. These can then be extracted properly in the statsController.
The text was updated successfully, but these errors were encountered:
## UI
- The Left Navigation Bar on Desktop has been revamped and will no longer scroll with the content.
## API
- Instead of generating data per toughness, instead build `lt`, `eq`, `gt` properties. Then map that to the different toughness values (Fixes: #13)
- This should have no difference in the final result, however, should improve performance greatly
- If you try and generate data for attacks > 8, switch to a simulation of dice rolls rather than generating every permutation (Fixes: #13)
- Added Sentry to API to capture errors (Fixes: #11)
## Notes
Here is a table of the number of permutations as the attacks grow:
| Attacks | Permutations |
|---------|---------------|
| 2 | 36 |
| 4 | 1 296 |
| 6 | 46 656 |
| 8 | 1 679 616 |
| 10 | 60 466 176 |
| 12 | 2 176 782 336 |
Because of this it becomes too expensive to get population permutations for attacks > 8. Hence why it switches over to doing `1 500 000` simulations instead. It should be accurate enough as the probabilities are limited to 2 dec. places on the UI anyway
Very large numbers of attacks causes a very large number of permutations to be generated. The memory issues have been resolved by moving to a generator, however, the response time is still too high for attacks 10+
Instead of creating results on a per toughness basis, the
fighters.ts
model should instead loop through the permutations once, appending tolt
,eq
, andgt
objects. These can then be extracted properly in thestatsController
.The text was updated successfully, but these errors were encountered: