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

Rarity Exclusion first displays pokemon, then removes them #2470

Open
wfcook opened this issue Jan 31, 2018 · 6 comments
Open

Rarity Exclusion first displays pokemon, then removes them #2470

wfcook opened this issue Jan 31, 2018 · 6 comments

Comments

@wfcook
Copy link

wfcook commented Jan 31, 2018

Expected Behavior

When the "Exclude Rarity" option is used, e.g. to exclude pokemon that are "Uncommon and below", those pokemon should never be drawn.

Current Behavior

RocketMap first displays all pokemon and then removes the excluded rarities en masse. This makes panning the map awkward and slow.

In contrast, when individual pokemon are excluded Via the "Hide Pokemon" feature, they are never drawn.

Possible Solution

Move the check for rarity exclusion to the same location as the check for individual exclusion?

Steps to Reproduce (for bugs)

Context

The "exclude by rarity" feature is potentially much more useful now with the new dynamic rarity, but currently runs slowly and awkwardly.

Your Environment

  • Version used: latest
  • Python 2.7
  • Windows 10
@sebastienvercammen
Copy link
Member

@wfcook
Copy link
Author

wfcook commented Feb 3, 2018

Will work on it

@wfcook
Copy link
Author

wfcook commented Feb 3, 2018

https://www.youtube.com/watch?v=IplFGdpOOQ8

Video quality is terrible, but you'll see what I mean

@wfcook
Copy link
Author

wfcook commented Feb 4, 2018

@sebastienvercammen see video above

@BrownSlaughter
Copy link
Contributor

I can confirm it does draw the pokemon then removes them afterwards, when I load the map it draws everything then removes common

@trunksbomb
Copy link
Contributor

The problem is that excludedPokemonByRarity is never sent to the server during the request for new Pokemon. So what happens is the server returns the entire list of available Pokemon (minus the ones you have explicitly excluded) to the client, then the client parses all the received Pokemon (puts them on the map) then filters them out, which causes the blinking.

I'll submit a PR to fix this behavior.

trunksbomb pushed a commit to trunksbomb/RocketMap that referenced this issue Feb 10, 2018
…m to excludedPokemonByRarity

excludedPokemon is now used as a global list of excluded Pokemon, made up of any number of individual exclusion lists (rarity and hidden, for now)
In accordance with the above two points, refactored all code that controls excluding Pokemon, including adding new functions to help add/remove from list
Fixes Issue RocketMap#2470

Signed-off-by: trunksbomb <trunskbomb@msn.com>
sebastienvercammen pushed a commit to trunksbomb/RocketMap that referenced this issue Mar 6, 2018
…m to excludedPokemonByRarity

excludedPokemon is now used as a global list of excluded Pokemon, made up of any number of individual exclusion lists (rarity and hidden, for now)
In accordance with the above two points, refactored all code that controls excluding Pokemon, including adding new functions to help add/remove from list
Fixes Issue RocketMap#2470

Signed-off-by: trunksbomb <trunskbomb@msn.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants