DisplayMagician/DisplayMagicianShared/Windows
Terry MacDonald 83b8938e1a Reduces config scanning delay as much as possible
WinLibrary currently waits 5 seconds if it can't read the taskbar registry, and then it tries again. This is because based on my testing, if a screen layout changes, windows takes up to 20 seconds to update registry to record this fact. We have to wait until windows has finished 4 times before we are sure to have passed the 20 second window.

This is likely the delay you have mentioned. I *think* that I can slightly speed this up. We only MUST to do this delay when we are recording the config (i.e. creating a new display profile), and other times it's kind of a nice to have. So I've attempted to speed this up using a 'fastScan' option for the WinLibrary GetActiveConfig function. This will enable it to only query once for the general scans of the active config, and if there is a problem getting the data it will just accept that fact and will still return quickly. But it will still take up to 20 seconds when creating a new display profile as it is REALLY important we get that data correctly.

Fixes #129
2022-07-02 15:08:54 +12:00
..
CCD.cs Remove uneeded DPI_VALUES array 2022-06-28 11:43:18 +12:00
GDI.cs Updated NVIDIA Library and WinLibrary based on testing 2021-11-19 22:20:43 +13:00
TaskBarLayout.cs Increased logging and improved uplay library processing 2022-06-17 10:18:55 +12:00
TaskBarSettings.cs Made TaskBarLayout creation more robust 2022-06-02 19:51:07 +12:00
WinLibrary.cs Reduces config scanning delay as much as possible 2022-07-02 15:08:54 +12:00