mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-24 11:55:31 +00:00
889ec8f57d
fixed low performance on intel hd
23 lines
547 B
PowerShell
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
|
|
} |