CeciliaBot / CeciliaBot.github.io

E7 Camping Simulator
https://ceciliabot.github.io
12 stars 9 forks source link

Advanced features performance #61

Open AlexeiA opened 2 years ago

AlexeiA commented 2 years ago

Hello! Thank you for this useful tool!

Your current 'experimental' algorithm is working great, very fast, but it is not used if any advanced features are enabled. I have experimented a bit with the code, and looks like that performance can be greatly improved if checking for advanced features constraints is done inside your fast algorithm.

I can try to prepare a pull request with such changes, if you are interested.

Sorry for my english.

CeciliaBot commented 2 years ago

Hi there, I'm currently rewriting the camping simulator from scratch with support for webpack making it easier to add/remove stuff, and better (?) mobile UI for fiters etc

image

I'm still working on the UI and main front-end stuff haven't touched the web worker yet but when I get there I will do some tests to see if I can make any improvments. Iirc the experimental loop was slow and took more resource to calculate the results but I'm not sure it's been a long time. When I'm done rewriting everything I'll post the source code along with the build, in the meantime you can run some tests if you have some ideas to improve performance. The structure for the new worker.js will be similar to the current web worker