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

Addition of Refresh Rate Customization as an Optional Feature #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

samuelzamvil
Copy link

This pull request introduces the -RefreshRate parameter for the PowerShell module and the -r flag for the executable, enabling users to specify a custom refresh rate. The addition enhances flexibility and user control, catering to varying hardware setups and preferences. It integrates into the existing codebase, with attention to backward compatibility.

Instead of adding additional ChangeDisplaySettings overload methods, I chose to implement RefreshRate with the default parameter of 0 and with a conditional in ChangeDisplaySettings. This decision was made for simplicity and readability.

@samuelzamvil
Copy link
Author

I've realized that the update to this program 11 months ago broke the powershell module due to how the newer versions of .net handle null coalescing. I've added a working module under cds_legacy which includes the updates to refresh rate.
Essentially, Powershell 5.1 doesn't recognize #nullable enable and throws an error while powershell 7.4 runs just fine.

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.

1 participant