# Conflicts: # README.md # apps/victory/src/main.rs # apps/victory/src/play.rs # apps/victory/src/run.rs # apps/victory/src/translate.rs # apps/victory/src/warm.rs # crates/victory-formats/src/bcpack.rs # crates/victory-game/src/lib.rs # crates/victory-gpu/src/capture.rs # crates/victory-gpu/src/compose.rs # crates/victory-gpu/src/copystat.rs # crates/victory-gpu/src/descriptor.rs # crates/victory-gpu/src/descriptor/host.rs # crates/victory-gpu/src/device.rs # crates/victory-gpu/src/draw.rs # crates/victory-gpu/src/host.rs # crates/victory-gpu/src/host/card_steps.rs # crates/victory-gpu/src/host/menu.rs # crates/victory-gpu/src/host/panel.rs # crates/victory-gpu/src/host/place.rs # crates/victory-gpu/src/host/send.rs # crates/victory-gpu/src/host/upcheck.rs # crates/victory-gpu/src/lib.rs # crates/victory-gpu/src/list.rs # crates/victory-gpu/src/memory.rs # crates/victory-gpu/src/pipeline.rs # crates/victory-gpu/src/pool.rs # crates/victory-gpu/src/queue.rs # crates/victory-gpu/src/resource.rs # crates/victory-gpu/src/shader_cache.rs # crates/victory-gpu/src/shadow.rs # crates/victory-gpu/src/streamline.rs # crates/victory-gpu/src/streamline/fsr.rs # crates/victory-gpu/src/texture.rs # crates/victory-gpu/src/watch.rs # crates/victory-hle/Cargo.toml # crates/victory-hle/src/modules/apu.rs # crates/victory-hle/src/modules/audio.rs # crates/victory-hle/src/modules/display.rs # crates/victory-hle/src/modules/dstorage.rs # crates/victory-hle/src/modules/fidelityfx.rs # crates/victory-hle/src/modules/gameinput.rs # crates/victory-hle/src/modules/kernel.rs # crates/victory-hle/src/modules/lifecycle.rs # crates/victory-hle/src/modules/storage.rs # crates/victory-hle/src/modules/xasync.rs # crates/victory-hle/src/modules/xg.rs # crates/victory-hle/src/modules/xgame.rs # crates/victory-hle/src/modules/xgameruntime.rs # crates/victory-hle/src/modules/xgamesave.rs # crates/victory-hle/src/modules/xgameui.rs # crates/victory-hle/src/modules/xmem.rs # crates/victory-hle/src/modules/xnetworking.rs # crates/victory-hle/src/modules/xpackage.rs # crates/victory-hle/src/modules/xstore.rs # crates/victory-hle/src/modules/xsystem.rs # crates/victory-hle/src/modules/xuser.rs # crates/victory-loader/src/windows.rs # crates/victory-shader/src/emit/lower.rs # crates/victory-shader/src/emit/lower/tests.rs # crates/victory-shader/src/emit/mod.rs # crates/victory-shader/src/emit/wave64_tests.rs # docs/findings.md # scripts/play-foxhound.ps1
49 lines
3.1 KiB
PowerShell
49 lines
3.1 KiB
PowerShell
# Starts the title with the settings this fork is played with (README.md, "How to run it").
|
|
# It runs as the Series S, at 1280x720.
|
|
# scripts\play.ps1 -Exe <path of your own copy's executable>
|
|
# -Safe without the newer, faster ways (the first thing to try when something is wrong)
|
|
# -RayTracing the title's own ray-traced indirect light: lit interiors, about a third slower
|
|
# -Build target\diag (the default, the build all measurements are of) or target\release
|
|
# -More other settings: -More @{VICTORY_PANEL='1'}
|
|
# Device-removed data keeps page faults only (VICTORY_D3D12_DRED=faults): the runtime's breadcrumbs
|
|
# after every command (=light) cost an RTX 2080 Ti about 37 ms of card time a frame. For a device
|
|
# loss: -More @{VICTORY_D3D12_DRED='light'}
|
|
# Run it from a normal window, not as administrator: the driver then keeps its shader cache elsewhere.
|
|
# These are the settings docs\findings.md was measured with. scripts\play-foxhound.ps1 and victory.exe play set
|
|
# more since (the heaps' records at the submit, write-combined copies left on the card, the texture pool's): to
|
|
# compare with those, pass them with -More.
|
|
param(
|
|
[Parameter(Mandatory)][string]$Exe,
|
|
[switch]$Safe,
|
|
[switch]$RayTracing,
|
|
[ValidateSet('diag', 'release')][string]$Build = 'diag',
|
|
[hashtable]$More = @{}
|
|
)
|
|
$settings = @{
|
|
VICTORY_TEXTURE_NO_WAIT = '1'; VICTORY_RELAY = '2'; VICTORY_WIDE_BACK = '1'; VICTORY_CARD_REHASH_RUNS = '1'
|
|
VICTORY_JOIN_COPIES = '1'; VICTORY_INDIRECT_WINDOW = '1'; VICTORY_RELAY_COPY = '1'; VICTORY_CARD_STEPS = '2'
|
|
VICTORY_INDIRECT_BATCH = '2'; VICTORY_MAP_THREADS = '1'; VICTORY_TITLE_PRIORITIES = '0'; VICTORY_CARD_AWAKE = '0'
|
|
VICTORY_SHOW_AFTER = '1'; VICTORY_AMBIENT = '0.8'; VICTORY_D3D12_DRED = 'faults'; VICTORY_SKIP_PIPELINES = 'none'
|
|
VICTORY_DISPLAY_MODE = '1280x720'
|
|
}
|
|
if ($Safe) {
|
|
$settings.VICTORY_UNDER_WIDE = '0'; $settings.VICTORY_LAND_ECHO = '0'
|
|
} else {
|
|
$settings.VICTORY_THIN = '1'; $settings.VICTORY_JOIN_PARTS = '8'; $settings.VICTORY_UPLOAD_AHEAD = '1'
|
|
}
|
|
if ($RayTracing) { $settings.VICTORY_BVH_BUILDER = '1' }
|
|
foreach ($k in $More.Keys) { $settings[$k] = $More[$k] }
|
|
|
|
$victory = Join-Path $PSScriptRoot "..\target\$Build\victory.exe"
|
|
if (-not (Test-Path $victory)) { Write-Host "No $victory. Build it first (README.md)."; exit 1 }
|
|
if (-not (Test-Path $Exe)) { Write-Host "No $Exe."; exit 1 }
|
|
# (Other settings left over in this window go; where your files are, and which card, stay: the launcher's KEPT,
|
|
# apps\victory\src\play.rs. Without VICTORY_HOME here the files went to %LOCALAPPDATA%, #751.)
|
|
$paths = 'VICTORY_MENU_PAD', 'VICTORY_HOME', 'VICTORY_ADAPTER', 'VICTORY_CONFIG', 'VICTORY_GAME_DIR', 'VICTORY_CACHE_DIR', 'VICTORY_DATA_DIR', 'VICTORY_STREAMLINE_DIR', 'VICTORY_FIDELITYFX_DIR', 'VICTORY_LOG'
|
|
Get-ChildItem Env:VICTORY_* | Where-Object { $_.Name -notin $paths } | ForEach-Object { Remove-Item "Env:$($_.Name)" }
|
|
foreach ($k in $settings.Keys) { Set-Item "Env:$k" $settings[$k] }
|
|
$Exe = (Resolve-Path $Exe).Path
|
|
Push-Location (Join-Path $PSScriptRoot '..') # victory.toml is looked for here
|
|
try { & $victory run $Exe --console series-s --execute } finally { Pop-Location }
|
|
exit $LASTEXITCODE
|