-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update GPU Whitelist System #2178
Conversation
@blusewill |
…gpu-2024-06-27 Re-Formate 'Invoke-WinUtilGPU.ps1' Private Function to be Shorter
Alright! Thanks for the Formatting |
First of all, great work both of you :) Edit: it's also possible to refactor the code to use only a single for each loop which improves performance and readability alike. |
Thanks for the info @Marterich , checked it out and do see that it may improve the readability of the code.. but I can't figure out a way to do C 's Switch style of Multiple cases (Pattern Matching), one code to execute, like the follow: switch (x){
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
printf ("The number you entered is >= 1 and <= 6\n");
break;
} The closest I got is a StackOverFlow Question on this topic.
... I was about to write how it might be difficult to achieve this (because of Note The code in next section doesn't use Switch Statement(s), only If Statement(s).. you've to implement the Switch one on your own @Marterich if you want it 👍 The Updated Codefunction Invoke-WinUtilGPU { $gpuInfo = Get-CimInstance Win32_VideoController |
@blusewill My changes in https://github.com/blusewill/pull/3
|
Blueswill refactor for performance and readability
There is so many long time contributor lol |
@blusewill fyi in case you didn't know |
Oh really? That's a thing in Github Action now? Let me edit it |
It's actually a GitHub native function |
Oh really! I didn't know that. Thanks for telling me that. |
Great job all |
Because too many people says their Laptop goes Brrrrrrr when running winutil
I decided to ban every single Laptop GPU boots into Matrix Mode
Also added some low Powered NVIDIA GPU Such as GT Series.
Sort of*
fixes: #2170
fixes: #2023