Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support fractional refresh rates in display modes #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paperman5
Copy link

This PR adds support for fractional display refresh rates for the virtual display. As shown here, the DISPLAYCONFIG_VIDEO_SIGNAL_INFO's hSyncFreq and vSyncFreq can be any rational number (integer numerator/denominator pairs). I set these appropriately in the driver code, as well as allowing the user to specify a numerator/denominator pair in option.txt as they would when adding a new display resolution. For example,

1920, 1080, 60000, 1001

in option.txt would set up a 1920x1080 59.94Hz display option.

This change works fine in my testing (Windows 10 19045), but I don't have a Windows 11 PC or an HDR display to test with so I only changed the Non-HDR driver code. I can do the same change for the HDR driver code but I can't test it. This is also my first time working with driver code so it may be possible I missed something important - please let me know if that is the case.

Closes #109.

@itsmikethetech
Copy link
Owner

Great work! Will implement ASAP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for fractional refresh rates
2 participants