DisplayMagician/DisplayMagicianShared
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
..
AMD Removed some uneeded variables from AMDLibrary 2022-06-02 20:18:02 +12:00
NVIDIA Fixed ProcessPriority error in StartProgramControl 2022-06-29 20:37:20 +12:00
Properties Fixed Desktop right-click menu 2022-04-15 11:46:46 +12:00
Resources [WIP] First working WiX installer 2020-12-20 20:42:04 +13:00
UserControls [WIP] Partial integration of new libraries. 2022-03-25 21:51:38 +13:00
Windows Reduces config scanning delay as much as possible 2022-07-02 15:08:54 +12:00
DisplayMagicianShared.csproj Bump NLog from 5.0.0 to 5.0.1 2022-06-13 08:29:52 +00:00
DisplayMagicianStartupAction.cs [WIP] Partial integration of new libraries. 2022-03-25 21:51:38 +13:00
PixelShift.cs [WIP] First working WiX installer 2020-12-20 20:42:04 +13:00
ProfileIcon.cs Revamped display layout image shortcut generation 2022-04-19 21:12:00 +12:00
ProfileItem.cs Reduces config scanning delay as much as possible 2022-07-02 15:08:54 +12:00
ProfileRepository.cs Reduces config scanning delay as much as possible 2022-07-02 15:08:54 +12:00
ResizeDrawing.cs [WIP] First working WiX installer 2020-12-20 20:42:04 +13:00
RestartManagerSession.cs [WIP] Partially working taskbar moving 2022-01-30 20:24:36 +13:00
Rotation.cs [WIP] First working WiX installer 2020-12-20 20:42:04 +13:00
Scaling.cs [WIP] First working WiX installer 2020-12-20 20:42:04 +13:00
ScanLineOrdering.cs [WIP] First working WiX installer 2020-12-20 20:42:04 +13:00
SharedLogger.cs Library include cleanup 2021-02-21 20:23:41 +13:00
ShellHelper.cs Made display changes reliable 2022-02-12 09:18:03 +13:00
Utils.cs Updated the NVIDIALibrary and WinLibrary to v1.7.0 2022-03-24 22:36:42 +13:00
Wallpaper.cs First working display background per profile 2021-09-02 10:42:26 +12:00