Joshimello / AL2Lab

Calculator for factory game Assembly Line 2
https://al2lab.vercel.app
0 stars 1 forks source link

object permanency #6

Open facade11663 opened 4 days ago

facade11663 commented 4 days ago

Phones are not known for having alot of ram. could there be a cookie saved with the settings and search value? Then that can be read when the page reloads so all the data doesn't get wiped every time we switch between the browser and the game.

Joshimello commented 4 days ago

hmm storing the previous selected options is not a problem, but recalculating may be hard to avoid. e.g. changing the number of output may require recalculations. unless we cache every calculated tree and multiply each child item by wanted output count.

I will try to add this if I have time to spare.

thanks for your suggestion!