# Set SecondVoice to use NVIDIA GPU $exePath = Join-Path $PSScriptRoot "build\mingw-Release\SecondVoice.exe" $exeFullPath = (Resolve-Path $exePath).Path $regPath = "HKCU:\Software\Microsoft\DirectX\UserGpuPreferences" if (-not (Test-Path $regPath)) { New-Item -Path $regPath -Force | Out-Null } Set-ItemProperty -Path $regPath -Name $exeFullPath -Value "GpuPreference=2;" -Type String Write-Host "GPU preference set to High Performance for:" -ForegroundColor Green Write-Host $exeFullPath -ForegroundColor Cyan Write-Host "" Write-Host "Please restart SecondVoice" -ForegroundColor Yellow