Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Swarm Simulator and True Exponential to use break_infinity.js #10

Open
Patashu opened this issue Nov 22, 2017 · 4 comments
Open

Get Swarm Simulator and True Exponential to use break_infinity.js #10

Patashu opened this issue Nov 22, 2017 · 4 comments
Labels
outreach get people to know about/use break_infinity.js

Comments

@Patashu
Copy link
Owner

Patashu commented Nov 22, 2017

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 Patashu added the outreach get people to know about/use break_infinity.js label Nov 29, 2017
@erosson
Copy link

erosson commented Dec 1, 2017

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.

@Patashu
Copy link
Owner Author

Patashu commented Dec 1, 2017

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.

@erosson
Copy link

erosson commented Dec 2, 2017

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

@erosson
Copy link

erosson commented Dec 4, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outreach get people to know about/use break_infinity.js
Projects
None yet
Development

No branches or pull requests

2 participants