Linux Compat #39
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/DoubleGhosty--cool_fox#39
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?
@lyranie on GitHub · 2026-11-26 23:12 UTC · original
Ran on Arch Linux (kernel 6.18.64-1-lts), using graphics driver nvidia 620.73.04 with Wine wine-11.22 (Git commit
e7a40a4).Raytracing functionality confirmed
Texture rendering stability: 20% of test duration
Lighting system exhibiting degradation (dark areas reported)
Frame rate: 1–3 FPS (critical performance bottleneck)
Cutscenes and credits rendered successfully
Frame time variance: 500ms to 3500ms
Model rendering stability: 10% of test duration
System utilization (observed during test):
Hardware configuration:
Execution flags used:
This report was generated with AI assistance.
@Hasusmogus on GitHub · 2026-11-27 07:45 UTC · original · edited 2026-11-27 07:48 UTC
I've been working on the same problem under Proton, and #71 has the fixes. On an RTX 5060 (8 GB) with GE-Proton11-14, the Series S profile at 1080p, the prologue went from up to 10 s a frame (over 10000ms at worstr) to up to 11 fps (90 ms a frame at best).
The largest costs were on Wine's side:
MemoryRegionInfo), so every check went back to it, thousands of times a frame, under its one lock for all of memory. Placeholders are now tracked on our side, and write watches are asked in 8 MiB pieces.patches/wineserver-view-tree.patchkeeps them in a tree instead; it needs a rebuilt Wine or Proton (seedocs/linux.md).scripts/play-proton.shstarts it withumu-run, anddocs/linux.mdcovers building from Linux with cargo-xwin. Your 4070 has 12 GB, so--console series-xmay fit; on 8 GB, Series S is needed. If you try it, the terminal output plusVICTORY_LOG_FILEwould help.Written with AI assistance (Claude), reviewed by me.
@lyranie on GitHub · 2026-11-27 09:05 UTC · original
The application crashes with an access violation (
0xC0000005), attempting to write to address0x0.Faulting module:
victory-image-b99f876b74d4a77f.dll+0x23cf683Preceding GPU pipeline errors:
CS_Prop_BatchNoCull_c47eb2b0_Wrapped(possible compiler stack overflow).Stack trace:
pr71.log
This report was written with the assistance of AI.
@Hasusmogus on GitHub · 2026-11-27 10:06 UTC · original · edited 2026-11-27 10:09 UTC
Thanks for the log. It's the same crash as #80, down to the registers (
rcx …24c348,r8 …d8c40,r9 …d8e20,r10 …d8ad8,rax/rbx/rbp0), and in both a compute dispatch is dropped first. In your run the pipeline it needed (965bad7164375eb4+3ec62ecabb36f1d2) was never made, because its worker died in vkd3d-proton's DXIL-to-SPIR-V (theCS_Prop_BatchNoCullstack overflow). The build you ran then gave that pipeline up for good, so the title read back what the dispatch didn't write.The current
mainof https://github.com/Hasusmogus/cool_fox (merged as https://github.com/Hasusmogus/cool_fox/pull/10) makes such a pipeline once more on a thread with a 4 GiB stack (reserved, not committed) before giving it up. It also fixes a way a dead worker could leave a dispatch waiting for ever. It's tested by killing a worker the way Wine does, but not against this shader, since I don't have it.If you can try it to the same point:
VICTORY_LOG=info VICTORY_LOG_FILE=<path>, so the "worker ended" line names the shader and says whether the larger stack made it;refused-pipelines.txtin your cache folder first, or the earlier run's entry keeps it left out (VICTORY_REFUSED_RETRY=1ignores the list too).If 4 GiB still overflows, the shader's control flow is likely too deep for vkd3d-proton's recursion at any stack size, and the log line with its hash is what's needed to go further.
Written with AI assistance (Claude), reviewed by me.
@lyranie on GitHub · 2026-11-27 10:33 UTC · original
The application crashes with an access violation (
0xC0000005), attempting to write to address0x0.Faulting module:
victory-image-b99f876b74d4a77f.dll+0x23cf683Preceding GPU pipeline errors:
CS_Prop_BatchNoCull_c47eb2b0_Wrapped, with a possible stack overflow in the host compiler.Stack trace:
test.log
This report was written with the assistance of AI.
@DoubleGhosty on GitHub · 2026-11-27 10:51 UTC · original
Thanks for both logs.
+0x23cf683is the title's 30 s GPU watchdog (#32): frames stop advancing, here right after theCS_Prop_BatchNoCullpipeline worker died in vkd3d-proton and its dispatch was dropped. The 4 GiB-stack retry for vkd3d-proton's DXIL-to-SPIR-V overflow is in Hasusmogus's fork (linked above) and not in main yet. If you try that build, theworker endedline with the shader's hash says whether the larger stack was enough. In that build, deleterefused-pipelines.txtin the cache folder first, or setVICTORY_REFUSED_RETRY=1, as noted above.@lyranie on GitHub · 2026-11-27 10:59 UTC · original
i should have specified that my second report was run on @Hasusmogus' master at the time (
4eb4227189), withrefused-pipelines.txtdeleted. sorry for the confusion@DoubleGhosty on GitHub · 2026-11-27 11:03 UTC · original
Hasusmogus's Linux/Proton work is now on main (
cdfe97be, merged from their fork, with42b95b99on top):VICTORY_LOG_FILE,docs/linux.md,scripts/play-proton.shandpatches/wineserver-view-tree.patch;CS_Prop_BatchNoCullstack overflow) is made again on a 4 GiB stack before it's given up.42b95b99closes two gaps in that last part. A dispatch waiting for such a pipeline now asks for the rescue itself: with the launchers'VICTORY_PIPELINE_WAIT_MS=0, nothing else asked, and it could still wait for ever. Andrefused-pipelines.txtentries now only apply under the translator and driver they were noted with, so an update tries them again.Please try current main with
VICTORY_LOG=info VICTORY_LOG_FILE=<path>: thea pipeline worker ended while making a pipelineline says whetherCS_Prop_BatchNoCullwas made on the larger stack (again=true, and noended its thread againline after it).@lyranie on GitHub · 2026-11-27 11:42 UTC · original
Getting through the first cutscene is painfully slow; been stuck in it for the past 20-30 minutes ;-; i'll follow up with performance and a new log when i get in game
@lyranie on GitHub · 2026-11-27 12:05 UTC · original
finally got past the opening scene
main.log
@zeeboguy on GitHub · 2026-11-27 12:22 UTC · original
Answer to the
again=truequestion, Linux + RTX 5080 (Arch, NVIDIA 615.78, proton-cachyos 11.0 with the wineserver view-tree patch, main42b95b9, Series S,VICTORY_UPSCALER=6, the play-proton.sh settings).The 4 GiB stack is not enough here.
CS_Prop_BatchNoCull_c47eb2b0_Wrapped(fdd56d97a806bcca) kills its worker, the rescue starts, and about 2 s later Rust printsthread 'victory-pipeline-rescue' has overflowed its stack, followed bymaking a pipeline ended its thread again, with a stack of 4 GiB. The dispatch is dropped, and about 27 s later the title writes to 0 at+0x23cf683(the 30 s watchdog). This happened in 2 of 2 runs at 4K and 1080p output. Overflowing 4 GiB within 2 s looks like unbounded recursion in vkd3d-proton's DXIL-to-SPIR-V, not a deep but finite one.The same shader compiles fine with an older translation:
776b73e(before the per-lane split),fdd56d97translated and its pipeline was made with no worker loss.42b95b9,VICTORY_LANE_SPLIT=exactstops the overflow. No worker ended, the world loaded, and there was no watchdog crash.VICTORY_LDS_FLAGS=0alone did not stop it: the worker still died, the rescue still overflowed, though that run happened not to hit the watchdog.So the per-lane split form of this program seems to be what sends the host compiler into a loop.
Performance with
exact(1080p output, prison prologue into the corridor, sampled every 5 s over 2 minutes): median 12 fps, minimum 6, 70-93 ms a frame. Before the #71 merge plusUPSCALER=6, it was 4-5 fps here. A typical frame line:10.8 fps, 92.7 ms/frame (85.3 preparing: copies 25.8 ms 150.6 MB, textures 20.5 ms 152.8 MB; … 18.0 copying back 26.0 MB), 1863 draws/frame, dropped 831 without a host pipeline (0 being made). Faces and hair draw. One blocky patch at Lucia's hairline in the first cutscene.Note for others: after a run without
exact,fdd56d97is listed inpipelines/refused-pipelines.txt. SetVICTORY_REFUSED_RETRY=1or delete the file when trying it again.AI use: Claude Code (Claude Opus 5.5) ran the tests, read the logs and drafted this; I reviewed it before posting.
@zeeboguy on GitHub · 2026-11-27 13:56 UTC · original
More Linux + RTX 5080 (16 GB) measurements on main
42b95b9: Ryzen 9 5900X, 31 GB RAM, Arch, NVIDIA 615.78, proton-cachyos 11.0 with the wineserver view-tree patch, Series S, 4K output,VICTORY_UPSCALER=6,VICTORY_LDS_FLAGS=0, plus the play-proton.sh settings. Each run walks the prison cell into the "Approach a cellmate" gameplay, sampling the window title every 5 s for 2 minutes. Numbers are median fps. Run-to-run noise is about ±1 fps.RLIMIT_NICEraised to 30 (Wine applies thread priorities)VICTORY_PORT_CONSTANTS=1+ VICTORY_PORT_CBV=1+ VICTORY_READBACK_POOL=1+ tasksetto one CCD (0-5,12-17)+ VICTORY_LAND_THREADS=8+ VICTORY_DSTORAGE_PRIORITY=below(WORKERS=4too)Timeline (diag build,
VICTORY_TIMELINE, same scene, ~75 ms frames): the card is busy 49 ms of each frame and idle for 26 ms. On the CPU side, the largest single item in the present's chain is ~34 ms a frame outside our spans ondstorage 0, so DirectStorage read and decompress work lands on the critical path while walking. The upstream Windows NVIDIA figures in #3 (3-18 ms of GPU time for the world) suggest the 49 ms is Linux memory placement, not translation: VRAM sits at 13.5-14.7 GB of 16.Next here: trying the descriptor port,
VICTORY_GPU_ONLY_COPYBACK, and joined barriers from MatyEjsr/VIctory-RTX3090 (which cherry-picks them from Belobug-AMD and maren-halv/VIctory-Fast) on top of main's Linux fixes. Results to follow.