I don’t know if you are aware of what Kodi has been doing (slowly) with whitelists. IMHO they never wrote a specification for what they wanted to acheive either back when it started or when they decided it needed improving. I think they have a tendency to just think of kodi running on a PC with lots of grunt to handle a high-res display and a display with very few modes compared to a TV. I suspect whatever they do with v19 we will end up modding it.
xbmc:master
← lrusak:mode-whitelist-settings
opened 04:17AM - 29 May 19 UTC
This is a second go at the original whitelist implementation. Please read this P… R description carefully!
I have done the following:
1) added uniform, clear, and helpfuly log messages
2) logged the whitelist at startup or when the whitelist changes (to help debugging)
3) added a setting for 3:2 pulldown refresh rates
4) added a setting for double refresh rates
5) moved the whitelist (and new settings) to it's own section in `settings->system->display`
The new logging looks like this
```
2019-05-28 21:14:01.070 T:139817693571520 DEBUG: [WHITELIST] whitelisted modes:
1920x1080 @ 60.000000 Hz
1920x1080 @ 59.940063 Hz
1920x1080 @ 50.000000 Hz
1920x1080 @ 24.000000 Hz
1920x1080 @ 23.976025 Hz
```
The logic is now this:
1) find exact resolution and exact refresh rate
2) find exact resolution and double refresh rate (if setting is enabled)
3) find exact resolution and 3:2 pulldown refresh rate (if setting is enabled)
4) use desktop resolution with exact refresh rate
5) use desktop resolution with double refresh rate (if setting is enabled)
6) use desktop resolution with 3:2 pulldown refresh rate (if setting is enabled)
We want to be able to fine tune the whitelist for individual users needs. This help accomplish that by:
1) allowing users to select __ONLY__ the modes that they want to use.
2) adding the ability to use (or not use) 3:2 pulldown refresh rates
3) adding the ability to use (or not use) double refresh rates.
__This is not a final version.__ This needs more testing by users with 4K monitors/TV's
I can't think of any other needs at this moment. If you can think of something that is not present here please let me know. Please comment if you have an unusual modeswitch that you would like to use.
We want to keep it simple to use, obvious, and functional.
for reference: https://en.wikipedia.org/wiki/Three-two_pull_down
EDIT:
The standard behavior still exists as normal. If the whitelist __doesn't contain__ any modes then kodi will do the v17 logic and match any current resolution with the an exact or double refresh rate. So most users that will never even find the whitelist won't have to concern themselves with it at all.