feat(6gb/16gb): RAM-pressure trims, allocator peak-cap, submission toggles, diagnostics
Opt-in, inert-by-default performance work for 6 GB VRAM / 16 GB RAM PCs: - VICTORY_RAM_PRESSURE_MB: physical-RAM-gated fence-safe idle trims - VICTORY_LIST_ALLOC_CAP_MB: shed D3D12 command-allocator high-water peak - VICTORY_TRIM_MIN_MS: hold back zero-yield heavy sweeps to stop frame spikes - VICTORY_JOIN_FEWER / RELAY_EACH / TABLED_BITS: submission-path latency toggles - diagnostics-only per-frame refresh/read/dip timers (copystat/dipstat) - play-6gb.ps1 + play-6gb.cmd launcher preset (OPT=447, INPLACE=0, the above) The title is referred to only as "the title" throughout.
This commit is contained in:
1 parent
f0d1eb7682
commit
86184c68f3
42 files changed
+4166
-522
No files matched your search
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0play-6gb.ps1" %*
|
||||
+62
-11
@@ -5,17 +5,22 @@
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe'
|
||||
.EXAMPLE
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -NoFrameGen
|
||||
.EXAMPLE
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -TuneSettings
|
||||
#>
|
||||
param(
|
||||
[string]$Exe = '',
|
||||
[ValidateSet('1080', '936', '720')][string]$Output = '1080',
|
||||
[ValidateSet('ultraperformance', 'performance', 'balanced', 'quality', 'dlaa', 'off')][string]$Dlss = 'performance',
|
||||
[ValidateSet('ultraperformance', 'performance', 'balanced', 'quality', 'dlaa', 'off')][string]$Dlss = 'ultraperformance',
|
||||
[ValidateRange(0, 2)][int]$DropMips = 1,
|
||||
[switch]$FrameGen,
|
||||
[switch]$NoFrameGen,
|
||||
[ValidateSet('fsr', 'dlss', 'auto')][string]$FgType = 'fsr',
|
||||
[ValidateRange(2, 6)][int]$FrameGenX = 2,
|
||||
[switch]$TuneSettings,
|
||||
[switch]$Preload,
|
||||
[string]$DataDir = '',
|
||||
[string]$CacheDir = '',
|
||||
[string]$LogFile = ''
|
||||
)
|
||||
|
||||
@@ -23,8 +28,8 @@ $ErrorActionPreference = 'Continue'
|
||||
$repo = Split-Path -Parent $PSScriptRoot
|
||||
$victory = Join-Path $repo 'target\release\victory.exe'
|
||||
$homeDir = if ($env:VICTORY_HOME) { $env:VICTORY_HOME } else { Join-Path $env:LOCALAPPDATA 'victory' }
|
||||
$cacheDir = Join-Path $homeDir 'cache'
|
||||
$dataDir = Join-Path $homeDir 'data'
|
||||
$cacheDir = if ($CacheDir) { $CacheDir } elseif ($env:VICTORY_CACHE_DIR) { $env:VICTORY_CACHE_DIR } else { Join-Path $homeDir 'cache' }
|
||||
$dataDir = if ($DataDir) { $DataDir } elseif ($env:VICTORY_DATA_DIR) { $env:VICTORY_DATA_DIR } else { Join-Path $homeDir 'data' }
|
||||
$menuFile = Join-Path $homeDir 'victory-settings.txt'
|
||||
$slDir = if ($env:VICTORY_STREAMLINE_DIR) { $env:VICTORY_STREAMLINE_DIR } else { Join-Path $repo 'nvidia-sdk\Streamline\bin\x64' }
|
||||
$fxDir = if ($env:VICTORY_FIDELITYFX_DIR) { $env:VICTORY_FIDELITYFX_DIR } else { Join-Path $repo 'amd-sdk\FidelityFX\bin' }
|
||||
@@ -106,8 +111,25 @@ $settings = [ordered]@{
|
||||
VICTORY_DATA_DIR = $dataDir
|
||||
VICTORY_LOG = 'info'
|
||||
|
||||
# Shader optimiser level (447 = WATERFALL | HOIST_HANDLES): verified GPU win
|
||||
VICTORY_SHADER_OPT = '447'
|
||||
# Physical-RAM-pressure trimming for 16 GB PCs (4096 = start eviction ~2 GB ahead of the cliff; A/B paging max -27%)
|
||||
VICTORY_RAM_PRESSURE_MB = '4096'
|
||||
# Hold back zero-yield (<1 MiB freed) heavy sweeps so churn stops spiking frames (A/B paging churn -4.3x)
|
||||
VICTORY_TRIM_MIN_MS = '5000'
|
||||
# Submission-path toggles: flatten frame-time spikes (A/B mean 137 -> 120 ms, fewer slow outliers)
|
||||
VICTORY_SUBMIT_FRAMES = '3'
|
||||
VICTORY_JOIN_FEWER = '1'
|
||||
VICTORY_RELAY_EACH = '1'
|
||||
VICTORY_TABLED_BITS = '1'
|
||||
|
||||
# CPU threading & submission (FAST_CORES=0 uses both P+E cores on hybrid CPUs)
|
||||
VICTORY_THIN = '0'
|
||||
VICTORY_THIN = '1'
|
||||
VICTORY_THIN_THREADS = '8'
|
||||
VICTORY_LAND_OFF_SUBMIT = '1'
|
||||
VICTORY_FAULT_UNLOCKED = '1'
|
||||
VICTORY_GUARD_HOT = '50'
|
||||
VICTORY_FRESH_OPEN = '0'
|
||||
VICTORY_ASYNC_SUBMIT = '1'
|
||||
VICTORY_JOIN_PARTS = '8'
|
||||
VICTORY_RELAY = '2'
|
||||
@@ -117,6 +139,7 @@ $settings = [ordered]@{
|
||||
VICTORY_JOIN_COPIES = '1'
|
||||
VICTORY_CARD_STEPS = '2'
|
||||
VICTORY_CARD_AWAKE = '1'
|
||||
VICTORY_CARD_SPANS = '0'
|
||||
VICTORY_CARD_BUFFERS_MIN_KB = '64'
|
||||
VICTORY_CARD_BUFFERS_MB = '1280'
|
||||
VICTORY_CARD_ROOM_FOR_TARGETS_MB = '1024'
|
||||
@@ -128,17 +151,19 @@ $settings = [ordered]@{
|
||||
VICTORY_SHOW_AFTER = '1'
|
||||
VICTORY_MAP_THREADS = '1'
|
||||
VICTORY_FAST_CORES = '0'
|
||||
VICTORY_INPLACE = '1'
|
||||
VICTORY_INPLACE_MB = '512'
|
||||
# In-place off: A3 showed it places only ~185 MB here and INPLACE=0 keeps the GPU win
|
||||
VICTORY_INPLACE = '0'
|
||||
VICTORY_TEXSPK_PASS_MS = '8'
|
||||
VICTORY_PASSES_HOT = '1'
|
||||
VICTORY_HELPER_PRIORITY = '1'
|
||||
VICTORY_WC_NO_BACK = '1'
|
||||
VICTORY_WC_NO_BACK_MIN_KB = '1024'
|
||||
VICTORY_GPU_RO_SKIP = '1'
|
||||
VICTORY_SECTION_MB = '2'
|
||||
VICTORY_SOFT_VIEWS = 'copies'
|
||||
VICTORY_COPY_BESIDE = '1'
|
||||
VICTORY_STORE_BESIDE = '1'
|
||||
VICTORY_WINDOWS_VRAM_PERCENT = '80'
|
||||
VICTORY_WINDOWS_VRAM_PERCENT = '85'
|
||||
|
||||
# Texture streaming + 6 GB VRAM mip scale
|
||||
VICTORY_TEXTURE_POOL = '1'
|
||||
@@ -168,6 +193,8 @@ $settings = [ordered]@{
|
||||
VICTORY_AMBIENT_SPECULAR = '1'
|
||||
VICTORY_WATER_LIGHT = '1'
|
||||
VICTORY_EARLY_DEPTH = '1'
|
||||
VICTORY_DEPTH_PLANE_NOW = '1'
|
||||
# Heat haze + decal defrag (visually safe)
|
||||
VICTORY_LEAVE_OUT = '02384a60fda6f2d0,731a39171b568298'
|
||||
|
||||
# Pipeline caching + short wait cap to prevent 500 ms shader-compile freezes
|
||||
@@ -176,14 +203,37 @@ $settings = [ordered]@{
|
||||
|
||||
# Memory stack (SLOT_EVICT sits just above ROOM% so idle textures evict cleanly when roaming)
|
||||
VICTORY_SLOT_EVICT = '1'
|
||||
VICTORY_SLOT_EVICT_PERCENT = '88'
|
||||
VICTORY_SLOT_EVICT_LOW_PERCENT = '78'
|
||||
VICTORY_SLOT_EVICT_PERCENT = '92'
|
||||
VICTORY_SLOT_EVICT_LOW_PERCENT = '82'
|
||||
VICTORY_ALLOCATOR_TRIM = '1'
|
||||
VICTORY_BUDGET_PACK = '1'
|
||||
# Shed the loading/cutscene command-allocator high-water peak (~GBs) under RAM pressure
|
||||
VICTORY_LIST_ALLOC_CAP_MB = '512'
|
||||
VICTORY_TEARING = '1'
|
||||
VICTORY_FPS_LINE = '1'
|
||||
}
|
||||
|
||||
if ($TuneSettings) {
|
||||
$xmlPath = Join-Path $dataDir '7952987A\storage\settings\settings.xml'
|
||||
if (Test-Path -LiteralPath $xmlPath) {
|
||||
$bak = "$xmlPath.bak"
|
||||
if (-not (Test-Path -LiteralPath $bak)) { Copy-Item -LiteralPath $xmlPath -Destination $bak }
|
||||
$c = Get-Content -LiteralPath $xmlPath -Raw
|
||||
$c = $c -replace '<motionBlur value="true" />','<motionBlur value="false" />'
|
||||
$c = $c -replace '<rtDynamicShadows value="true" />','<rtDynamicShadows value="false" />'
|
||||
$c = $c -replace '<shadowParticleShadows value="true" />','<shadowParticleShadows value="false" />'
|
||||
$c = $c -replace '<ssroSampleCount value="2" />','<ssroSampleCount value="1" />'
|
||||
$c = $c -replace '<grassLod value="[^"]+" />','<grassLod value="0.350000" />'
|
||||
$c = $c -replace '<lodScale value="[^"]+" />','<lodScale value="0.750000" />'
|
||||
$c = $c -replace '<smallCullThreshold value="[^"]+" />','<smallCullThreshold value="2.000000" />'
|
||||
$c = $c -replace '<waterReflectionResX value="512" />','<waterReflectionResX value="256" />'
|
||||
$c = $c -replace '<waterReflectionResY value="256" />','<waterReflectionResY value="128" />'
|
||||
$c = $c -replace '<width value="3840" />','<width value="1920" />'
|
||||
$c = $c -replace '<height value="2160" />','<height value="1080" />'
|
||||
Set-Content -LiteralPath $xmlPath -Value $c -NoNewline
|
||||
}
|
||||
}
|
||||
|
||||
if ($Output -eq '936') { $settings['VICTORY_OUTPUT'] = '1664x936' }
|
||||
elseif ($Output -eq '720') { $settings['VICTORY_OUTPUT'] = '1280x720' }
|
||||
|
||||
@@ -198,8 +248,9 @@ if ($dlssMode -ne 'off' -and (Test-Path (Join-Path $slDir 'sl.interposer.dll')))
|
||||
$settings['VICTORY_STREAMLINE_DIR'] = $slDir
|
||||
}
|
||||
|
||||
$barMb = if ($DropMips -ge 2) { '768' } elseif ($fgOn) { '128' } else { '256' }
|
||||
$roomPct = if ($DropMips -ge 2) { if ($fgOn) { '75' } else { '78' } } else { '86' }
|
||||
$barMb = '0'
|
||||
# Fixed texture-queue room line (verified winning setting); was DropMips-derived 70/65
|
||||
$roomPct = '75'
|
||||
|
||||
if ($dlssMode -ne 'off' -and $fgOn) {
|
||||
if ($fgKind -ne 'dlss' -and (Test-Path (Join-Path $fxDir 'amd_fidelityfx_framegeneration_dx12.dll'))) {
|
||||
|
||||
Reference in new issue
Block a user