break_infinity.js icon indicating copy to clipboard operation
break_infinity.js copied to clipboard

Get Swarm Simulator and True Exponential to use break_infinity.js

Open Patashu opened this issue 8 years ago • 4 comments

Hevipelle's Antimatter Dimensions swapped from decimal.js to break_infinity.js. Once the update is out, I will provide the devs of these two incremental games also swap for that sick performance gainz.

AD script time improved by 4.5x after swapping from decimal.js to break_infinity.js. This could be your incremental game:

image

EDIT: Don't know what Idle Bouncer uses, can check that game too

EDIT 2: Apparently Trimps uses decimal.js?! Does that game even go above 1.78e308? EDIT 3: It uses it just to make it so breeding times don't flip out when you have an extremely small or large amount of Trimps.

Patashu avatar Nov 22 '17 00:11 Patashu

You have my attention!

First step for swarmsim to use this is for https://github.com/erosson/swarm-numberformat to support it. Tried that by replacing require('decimal.js') with require('./break_infinity.js'), but something broke - will isolate the issue later, when I'm more awake.

I've been meaning to swap https://github.com/MikeMcl/decimal.js-light into swarmsim and compare its speed with decimal.js; now there's more competition. A decimal.js-light comparison here would make my decision easier, and give you a third perf chart to show off.

erosson avatar Dec 01 '17 09:12 erosson

If break_infinity.js is lacking a function you need to swap it onto decimal.js, let me know what it is and I will add it.

Patashu avatar Dec 01 '17 11:12 Patashu

Thanks! #16 and #17 would be enough for this to work with swarm-numberformat, I think.

erosson avatar Dec 02 '17 02:12 erosson

Thank you for the fixes! Found that swarmsim also needs #18. The other two fixes are enough to advertise that this works with swarm-numberformat, though! Added to its docs.

erosson avatar Dec 04 '17 17:12 erosson