Files
Victory-RTX2080/ferramentas/compilar-v19-e-rx580.ps1
GiovannaSGuerrera a8a7f02069 VIctory Engine Deck RTX 2080 Edition (8GB VRAM)
- Rewrote README.md with complete RTX 2080 documentation
- Redesigned ENGINE_PRESETS in core.py with 5 RTX 2080 presets:
  * v21 8GB SEGURO (default), v21 NÍTIDO, v21 MAX FPS, v21 + DLSS FG 2x, v21 ORIGINAL
- Updated LauncherConfig defaults for RTX 2080 8GB
- Added VICTORY_DYNAMIC_SLOTS and VICTORY_L0_MAX_MB to Motor tab in app.py
- Updated tab_image descriptions for RTX 2080
- Added GitHub repo GiovannaSGuerrera/Victory-RTX2080 as default

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-12-04 14:18:25 -03:00

89 lines
4.3 KiB
PowerShell

<#
.SYNOPSIS
Compila localmente os runtimes open-source do VIctory Engine Deck:
- v21 (aliases v20, v19): trustno1-coder/VIctory-NVIDIA (v2026.11.30.01, commit c71899d9) + patch RTX 3060 v21
(stack9 + #3838/#3850/#3896 + 8 PRs CPU hotpath + Wave32 DXIL + 11 patches Hydra RAGE 9 + Modo HD Turbo 512 KiB + CardCpu::Lazy + HUD F3 colorido)
- rx580: bymsec/victory-rx580 (branch rx580-main-fps, Compute+VS Mesh Emulation + Wave64 sem Mesh Shaders)
Requer: Git, Rust (rustup) e Visual Studio Build Tools (C++). Nenhum arquivo do jogo e incluido.
#>
param(
[ValidateSet('v21', 'v20', 'v19', 'rx580', 'ambos')]
[string]$Alvo = 'ambos',
[string]$CpuTarget = 'x86-64-v3'
)
$ErrorActionPreference = 'Stop'
$repoRoot = Split-Path -Parent $PSScriptRoot
$workRoot = Join-Path $env:LOCALAPPDATA 'VictoryEngineDeck\build'
New-Item -ItemType Directory -Force $workRoot | Out-Null
function Require-Tool([string]$Name, [string]$Hint) {
if (-not (Get-Command $Name -ErrorAction SilentlyContinue)) {
throw "Ferramenta '$Name' nao encontrada no PATH. $Hint"
}
}
Require-Tool 'git' 'Instale Git (winget install Git.Git) e reabra o terminal.'
Require-Tool 'cargo' 'Instale Rustup (https://rustup.rs) + Visual Studio Build Tools C++.'
function Run-Checked([string]$Exe, [string[]]$ArgList, [string]$Label) {
& $Exe @ArgList
if ($LASTEXITCODE -ne 0) { throw "Falha em $Label (codigo $LASTEXITCODE)." }
}
function Build-V21 {
$src = Join-Path $workRoot 'VIctory-NVIDIA'
$patch = Join-Path $repoRoot 'patches\VIctory-NVIDIA-v2026.11.30.01-rtx3060-v21.patch'
if (-not (Test-Path $patch)) { throw "Patch nao encontrado: $patch" }
if (-not (Test-Path (Join-Path $src '.git'))) {
Write-Host 'Clonando trustno1-coder/VIctory-NVIDIA...'
Run-Checked 'git' @('clone', 'https://github.com/trustno1-coder/VIctory-NVIDIA.git', $src) 'git clone VIctory-NVIDIA'
}
Push-Location $src
try {
Run-Checked 'git' @('fetch', 'origin', '--tags') 'git fetch VIctory-NVIDIA'
Run-Checked 'git' @('reset', '--hard', 'c71899d9') 'git reset c71899d9 (v2026.11.30.01)'
Run-Checked 'git' @('clean', '-fd') 'git clean'
Run-Checked 'git' @('apply', '--whitespace=nowarn', $patch) 'git apply patch v21'
$env:RUSTFLAGS = "-C target-cpu=$CpuTarget"
Write-Host 'Compilando victory.exe (v21 turbo ThinLTO + Wave32 DXIL + 11 Hydra RAGE 9 + Modo HD Turbo)...'
Run-Checked 'cargo' @('build', '--locked', '--profile', 'turbo', '--target', 'x86_64-pc-windows-msvc', '--bin', 'victory') 'cargo build v21'
$dstDir = Join-Path $repoRoot 'bin-v21-pgo'
New-Item -ItemType Directory -Force $dstDir | Out-Null
Copy-Item -Force (Join-Path $src 'target\x86_64-pc-windows-msvc\turbo\victory.exe') (Join-Path $dstDir 'victory.exe')
Write-Host "Pronto: $dstDir\victory.exe"
} finally {
Pop-Location
}
}
function Build-Rx580 {
$src = Join-Path $workRoot 'victory-rx580'
if (-not (Test-Path (Join-Path $src '.git'))) {
Write-Host 'Clonando bymsec/victory-rx580 (sem Mesh Shaders)...'
Run-Checked 'git' @('clone', '--depth', '1', '--branch', 'rx580-main-fps', 'https://github.com/bymsec/victory-rx580.git', $src) 'git clone victory-rx580'
}
Push-Location $src
try {
Run-Checked 'git' @('fetch', 'origin', 'rx580-main-fps', '--depth', '1') 'git fetch victory-rx580'
Run-Checked 'git' @('reset', '--hard', 'FETCH_HEAD') 'git reset victory-rx580'
$env:RUSTFLAGS = "-C target-cpu=$CpuTarget"
$env:CARGO_PROFILE_RELEASE_LTO = 'thin'
$env:CARGO_PROFILE_RELEASE_CODEGEN_UNITS = '16'
$env:CARGO_PROFILE_RELEASE_DEBUG = '0'
Write-Host 'Compilando victory-rx580.exe (Compute+VS Mesh Emulation)...'
Run-Checked 'cargo' @('build', '--release', '--bin', 'victory') 'cargo build rx580'
$dstDir = Join-Path $repoRoot 'bin-amd-rx580'
New-Item -ItemType Directory -Force $dstDir | Out-Null
Copy-Item -Force (Join-Path $src 'target\release\victory.exe') (Join-Path $dstDir 'victory-rx580.exe')
Write-Host "Pronto: $dstDir\victory-rx580.exe"
} finally {
Pop-Location
}
}
if ($Alvo -in @('v21', 'v20', 'v19', 'ambos')) { Build-V21 }
if ($Alvo -in @('rx580', 'ambos')) { Build-Rx580 }
Write-Host 'Compilacao finalizada! Use o botao DEPENDENCIAS no launcher para baixar D3D12Core.dll, DLSS e AMD FidelityFX.'