Files
6gbvram---16gb-ram/scripts/build-nvidia.ps1
T
trustno1-coderandClaude Fable 5.2 63957271cd CGBJ's renderer, DLSS, an F1 settings menu, frame generation, ray tracing switch
The default of scripts\play-nvidia.ps1 changes: the game renders its own
720p and DLSS takes it to 1080p (Series S), in place of the half render
scale and the title's upscaler. -Resolution still reaches the older path.

- Renderer: codec-d/cool_fox f4b48ad (GPL-3.0) with this fork's NVIDIA
  fixes on top (residency.rs, stretch.rs, the ffx upscale dispatch).
- DLSS for the title's upscale, from avatarmanz/VIctory-7900XTX pull
  request 203 (feature `dlss`, VICTORY_UPSCALE=dlss), with
  VICTORY_DLSS_PRESET and a live sharpness setting.
- F1 settings menu in the game (host/menu.rs): saved to
  victory-settings.txt, applied by the launcher at the next start,
  "save and restart" from the menu. F3: the panel, now with the
  generated frame rate beside the real one.
- DLSS frame generation through NVIDIA Streamline (streamline.rs, fg.rs),
  2x to 6x, the amount changed while playing. Constants and the depth and
  motion vector tags are handed over at each present.
- VICTORY_FPS_CAP: the title's own 30 frames a second can be lifted
  (60, 120, none), live from the menu.
- Real ray tracing as an option (-RayTracing, VICTORY_BVH_BUILDER=1): on
  this renderer the structure builder runs on NVIDIA. Frame generation is
  left off with it: the two together run at about 0.1 fps, cause not found.
- VICTORY_HEAP_RECHECK_EVERY: textures picked by index looked at again
  for the whole run (a test against the posterized look).
- Get-NVIDIA-DLSS.cmd / scripts\get-nvidia-sdks.ps1: fetch the few NVIDIA
  files DLSS and frame generation need (about 70 MB) from NVIDIA's GitHub
  into nvidia-sdk\ (git-ignored). They are NVIDIA's, under NVIDIA's
  licences, and are not part of this repository. Without them the picture
  is stretched and there is no frame generation.
- scripts\build-nvidia.ps1; the launcher builds the layer when it is not
  built, and again with DLSS once those files are there.

Measured on an RTX 5070 (Series S, DLSS, opening rooms): about 15-17 fps
without ray tracing, 13-15 with it, before generated frames. What is known
to be wrong is in the README's new section.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-26 17:56:14 -08:00

26 lines
1.6 KiB
PowerShell

# Builds the layer the way scripts\play-nvidia.ps1 expects it (the diag profile with diagnostics: the F1 menu,
# the F3 panel and several NVIDIA settings are diagnostics switches).
# scripts\build-nvidia.ps1 with DLSS when nvidia-sdk\DLSS is there (Get-NVIDIA-DLSS.cmd fetches it),
# without it otherwise
# scripts\build-nvidia.ps1 -NoDlss without DLSS even then
# scripts\build-nvidia.ps1 -DlssSdk <your checkout of github.com/NVIDIA/DLSS>
# A build with DLSS links NVIDIA's loader library: it is for your own use, not for passing on.
param(
[string]$DlssSdk,
[switch]$NoDlss
)
$root = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
if (-not $DlssSdk) { $DlssSdk = Join-Path $root 'nvidia-sdk\DLSS' }
$features = 'diagnostics'
if (-not $NoDlss -and (Test-Path (Join-Path $DlssSdk 'lib\Windows_x86_64\x64\nvsdk_ngx_d.lib'))) {
$env:VICTORY_DLSS_SDK = (Resolve-Path $DlssSdk).Path
$features = 'diagnostics,dlss'
Write-Host "Building with DLSS (SDK: $env:VICTORY_DLSS_SDK)"
} else {
Write-Host 'Building without DLSS (Get-NVIDIA-DLSS.cmd fetches its files; without them the picture is stretched to the screen)'
}
Push-Location $root
try { cargo build --locked --profile diag -p victory --features $features } finally { Pop-Location }
if ($LASTEXITCODE -eq 0) { Set-Content -Path (Join-Path $root 'target\diag\built-with.txt') -Value $features -Encoding ascii }
if ($LASTEXITCODE -eq 0) { Write-Host "Built: $(Join-Path $root 'target\diag\victory.exe'). Next: scripts\play-nvidia.ps1 -Exe <your copy's executable>" }