[Display Helper] Incorrect refresh rate applying with CRU modification
Pre-Request Checklist
- [x] I have checked and confirmed this is not a duplicate issue
- [x] I have verified that I'm using the latest version of the extension by checking for updates in Playnite
- [x] I have modified the placeholder issue title according to this issue
Extension name
Display Helper
Bug Description
Background info: I have a 4K 144 hz TV. For some reason in Windows there is not a profile for 1440p at 144 hz even though it is capable of it. I used CRU (Custom Resolution Utility) to add a 1440p/144 hz profile which I am able to successfully change to and use in Windows settings. I typically use 4K/144 hz on the desktop and would like to switch to 1440p/144 hz when starting a game with Display Helper.
Problem: When using Display Helper and selecting 1440p/144hz either in the global settings or per-game settings, Display Helper changes it to 1440p/119.88 hz instead of 1440p/144hz. It seems like this could be a bug when using CRU. For reference, I do not have this problem with other tools that can change the resolution/refresh rate (such as with Sunshine/Moonlight) with my CRU modification.
Steps to Reproduce
See above
Logs
Log from extensions.log (seemingly normal):
19-12 12:59:15.030|DEBUG|DisplayHelper#DisplayUtilities:ChangeDisplaySettings Parameters - displayDeviceName: \.\DISPLAY1, newWidth: 2560, newHeight: 1440, newRefreshRate: 144, applyChanges: True 19-12 12:59:15.030|DEBUG|DisplayHelper#DisplayUtilities:Setting configuration of device "\.\DISPLAY1", 2560x1440, 144, CDS_UPDATEREGISTRY 19-12 12:59:15.168|INFO |DisplayHelper#DisplayUtilities:Display settings changed successfully 19-12 12:59:15.168|INFO |DisplayHelper#DisplayHelper:Stored restore display data. Screen: \.\DISPLAY1. Resolution 3840x2160. Frequency: 144
Screenshots
This is what it is actually changed to: