# Conflicts: # apps/victory/src/play.rs # apps/victory/src/warm.rs # crates/victory-gpu/src/capture.rs # crates/victory-gpu/src/descriptor/host.rs # crates/victory-gpu/src/host.rs # crates/victory-gpu/src/indirect.rs # crates/victory-gpu/src/pipeline/make.rs # crates/victory-gpu/src/pool.rs # crates/victory-gpu/src/queue.rs # crates/victory-gpu/src/resource.rs # crates/victory-gpu/src/streamline.rs # crates/victory-hle/Cargo.toml # crates/victory-hle/src/modules/gameinput.rs # docs/linux-proton.md # scripts/play-foxhound.ps1 # scripts/play.ps1
22 KiB
Linux and Proton (experimental)
Notes from first runs on one Linux PC on 2026-11-27. Windows remains what the project is written for. These runs were short and do not show that the title is stable or playable under Proton.
Tested on
| System | CachyOS, kernel 7.3.6 |
| Card and driver | GeForce RTX 5080, NVIDIA 620.73.04 |
| Build | commit 29d8dbf, cross-compiled on Linux with cargo-xwin |
| Launcher | umu-launcher |
| Settings | Series X profile, DLSS off, frame generation not made ready |
Building on Linux
The pinned toolchain targets MSVC. With clang, lld and
cargo-xwin installed:
cargo install --locked cargo-xwin
cargo xwin build --release --locked -p victory --target x86_64-pc-windows-msvc
cargo-xwin downloads Microsoft's C runtime and Windows SDK, which come under
Microsoft's licence terms.
The program is then at
target/x86_64-pc-windows-msvc/release/victory.exe.
Running
Use your own dump. Change the three paths to yours:
env GAMEID=umu-default \
WINEPREFIX="$HOME/Games/victory-prefix" \
PROTONPATH="$HOME/.local/share/Steam/steamapps/common/Proton - Experimental" \
umu-run /path/to/victory.exe \
play /path/to/dump/game_scarlett_master.exe --dlss off --no-framegen-ready
Logs are in the prefix, under
drive_c/users/steamuser/AppData/Local/victory/logs.
Recording memory during a systemd user service
While the service is active, run the sampler from a separate terminal outside its cgroup. Substitute the unit name used for the trial.
unit=example-trial.service
group=$(systemctl --user show --property=ControlGroup --value "$unit")
test -n "$group" && python3 scripts/linux_cgroup_sample.py "/sys/fs/cgroup$group" --seconds 90 > host.csv
The sampler flushes a CSV row each second with host available memory, host and
service memory pressure, service memory, swap, task counts and controller
events. It reads procfs and cgroup v2 independently of Wine and GPU tools.
Missing controller values have an empty field and a reason in errors. A
directory descriptor pins the original service instance through removal. UTC
and monotonic timestamps support comparison with the journal on the same boot.
Shader compiler crash with proton-cachyos
| Proton | vkd3d-proton | What happened |
|---|---|---|
proton-cachyos 11.0-20261015 (slr) |
3.1.0 | crashed after about a minute or less, in both runs |
| Proton Experimental 11.0-20261123b | 3.2.0 | built both shaders below and went on |
With proton-cachyos, the Proton log (PROTON_LOG=1) showed an illegal
instruction inside NVIDIA's shader compiler (libnvidia-gpucomp):
err:vulkan:vkCreateComputePipelines Exception 0xc000001d in Unix call.
In each run, one translated compute shader had no host pipeline line after it
in the layer's log, so it is the likely trigger (the driver does not name it):
- first run:
4e296b1885c37b29; - second run, with that one added to
VICTORY_LEAVE_OUT:8bb272e763f76148.
Switching to Proton Experimental avoided this without leaving either shader out. The two setups differ in more than the vkd3d-proton version, so which difference matters is not known.
The Experimental run lasted a little over two minutes, with about 670 host
pipelines logged. The Proton log had no such error when checked about 90
seconds in. The run ended with title suspended; ending the title.
If you have to stay on the other Proton, a shader can be skipped, at the cost of whatever it draws or computes. Keep the two the launcher already leaves out:
--set VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,<hash>
This got past the first shader only to stop at the second.
Also seen
no host pipeline library: pipelines are not keptappears in the layer's log, with Proton Experimental too.--preloadwas started once. The Proton log showedvkd3d-protonfailing to open its cache's write file (Failed to open stream archive write file exclusively), probably because several processes compile at once. How much of a preload is kept under Proton has not been measured.- A full
PROTON_LOG=1log reached about 290 MB in one short run.PROTON_LOG='-seh,-unwind'kept it far smaller. - Code that reads Linux's books from inside Wine:
Z:\proc\selfis the wineserver's, not the reading process's (a file opened through drive Z: is looked up by it). A process's own entry is/proc/<its Linux pid>. - The sampling profiler (
VICTORY_PROFILE) stopped the title within minutes under Wine: it suspends the title's threads to read their stacks.perf record -p <pid>samples from the kernel and pauses nothing.
Compiled pipelines between runs
Under umu-run nothing sets NVIDIA's shader disk cache (Steam does, for its
own games), and vkd3d-proton's cache keeps only SPIR-V, so every run compiles
every pipeline again: three minutes into play, NVIDIA's compiler
(libnvidia-gpucomp) was 46 % of the CPU samples (perf), 17 % of them on
the title's own threads. Give the driver a folder of its own and a size it
takes:
export __GL_SHADER_DISK_CACHE=1
export __GL_SHADER_DISK_CACHE_PATH="$HOME/.cache/victory/nvidia"
export __GL_SHADER_DISK_CACHE_SIZE=4294967295 # under 4 GiB
export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1
export VKD3D_SHADER_CACHE_PATH="$HOME/.cache/victory/vkd3d" # a writable folder
A size of 16 GiB (17179869184, 2^34) left the cache unwritten, as if read
into 32 bits as 0. With the cache, the second run had 237 pipelines still
being made at 90 seconds where the first had 508 at two minutes, and none left
a minute sooner (RTX 3080 Ti, driver 620.73.04).
The picture is soft unless the window is borderless
Without VICTORY_FULLSCREEN=1 the title's window is fitted to the work area
(the screen less the taskbar: 2488x1400 for a 2560x1440 picture on a 1440p
screen) and the swap chain is stretched into it, so every frame is resampled.
VICTORY_FULLSCREEN=1 makes it borderless at the screen's size and the
picture is shown pixel for pixel.
Wine's own HLSL compiler
Wine's builtin d3dcompiler_47 refuses several of the helper shaders victory
compiles at run time, and accepts [RootSignature(...)] but leaves it out of
the code, so vkd3d-proton fails CreateRootSignature with E_FAIL (no RTS0
part). The helpers that read their root signature from their code are then
off: the depth planes' pass, keeping the card awake, the scatter, the upload
check, the tiles' look. A DXC fallback for them is in a pull request of its
own. Don't install d3dcompiler_47 with winetricks either: it is too old for
these shaders.
DLSS Super Resolution (checked without the title)
Get-NVIDIA-DLSS.cmd and the built-in download run Windows PowerShell, which
a Proton prefix does not have. scripts/get-nvidia-dlss.sh does the same on
Linux (curl and python3): it fetches NVIDIA's Streamline release from NVIDIA's
GitHub and puts the eight files and NVIDIA's licences where victory.exe
looks, %LOCALAPPDATA%\victory\nvidia-sdk\Streamline\bin\x64 in the prefix.
With the files there the launcher does not try to download them.
scripts/get-nvidia-dlss.sh "$HOME/Games/victory-prefix"
Checked on 2026-11-28 with victory upscaler-check --device, which runs DLSS
on stand-in textures and needs no game files:
| System | CachyOS, kernel 7.3.5 |
| Card and driver | GeForce RTX 3080, NVIDIA 620.73.04 |
| Build | commit 63b902f, cross-compiled on Linux with cargo-xwin |
| Proton | Proton Experimental 11.0-20261123b, umu-launcher, PROTON_ENABLE_NVAPI=1 |
sl.interposer.dllpassed the signature check (WinVerifyTrustunder Wine), and Streamline verified its plugins' signatures.DLSS Super Resolution loaded streamline=2.14.16 ngx=310.9.16, thenDLSS ran three times on stand-in textures; the device is fineandStreamline shut down: ok (0).- Frame generation was reported as not supported, as it is on an RTX 30 card.
- Streamline's log showed a memory budget of 0.00 GB under Proton.
- Streamline still starts the driver's
nvngx_update.exe(NVIDIA's model updater), though no downloaded plugins are loaded.
Run under umu-run, the check's own lines did not reach the terminal;
umu-run cmd /c "C:\victory.exe upscaler-check --device > C:\check.txt 2>&1"
writes them to a file. VICTORY_STREAMLINE_DIR takes the Windows path, for
example C:\users\steamuser\AppData\Local\victory\nvidia-sdk\Streamline\bin\x64.
MFG Unlocker on an RTX 30 card
scripts/get-mfg-unlocker.sh fetches MFG Unlocker
v1.7.2 into the prefix's %LOCALAPPDATA%\victory\mfg-unlocker, checked against
the same SHA-256 values as get-mfg-unlocker.ps1. upscaler-check does not
load the mod as play does, so for the check it was put beside victory.exe
as winmm.dll with WINEDLLOVERRIDES='winmm=n,b' (same setup as above,
2026-11-28):
- Streamline then reported frame generation as supported, loaded it, switched it on and turned Reflex low latency on.
- No frame was generated:
upscaler-check --device --presentreported180 presents, 180 with it on, 180 frames shown by it, and Streamline logged[sl.dlss_g] NGX create feature failed 0xbad00002at every present. The mod's own state stayedroute=pending. The same withRtx30FlipMetering=0.
So on this setup MFG Unlocker does not give frame generation; FSR 3 frame generation is the way on RTX 20 and 30 cards. Why NGX refuses the feature under Proton was not found.
Not tested
DLSS in the title, frame generation (DLSS or FSR 3), HDR, other cards and
drivers, MFG Unlocker on RTX 20 cards or in the title, and long play sessions. Whether DLSS
needs PROTON_ENABLE_NVAPI=1 was not tried.
Longer runs on an RTX 4090 (2026-11-28)
A second PC, played for hours over two days, with runs of 9 to 16 minutes measured headless. What helped, what did not, and what is still open.
| System | Arch, kernel 7.3.6-zen, i9-14900KF, 62 GB |
| Card and driver | GeForce RTX 4090, NVIDIA 620.73.04 |
| Proton | Proton Experimental 11 (proton runinprefix, no Steam), inside gamescope 3.17 |
| Settings | Series X profile, DLSS quality (1706x960 to 2560x1440), DLSS frame generation 2X |
Heads, textures and light missing: vkd3d-proton 3.2.0
With the vkd3d-proton of Proton Experimental (3.2.0), seven compute shaders
never became pipelines. stderr had
thread 'victory-pipelines-N' has overflowed its stack (in dxil-spirv), the
thread then sat without using the CPU, and the layer's log stayed at
(7 being made). In the game, people had no heads, many surfaces no texture,
and the light was wrong. The shaders:
17829ac71aab4e8d, 32ed072b9f845048, 559d9f0184e15fe3, a1b20bc47e3c9597,
afeea48bbb9913ad, e8c962358d862e3f, fdd56d97a806bcca
A 64 MB thread stack did not help. vkd3d-proton master (71cae091b, the
d3d12.dll and d3d12core.dll of its CI build) made all of them, about 1930
pipelines, and the picture was right. The two files go beside victory.exe:
with Proton's d3d12=n override, the program's own folder is searched first.
GPU hangs: Xid 13, Xid 109, then the game's watchdog
Runs ended after 2 to 14 minutes: the kernel log had Xid 13 (MMU fault) or
Xid 109 (CTX SWITCH TIMEOUT), and 30 s later the title crashed itself at
+0x23cf683 (its watchdog for a card that stopped answering, #628).
VKD3D_CONFIG=breadcrumbs and descriptor_heap_robustness each held in some
runs and not in others.
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains
stopped them here. Marvisak/VIctory#542 found that with this extension NVIDIA and vkd3d-proton wrap a 32-bit buffer offset and read 4 GiB past a buffer (9 of 9 runs there). Since setting it: two runs of 16 minutes, six of 9 to 10 minutes and some hours of play, without one Xid 13 or 109. The cost in frame rate was not measurable here; the title's CPU side limits it.
Still open: in the chase cutscene after the prologue (int_chase), nearly
every run from one save hit Xid 31 (MMU Fault: ENGINE GRAPHICS ... GPCCLIENT_GCC faulted @ 0x5_8d249000, almost always that address) about
25 to 30 seconds in; the frames stop and 30 s later the title's watchdog
ends it at +0x23cf683. It came with frame generation on and off, with
and without a VRAM budget, and with VK_NV_raw_access_chains on or off.
(An earlier version of this note took Xid 31 at the end of runs for the
process being torn down; those were this fault.)
VKD3D_CONFIG=no_descriptor_heap stopped it: 4 of 4 runs from that save
through the cutscene with it, against nearly every run faulting without.
vkd3d-proton master uses VK_EXT_descriptor_heap by default since
2026-10-22; vkd3d-proton#3197 has the same GPCCLIENT_GCC fault (one of the
same addresses, 0x6_01492000) on an RTX 4090 with it. The frame rate did
not drop measurably here.
Wine server: memory views in a tree
The stock Wine server finds a memory view by walking a list of all of the
process's views, on every map and unmap (Wine bug 60868, fixed upstream in
3217449b1f, not in Proton Experimental 11.0-20261112). The title keeps
tens of thousands. A server built from Proton's own Wine commit with
BrayanOfficiel/VIctory-linux's wineserver-view-tree.patch (2 runs each, same
save, chase cutscene): 19.1 and 19.3 fps against 13.7 and 15.3, preparing
30 ms a frame against 54 to 88, no frame under 8 fps against 5 and 12 lines.
Before that was known, VICTORY_VRAM_BUDGET_MB=12000 made runs last
longer. NVIDIA's Linux driver does not move memory out to system RAM the
way Windows does, so a budget above what is free on the card is worse here
than on Windows. With the extension off, 19000 on the 24 GB card held.
Frames only when the window changes (nested gamescope)
In a nested gamescope (SDL backend, on Hyprland) a new frame showed only
when the workspace changed. Presenting through gamescope's WSI layer fixed it:
ENABLE_GAMESCOPE_WSI=1 VK_LOADER_LAYERS_ENABLE=VK_LAYER_FROG_gamescope_wsi_x86_64
Things not to change
VICTORY_SCREEN_WAIT_MS=0: full-screen passes then go out without their pipelines; the picture was dark brown and the light gone.VICTORY_FAULT_UNLOCKED=1withVICTORY_GUARD_HOT=50: tried because slow frames are mostly the write watch and the guards (below); in play the title died twice within a minute, writing to a guarded page.- The textures switches of #168 (
VICTORY_TEXTURE_CATCHUPand the three*_MS): a crash after one minute in the run they were tried in.
Restart after warm-up
After the first start of a new build the layer restarts the game once. The
restart is a PowerShell command (Start-Sleep 3; & victory.exe play ...); here
it never started the game again (Wine's powershell.exe is likely the reason,
not checked), so to the player the game just ended. --set VICTORY_WARMUP_RESTART=0 starts it without the restart; the frame rate after
that was the same as after one.
Frame rate
25 to 28 fps headless (1080p window, 1440p output) in the prologue, the 10
minutes after loading a save; about 20 in play at 1440p, with DLSS frame
generation doubling what is shown. The card is
idle most of the time. In the slow scenes (outdoors, the chase) single
frames take 100 to 400 ms: per the layer's own breakdown, nearly all of it on
the submitting thread asking the write watch and the guards what the title
wrote (GetWriteWatch, VirtualQuery, VirtualProtect and faults all go
through Wine's emulation and one lock). In one of four runs from the same save
this did not recover and fell to 0.2 fps for minutes, which looks like a hang.
VICTORY_CARD_AWAKE=0 and VICTORY_WIDE_THREADS=4 were on in a session that
did not do that; one session, so not shown to help.
Also: #207's placeholder fix took the frame rate from 18.6 to 20.5 here;
DLSS super resolution and frame generation work under Proton (Streamline's
setDynamicMFGParams failed errors in the log changed nothing visible); and
the PlayStation prompts of #937 built and applied under Wine (2.5 s).
Wine on a 16 GiB RTX 4060 Laptop host
The Wine changes keep physical-page file backing opt-in. With a recent Wine,
enable it with VICTORY_FILE_BACKED_PAGES=1. This uses the configured cache
directory's physical-pages child. To choose another location, set
[paths].physical_pages_dir in victory.toml to an absolute directory outside
the checkout. Choose a real disk filesystem, not tmpfs; leave enough disk
headroom for several GiB of touched pages. A file creation or section-mapping
failure is reported as an allocation failure, not silently retried in RAM.
Windows and ordinary Wine pagefile backing remain unchanged when disabled.
File-backed sections are never eligible for native GPU import. Their views
use host copies, including when VICTORY_PORT_CONSTANTS is enabled. Successful
native heap creation alone is not a coherence guarantee on Wine/NVIDIA.
The last page token, alias or retained DirectStorage window owns the backing
file; ordinary final release removes it. Killing the whole Wine process tree
can leave delete-on-close files behind. Do not delete backing files belonging
to a live process.
Two compiler corrections avoid increasing worker stacks: iterative ordered decision-diagram evaluation from #1103, and single-latch DXIL loop normalization from canonical #2309. The backing policy follows canonical #2519, adapted to this fork's section windows and native-import paths. These changes do not alter wave semantics, add shader exclusions, or disable the title watchdog.
Focused checks on Wine 11 / NVIDIA 590.48.1 / RTX 4060 Laptop:
- Configuration and file-section alias/token/window lifetime regressions pass.
- The loop shader checks all 384 output words on the physical adapter.
- Original compute shader
fdd56d97a806bccavalidates and creates its native pipeline at the normal worker-stack size, including on stock vkd3d. The baseline emitted and SDK-validated it but overflowed during native pipeline creation. No original-program GPU dispatch is claimed by this replay. - Production scatter updates and a 128 KiB file-backed alias fixture pass on
stock vkd3d-proton
2576c0b4adfae4a. The latter checks three rounds of submission-time CPU-to-GPU refresh, GPU copy/writeback, and later CPU alias writes; it does not exercise title shader dispatches or automatic reclaim. - The file-import gate rejects ineligible and stale section generations.
To run the opt-in hardware file-copy regression, set VICTORY_TEST_PAGE_DIR
to a writable disk directory visible to the Windows test process, then run
cargo test -p victory-gpu --lib file_backed_aliases_preserve_gpu_copies_and_later_cpu_writes -- --ignored --nocapture --test-threads=1.
The test requires a real D3D12 device rather than silently skipping it.
These focused results alone do not establish completed world loading,
correct lighting, controllable gameplay, or sustained frame rate.
A guarded stock-vkd3d title check displayed the account picker, and one live confirmation advanced to loading artwork. The first loading trial stopped at the lab's 10 GiB free-disk floor after 87 seconds, not at a RAM limit.
After reclaiming obsolete generated artifacts, loading trials stopped when
nvidia-smi exceeded the guard's two-second deadline. The last successful
samples still had about 6.6 GiB available RAM and 4.0 GiB global GPU use.
Telemetry recovered after the Wine scope stopped; the queried kernel intervals
contained no GPU fault or reset. This does not establish a GPU execution hang,
nor does it certify gameplay. The external resource guards must remain enabled.
The VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains workaround described in
fork #1199 and
canonical #542 passed the focused
stock-vkd3d GPU copy/scatter checks here, but did not prevent the loading-time
telemetry stop. It is not a demonstrated fix for this laptop's remaining stall.
Rendering observation and remaining performance limit
On 2026-11-28, the user observed correctly-looking rendered imagery on the
RTX 4060 Laptop / 16 GiB Wine host using these changes, the fork's existing
play defaults, file-backed pages, native imports disabled, stock vkd3d
2576c0b4adfae4a, and the raw-access-chain workaround. The fork's disabled
BVH builder, ambient-lighting estimates and two existing shader exclusions
remain: visually convincing imagery is not full rendering-correctness proof.
This was not a controlled comparison identifying one decisive patch.
The same run's cgroup reached its 9,216 MiB memory ceiling, with 114 max
events and no OOM or OOM kill. At about 200 seconds, I/O pressure reported
full avg10=39.27; title and DirectStorage threads were sampled waiting in
folio_wait_bit_common and balance_dirty_pages. These observations identify
substantial paging/writeback stalls, not exclusively GPU execution time or
inode-specific attribution. Peak sampled GPU use was 5,903 MiB and minimum
available RAM was 2,349.6 MiB. Do not raise memory limits to mask this pressure.
The diagnostic supervisor stopped the run after its kernel-journal query
exceeded three seconds; the title did not report a crash in that observation.
The exact kernel interval contained no GPU fault/reset or OOM signature.
A diagnostic /proc/PID/syscall read was denied and produced audit messages;
it has been removed from the local observer. Scheduled screenshots missed
the scene the user saw. Controllable gameplay, sustained FPS, long-run
stability and a matched performance improvement remain unverified.