winutil/functions/private/Invoke-WinUtilGPU.ps1
YusufKhalifadev 4ffa1e5b02 Update Invoke-WinutilGPU.ps1
fixed low performance on intel hd
2024-08-20 16:28:23 +03:00

23 lines
547 B
PowerShell

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)*",
"*Intel(R) HD Graphics*",
"*UHD*"
)
foreach ($gpu in $gpuInfo) {
foreach ($gpuPattern in $lowPowerGPUs) {
if ($gpu.Name -like $gpuPattern) {
return $false
}
}
}
return $true
}