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.5 KB
Raw Blame
param(
    [Parameter(Mandatory=$true)][ValidatePattern('^[A-Za-z0-9][A-Za-z0-9_-]*$')][string]$Name,
    [Parameter(Mandatory=$true)][string]$Exe,
    [string[]]$TestArgs=@()
)
$ErrorActionPreference='Stop'
$dir=Join-Path (Get-Location) 'logs/scheduler-repair-20260910'
[IO.Directory]::CreateDirectory($dir)|Out-Null
$runDir=Join-Path $dir $Name
[IO.Directory]::CreateDirectory($runDir)|Out-Null
$watch=[Diagnostics.Stopwatch]::StartNew()
$start=@{FilePath=(Resolve-Path $Exe).Path;PassThru=$true;WindowStyle='Hidden';RedirectStandardOutput="$dir/$Name.stdout.log";RedirectStandardError="$dir/$Name.stderr.log"}
if($TestArgs.Count){$start.ArgumentList=@($TestArgs|ForEach-Object{'"'+$_.Replace('"','\"')+'"'})}
$previousLog=$env:VEYRA_LOG_FILE
try {
    $env:VEYRA_LOG_FILE=Join-Path $runDir 'runtime.log'
    $process=Start-Process @start
} finally { $env:VEYRA_LOG_FILE=$previousLog }
$handle=$process.Handle
if(-not $process.WaitForExit(290000)){Stop-Process -Id $process.Id -Force;throw "$Name exceeded 290 seconds"}
$inputs=@($TestArgs|Where-Object {$_ -match '\.(mp4|nv12)$' -and (Test-Path -LiteralPath $_ -PathType Leaf)}|ForEach-Object {@{path=$_;sha256=(Get-FileHash -LiteralPath $_ -Algorithm SHA256).Hash}})
$result=[ordered]@{test=$Name;exitCode=$process.ExitCode;seconds=$watch.Elapsed.TotalSeconds;exeHash=(Get-FileHash $Exe -Algorithm SHA256).Hash;args=$TestArgs;inputs=$inputs}
$result|ConvertTo-Json|Set-Content "$dir/$Name.result.json"
Get-Content "$dir/$Name.stdout.log" -Tail 28
Write-Output ($result|ConvertTo-Json -Compress)
exit $process.ExitCode