Martin-Pitt / create-astral-calc

Calculator for the Create mod in Create: Astral
https://martin-pitt.github.io/create-astral-calc/
0 stars 0 forks source link

Check calculations #1

Open Martin-Pitt opened 1 year ago

Martin-Pitt commented 1 year ago

Need someone or myself to check the calculations are actually correct.

I remember doing a few spot checks here and there and it seemed accurate but more methodical testing with a stopwatch is needed.

Test at some different RPM values (E.g. 32, 64, 128, 256?) and check different setting combinations.

Don't need to be too strict, I just want to be in the right ballpack at first and we can refine from there :)

Checklist:

Martin-Pitt commented 1 year ago

I've added links to all the algorithms as comments in /src/lib/calc.js; whether wiki mentions or the actual source code.

BoomerBoxer commented 8 months ago

Hi, I worked out a more accurate calculation for the crushing wheel based on some testing and the source code: processingDuration = floor( (recipeDuration - 20) / clamp( 4*RPM/50/floor(log2(stackSize)), 0.25, 20 ) ) + 1 + inputDelay processingDuration is equivalent to ticks/input or ticks/stack size. I'll collect more data when I have the time to confirm this is accurare.