8 GiB (RTX 5070 Laptop) on a Series X dump: reference state, every measurement, and the settings that remove the world #467
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#467
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Logan-Gaillard on GitHub · 2026-11-27 13:43 UTC · original
8 GiB laptop (RTX 5070) on a Series X dump: what renders, what removes the world, and every number behind both
An open working note, posted so that anyone — human or agent — picking up the 8 GiB case does not have to re-derive it from scratch. Everything below was measured on one machine, one dump, one afternoon, with the CSVs and screenshots kept. Where a number is missing I say so; where I got something wrong earlier, I say that too.
Cross-posted from
Logan-Gaillard/victory-leafy-dell#2, where the runs were made, and fromBelobug/VIctory-Belobug-AMD#597. Posted here because AvatarManz is one of the continuations thatcarries the code these measurements are about, and because
101Leafy/victory-leafyand its twelve forkshave issues disabled. The card in the note is NVIDIA; the parts that do not care about the vendor are the
memory budget, the frame-CSV method, the submission count and the failure modes. If this belongs in a
discussion rather than the tracker, say so and I will move it rather than leave it here.
1. The machine and the dump
D3D12CreateDevice(None, …)picks, and what the port ran on for its first hours heredrawn_of_the_screen = 2.025)game_scarlett_master.exe; image hashb99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93The one hardware bug found here, and it is worth more than any tuning: on this hybrid laptop the default adapter is the integrated GPU, and the title ran there at about a frame a second.
IDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)fixes it;VICTORY_ADAPTER=<substring>names one. That patch is PR #27 in101Leafy/victory-leafyand is in Altorru's integration branch.2. The state that renders correctly (keep it as the reference)
Old base, one patch, no environment variables at all:
With the shader cache pre-warmed (
victory.exe translate --cache shaders.rpf game_scarlett_master.exe …, 25 985 containers in 110 s, 1 332 MB of cache) this is the state the owner of the card calls excellent: full scene, characters, vehicles, textures, UI in the right place, 29.8–30.0 fps (33.3 ms) once the world has loaded, 0.5–2.5 fps during the world load itself.Its own record, from the run used as the reference in this note (140 s, 1 451 frames, no crash):
frame_usmediancard_idle_usmedianprepare_us/copy_us/texture_usmedianvram_usedpeakvram_sharedpeakdrawnmedian / p90Note that last line:
drawnmedian 10 is normal here, because most frames are menu or cutscene with the title's own 30 Hz clock. It is not evidence of anything, and I nearly reported it as a regression before checking the reference build.3. The method, so the numbers can be argued with
timeout; one build per case; the same save, the same dump, the same shader cache.VICTORY_FRAMES=<file>— which needs--profile diag --features diagnostics, because the CSV recorder is behind#[cfg(feature = "diagnostics")]. A plain--releasebuild writes no recorder and says nothing about it.CopyFromScreenon its rect), analysed for luminance, contrast, share of pixels under 16, neighbour-difference detail and saturation spread.4. The four cases
1080p1080p perf20eb157f+ adapterbf0e1457(integration branch)frame_usmediancard_idle_usmedianvram_usedpeakvram_sharedpeakbudget_refusedsnapshot_bytes5. What actually breaks, in the order it matters
5.1
VICTORY_PIPELINE_WAIT_MS=0removes the 3D outright. An earlier launcher set it "so a frame never waits for a pipeline still being made". On this card it dropped 5 643 draws over 728 pipelines (draws dropped for pipelines not made yet) and the scene was not drawn at all — the frame got faster because its content was gone. With it unset, draws come back (11 209 / 3 376 / 2 636 per frame during load). Altorru has since removed it from the launcher; I confirm from both sides that this was the cause.5.2 The new base does not survive without the memory switches. Case B, nothing set but the log and the CSV, dies at frame ~85:
a breakpoint the title raises itself (minidump written, upload blocked). The reference base does 1 451 frames on the same dump with nothing set. So on 8 GiB the integration branch is not runnable without the launcher's
VICTORY_LEVELS_ON_DEMAND=1andVICTORY_CARD_BUFFERS_MIN_KB=64; those are not cosmetic. Whoever bisects this: the suspects are the memory-related merges (budgeted card memory, sweep of render targets), not the CSV work.5.3 The memory overshoot is the visual bug. With the profile on, both 1080p runs reach 9.6 GB of shared memory against a 7.47 GB budget, and
budget_refusedstays 0 for every single frame — nothing is refused, so the "memory this port keeps follows the card's budget" change is not reached by the path that allocates here. A card 2.2 GB past its budget spills into shared memory, and everything that reads back from the title gets slow and lossy.VICTORY_TEXTURE_NO_WAIT=1then converts "waiting for room" into "absent": that is why the environment is missing rather than late. The reference base also goes past budget (7.95 GB), but by 2.8 GB less.5.4 One of the fill-forward pair blanks a frame.
VICTORY_FILL_FORWARD/VICTORY_PLACED_ORDER(both off in the engine, on only in theperftier) produced one capture with detail 0.32 against 2.68 in the baseline tier, luminance 20.3 — a flat field. It is the failure mode documented for the pair (constants read ahead of the copy). It did not happen on every frame, so a screenshot shows it only sometimes; the CSV will not show it at all.5.5 The five switches bought no frame time here. 33.3 ms (C) vs 33.4 ms (D), with the card idle 32.5 ms of a 33.3 ms frame. Whatever the ceiling is on this card at 1080p, it is not the card, and this run cannot see the difference the experiments make. Ten of ten samples sit on the title's own 30 Hz clock.
6. The arithmetic the target lives or dies by
preparing_usmedian is 3.0–3.6 ms only because the title is at its own clock. During world load the same run reports 300–900 ms per frame withon the GPUat 400–890 ms andcopying back100–137 ms per frame.snapshot_bytesis a new column in the integration branch, and it answers its own question: two in flight is ~1.4 GB more, on a card already 2.2 GB past budget. Not payable as things stand.7. Reproduce it
Harness (Linux/Git Bash, no dependency beyond Rust, PowerShell for captures):
baseline.sh [seconds]VICTORY_*, default cachenoswitch.sh [seconds]ladder.sh 540p|720p|936p|1080p|1440p|4k [perf] [seconds]VICTORY_FRAMESset.freebuff/csv-report.py <csv…>.freebuff/img-stats.py <png…>.freebuff/focus-shot.ps1 -Path out.pngUseful switches, all verified to exist in the tree they are used with:
VICTORY_OUTPUT(1920x1080 / 1664x936 / 1280x720 / 2560x1440 / 3840x2160; below 720p needsVICTORY_TEST_LOWRES=1),VICTORY_ADAPTER,VICTORY_FRAMES,VICTORY_CARD_SPANS,VICTORY_DISPLAY_HOST,VICTORY_WC_NO_BACK,VICTORY_TEXTURE_SWEEP_TARGETS,VICTORY_LEVELS_ON_DEMAND,VICTORY_CARD_BUFFERS_MIN_KB,VICTORY_JOIN_ONE_CALL,VICTORY_TEXTURE_NO_WAIT,VICTORY_TEXTURE_GUARD,VICTORY_AMBIENT.540p does not take on this dump: the loader accepts
960x540(withVICTORY_TEST_LOWRES=1) and the title then presents 1280x720, i.e. it clamps to its smallest mode.936p(1664x936) is one of the title's own five modes and cannot be clamped, so it is the low rung to trust.8. What I would ask of whoever picks this up
budget_refusednon-zero or explain why it stays 0 whilevram_sharedreaches 9.6 GB against 7.47. Either the budget is advisory on this path, or the accounting is measuring something else than what is allocated.card_span_*values (I forgotVICTORY_CARD_SPANS=1on two runs, so those columns are 0 by absence), no long settled-world run at 1080p, and no A/B ofTEXTURE_NO_WAIT/TEXTURE_GUARD/AMBIENTon their own — they are in the profile that produces the incomplete world, but I have not isolated them.9. Provenance
101Leafy/victory-leafyPR #32, launcher in PR #31.x100column that mis-scaled it by a hundred: discussed in PR #24 / #30. It is 58, not 5 800.MERGEABLE).If you are an agent reading this: the single most useful thing you can do is reproduce case A on your own card and post its
frame_usmedian plusvram_sharedpeak against the numbers in section 2. That gives everyone a second point on the same curve.