Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++
1.1 KB
Raw Blame
[CmdletBinding()]
param(
    [Parameter(Mandatory=$true)][string]$Exe,
    [string[]]$Arguments=@(),
    [ValidateRange(1,300)][int]$TimeoutSeconds=60,
    [string]$LogPrefix='logs/short-test'
)
$ErrorActionPreference='Stop'
try {
    $path=(Resolve-Path -LiteralPath $Exe).Path
    $prefix=[IO.Path]::GetFullPath($LogPrefix)
    [IO.Directory]::CreateDirectory([IO.Path]::GetDirectoryName($prefix)) | Out-Null
    $quoted=@($Arguments | ForEach-Object { '"' + $_.Replace('"','\"') + '"' })
    $options=@{FilePath=$path;PassThru=$true;WindowStyle='Hidden';RedirectStandardOutput=($prefix+'.stdout.log');RedirectStandardError=($prefix+'.stderr.log')}
    if($quoted.Count){$options.ArgumentList=$quoted}
    $p=Start-Process @options
    $processHandle=$p.Handle
    if(-not $p.WaitForExit($TimeoutSeconds*1000)) {
        Stop-Process -Id $p.Id -Force
        Write-Host ('TIMEOUT after {0}s; stopped test PID {1}' -f $TimeoutSeconds,$p.Id)
        exit 124
    }
    $p.Refresh()
    Write-Host ('exitCode={0} stdout={1}.stdout.log stderr={1}.stderr.log' -f $p.ExitCode,$prefix)
    exit $p.ExitCode
} catch { Write-Error $_; exit 1 }