PokemonGo-DesktopMap icon indicating copy to clipboard operation
PokemonGo-DesktopMap copied to clipboard

[BUG] Crawler timeouts from multiple queries; [Suggestions] included

Open pill0ws opened this issue 10 years ago • 0 comments

So while running multiple instances I noticed that when two scan over the same area at the same time they timeout. It is very easily worked around by being precise with laying out the center points but overlapping scan areas is generally bad. I am not sure exactly why this occurs but it consistently causes freshly started searches to halt when they collide. A nice way to handle this could be to eliminate the need to run multiple instances of the app alltogether. If a static search area was grided to the map, all coordinates could be equally covered and it may allow an easier method of changing location of the search spiral. Users could then just search multiple spots by selecting multiple nodes from the grid. Punching in the coords at the start would still be useful for finding the node. Changing from within app could be done via "tapping" nodes as we have a map centered around those starting coords already. Could possibly allow a mod to the same "tap" that just starts a new search rather than moving the primary search location. In essence, that first coord you punch in is literally a starting point, what we need is a 'destination' for additional searches rather than moving our starting point. The grid could just always center around that first starting point and additional search locations could be calculated by measuring from that point. So theres probably some way to derive coords like this

There was also the idea of "drawing" tools I previously mentioned. A grid system would make things like drawing tools more possible. Heck, the two together could lay down the foundation for node whitelisting, which could be interesting and allows for less resource usage. I think it could also reduce some of the bogging down that mobile devices get when trying to view "areas scanned" via the filters. It seems like multple overlays are being used for each search query, a single grid overlay should be much less to process as nodes could just have their colors reset when scanned and the offset scan areas would not exist

Another thought that transpired was how the radius of the search effectively translates into the duration of time between each "ping" on a node. Another idea would be to use the spiral system but somehow allow for a second search query to be sent out once the first reaches about the 7th circle. This would reduce any need whatsoever to overlap, it could allow for less instances to be ran by just doubling up on the iterated searching of one larger area. Kind of like a pulse rate to searches. Because as you exponentially increase distance covered you also exponentially increase the duration of time between each scan of an area. A pulse rate could circumvent the increase duration associated with increased radius

I really see two routes here, you could just scan everything in a larger area and go hunting, or you may want to trace a route out that fits some other task you are involved in. You dont want to miss that Snorlax at McDonalds though if you can just pull off on your way to doing whatever else you were doing. I like the idea of whitelisted search patterns, it would just be more time sensitive to the users needs, like jogging for instance, you would have more timely notifications without bothering to search areas behind houses or across the way. However I also like the idea of just scanning everything and blacklisting areas you may get shot in or drowned if you swim out to catch that pokemon.

pill0ws avatar Jul 23 '16 22:07 pill0ws