Fix Refresh Rate (FPS) issues on certain android devices #909
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update refresh rate selection to choose the highest FPS with the widest range in order to improve compatibility across devices and avoid selecting obscenely low fps values.
The purpose of this is to help mitigate issues like #492
Essentially on some android devices like some variants of the samsung galaxy J7 the camera displays a possible refresh value of 7000-7000 which under the current algorithm will always be selected. However, for the purposes of scanning that makes the refresh rate far too low and the device lags and struggled to scan the image. This change will adjust the algorithm to keep selecting similar values as the current one to maintain high compatibility but avoid the extremely low refresh rate options.
Samsung J7 FPS Ranges:
7000-7000
15000-15000
24000-24000
8000-30000
10000-30000
15000-30000
30000-30000
Current Selected Refresh Range (before this change):
7000-7000
New Selected Refresh Range (with this change):
8000-30000