tehp / OpenPoGoUI

A web view for OpenPoGoBot
http://openpogoui.nicontoso.eu/
MIT License
19 stars 7 forks source link

Resource conservation #2

Open wchill opened 7 years ago

wchill commented 7 years ago

Should keep RAM usage lower and also make the UI a bit smoother after it's been running for a while.

niicojs commented 7 years ago

I added a proto in my dev branch (http://openui.nicontoso.eu, github: https://github.com/nicoschmitt/openui).

Basically it defined max (50 pokemon, 10000 steps). When it attain the limit, it keeps only 70% of limit and redraw map.

50 seems kind of low to me at the moment. Browser can handle a lot more, the question is: what UI will look like with 500 pokemon displayed. Normally I would say it's fine, but as the bot has a tendancy to walk in circle for the moment all pokemonq are caught in the same area. So I'm keeping 50 (which bounce to 35 is reached)