Compare commits

..

No commits in common. "3fe482b9439a5cc0b11637ead81fe980985a61fe" and "9233d934d37b1e1b265c0dcd4c91f4c4a8bfe39b" have entirely different histories.

View File

@ -2,20 +2,23 @@ function Invoke-WinUtilGPU {
$gpuInfo = Get-CimInstance Win32_VideoController
# GPUs to blacklist from using Demanding Theming
$lowPowerGPUs = (
"*NVIDIA GeForce*M*",
"*NVIDIA GeForce*Laptop*",
"*NVIDIA GeForce*GT*",
"*AMD Radeon(TM)*",
"*UHD*"
)
foreach ($gpu in $gpuInfo) {
foreach ($gpuPattern in $lowPowerGPUs){
if ($gpu.Name -like $gpuPattern) {
return $false
}
$gpuName = $gpu.Name
if ($gpuName -like "*NVIDIA GeForce*M*" -OR
$gpuName -like "*NVIDIA GeForce*Laptop*" -OR
$gpuName -like "*NVIDIA GeForce*GT*" -OR
$gpuName -like "*AMD Radeon(TM)*" -OR
$gpuName -like "*UHD*") {
return $false
}
}
# GPUs to whitelist on using Demanding Theming
foreach ($gpu in $gpuInfo) {
$gpuName = $gpu.Name
if ($gpuName -like "*NVIDIA*" -OR
$gpuName -like "*AMD Radeon RX*") {
return $true
}
}
return $true
}