OneBar

OneBar

2.7k Downloads

Stabilize estimate numbers

Madis0 opened this issue ยท 0 comments

commented
  1. Get an estimate (e.g. regen health)
  2. Add to array
  3. Calculate an average of that array every second
  4. Display the result

Easier said than done, as my solutions don't seem to get along with the Minecraft's tick system... and it would be nice to have a consistent method instead of duplicated code.

Edit: found Util.getMeasuringTimeMs() which may help