Linux (Wine) + NVIDIA RTX 5070 Ti on 0a43566: RT builder 53/53, settings that hold the picture, and a warm trap (tests in progress) #67
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#67
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?
@Mumogg on GitHub · 2026-11-26 01:22 UTC · original
Status: tests in progress. This is a first report from one machine; the in-game verification with the full set below is still running. I will post updates in this issue.
Machine
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains0a43566, cross-built on Linux (--profile diag --features diagnostics), plus the local changes belowWhat I merged locally on top of
0a4356654f3815,3e36c41). With it and #66, the ray-tracing structure builder reaches 53/53 host pipelines on NVIDIA ("the ray-tracing structure builder runs") and stays on in game. Without them it is 50/53 and stays off.stub_pipeline_is_created,views_are_made_beside_the_heap_and_copied_in).placeholder()fallback from #59. Measured here: questions about holes fell from ~6,300-6,500 a frame to 5, and preparing fell to ~30-55 ms a frame.Settings for Linux + NVIDIA (from #13, #35, #59)
On top of
play.ps1's defaults:Why #35 matters here: with the defaults (
THIN=1,JOIN_PARTS=8), my log showed ~4,100-4,300 of ~15,400 dynamic tables refused per frame, and the draws that needed them were dropped. In game that looked like missing walls (sky visible through them) and objects that flicker in and out. The in-game run with the settings above, a full cache and the descriptor PRs is the test still in progress.A trap with
warmon Linuxvictory warmmust run with the same vkd3d environment as the game (hereVKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains). I first warmed all 83,560 pipelines without it (40 min). The next game run still made pipelines at the same rate and dropped ~500-1,000 draws a frame. A second warm with the same variable as the game compiled at the cold rate again, which shows the first one had not been reused.Also: any change to the translator (merging a shader PR) changes the warm fingerprint, so the whole warm runs again (~40 min for 83.5k pipelines here).
Before warming, with a cold or half-warm cache, this fork draws without the pipelines it is still making. On this machine that meant 800-1,200 draws plus 2,000-3,800 indirect dropped per frame and ~16,000 textures waiting. The picture was blurry and incomplete. Frame time was ~380 ms, of which only ~80 ms was work: 55 ms preparing, 8 ms on the GPU, 15 ms copying back. The rest was waiting for pipelines.
Next
-Safechanges the texture backlog (~16,000 waiting).No game data, code or screenshots are included.
AI-assisted: the runs, the measurements and this text were produced with Claude Code on my machine, at my request.
@Mumogg on GitHub · 2026-11-26 02:55 UTC · original
Update 1 (same machine: RTX 5070 Ti, Wine 11.22 + vkd3d-proton).
NVIDIA's Linux driver keeps only 1 GB of compiled shaders by default. A full
warmof ~83.5k pipelines evicts itself, so the game compiles again. Set the following for bothwarmand the game:With them,
~/.cache/nvidiareached 4.0 GB after the warm. A re-make of 300 warmed pipelines took a median of 0.6 ms each. The game'sVICTORY_*settings do not change the pipelines: the same probe gives the same median with all 26 of them set.Even with a complete warm, the frame was dominated by #73 / fxceless/victory-fork#1181. The log showed
500.3 ms waiting for pipelinesin every world frame. WithVICTORY_PIPELINE_WAIT_MS=50, over 7 scripted minutes from the same save, the world median went from 672 to 411 ms a frame (1.5 to 2.4 fps), and p90 from 2,425 to 976 ms. Cutscenes became visible.I ported fxceless/victory-fork#1234 (a pipeline is waited for in one frame only) to this tree. It applies to
pipeline/make.rsby hand and its two tests pass here. Combined with the default 500 ms budget, "being made" fell from ~800 to 25-80. Frames still waited up to 500 ms while the world loaded new pipelines. #1234 with a 50 ms budget is the next run.Still open on this card:
LAND_ECHO=0is set.TEXTURE_NO_WAIT=0comparison from fxceless/victory-fork#1181 is not done yet.AI-assisted (Claude Code).
@bordersky on GitHub · 2026-11-26 05:00 UTC · original · edited 2026-11-26 06:07 UTC
On the missing skin with the builder on: here it was not the builder, it was the title's checkpoint save.
Same symptom (main characters' faces gone, only eyes, teeth and hair drawn; secondary characters such as the guard complete), on Linux too (RX 7900 XT, Wine + vkd3d-proton master, RADV,
b0cfe2bwith the #59 fallback,VICTORY_BVH_BUILDER=1at 53/53). It survivedVICTORY_BVH_QUARANTINE=1and was not a VRAM budget: the card and shared memory were at the same level as in runs with faces.The cause was
SARC0015in the title's save folder (<data>/7952987A/saves/<user>/<title>/SARC0015~…). Moving it aside brought the faces back with the builder still on. It happened twice: the second badSARC0015was written seconds before that run was killed (an out-of-memory guard ended the process), and moving it aside fixed the faces again. Earlier runs here were also often ended abruptly (closing the window, device removals). So a checkpoint written while the process dies seems enough to load characters without their faces afterwards.Two cheap things for anyone seeing this: move
SARC0015aside before bisecting switches (the game starts again from the beginning, thePlayersave keeps the rest), and keep a copy of the save folder from before each run, to go back to a good checkpoint instead of the start.@bordersky on GitHub · 2026-11-26 06:07 UTC · original
Correction to my comment above: the save was not bad. Loading a checkpoint is what loses the faces here.
I kept a checkpoint (
SARC0015) written during a clean run (no crash, no kill; the process was stopped minutes after it was written), copied it aside, and loaded the identical copy in two runs:VICTORY_BVH_BUILDER=1)Three different checkpoints, including this clean one, all gave the same result, and every run from a new game had the faces. So moving
SARC0015aside only "fixed" it by starting a new game, and the advice to keep good copies of the save does not help: on this setup (Linux, Wine + vkd3d-proton master, RADV,b0cfe2bwith the #59 fallback,VICTORY_RELAY=1 VICTORY_CARD_STEPS=0 VICTORY_LAND_ECHO=0), a session resumed from a checkpoint draws the main characters without faces, with any of the settings tried, the builder on or off. I have not tried Windows.That makes it a candidate for the missing skin reported here and in #75 as well: worth checking whether those runs had loaded a checkpoint. I will look for what differs in the title's load path between a new game and a checkpoint.
@Beqren on GitHub · 2026-11-26 06:30 UTC · original · edited 2026-11-26 08:54 UTC
@bordersky: I think I can explain the checkpoint-against-new-game result, from the same stack (RADV, vkd3d-proton, RX 9070,
85d5641): it is not the save or the title's load path, it is timing against pipeline creation.The pass that builds a head's skin mapping is a compute dispatch the title issues once per character. If its host pipeline is not made at that moment, the layer drops the dispatch and that head never gets its skin: eyes, teeth and hair are left, exactly as you describe. Resuming a checkpoint loads the main characters at once, while that pipeline is still being made, so they lose it; in a new game they turn up later, after it exists; characters that load later (your guard) come out whole.
Evidence here: every session on this machine resumes from a checkpoint (
SARC0015). On unmodified85d5641the main characters had no skin; with one change, a compute dispatch waits for its own pipeline (outside the frame's budget, up to 20 s, then gives up once and logs it), they have it, in every run since, with the builder on or off. A warm start then showed "waiting for pipelines" at 0.0-0.4 ms a frame, so the wait costs nothing once the pipelines exist. It is the commits "a compute dispatch waits for its pipeline outside the frame's budget" now in #166 with bounds (the first version could hold a frame past the title's watchdog on a cold cache), active only under Wine.Two things that follow, both only tested on this one AMD card:
VICTORY_RELAY=2 VICTORY_CARD_STEPS=2(the play.ps1 values). So on RADV the slowerRELAY=1 CARD_STEPS=0from #13 may not be needed for the skin; I have not tried NVIDIA, and #13 may be a different fault there.@Mumogg: on the
500 ms waiting for pipelinesin every frame: here it was six compute pipelines that are never made under vkd3d-proton (17829ac71aab4e8d,32ed072b9f845048,afeea48bbb9913ad,559d9f0184e15fe3,a1b20bc47e3c9597,e8c962358d862e3f): its DXIL converter recurses without end on a loop with two back edges and the worker thread dies silently, so they stay "being made" for the whole run and no warm helps. If your frame line still shows a few "being made" in a settled scene after a full warm, it may be the same six; emitting single-latch loops made all six build here (285 ms -> 53 ms a frame, default budget). The converter is shared, so I would expect it on NVIDIA under vkd3d-proton too, but I cannot test that.Done with an AI coding assistant and tested by me on the machine above.
@tylerstraub on GitHub · 2026-11-26 06:55 UTC · original
A data point from this line on an RTX 5090, for NVIDIA + Proton users:
experimental-11.0-20261112(vkd3d-proton 3.2.0), Series S,--features diagnostics.033be27, which is this fork's0a43566plus NVIDIA tuning, cross-compiled with cargo-xwin.CTX SWITCH TIMEOUT(8 runs), thenVK_ERROR_DEVICE_LOST. Not moved byVICTORY_BVH_MISS=1, the quality settings with card compares off,VICTORY_MESH_TEST=skip, orVICTORY_WAVE_DEEP_SKIPS=0.VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains(Marvisak/VIctory#542) plus Marvisak/VIctory#2143 (e04c078), ported by hand. After that: 20 minutes in the world, through the prologue, a checkpoint loaded, controller play, no Xid. Both were applied together, so I can't yet say which one this card needed.This fork doesn't have
e04c078yet. fxceless has the same port open as fxceless/victory-fork#1006, and the hand port onto0a43566-line code is about 27 lines inlower.rs(the upstream commit doesn't apply cleanly). Happy to open a PR if useful.