[GH #62] GTX 1660 (6 GB) on Linux/Wine: 20-minute run into the first playable scene at ~1.9 fps, no driver error; what it needed #62
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?
Imported from Zettrox/ztrx. Originally posted by Impre-visible on 2026-11-25T07:12:55Z.
Summary
ztrx
90b529fruns on a GTX 1660 (6 GB, Turing without RT cores, so below the README's "RTX 20 series or newer") under Linux with Wine: one 20-minute run into the prologue's first playable scene with no driver error and no crash, at about 1.9 fps once in the world. The scene is drawn and lit (characters, buildings, sky), with the known dark-shadow look.No game files, images or video attached; numbers and log lines of the tool only.
Setup
d3d12/d3d12coreDLLs of vkd3d-proton taken from Proton Experimental (November build), KDE Wayland / XWaylandx86_64-pc-windows-msvc,--release --features diagnostics, toolchain fromrust-toolchain.tomlWhat I had to add for Linux/Wine (nothing else changed)
90b529f.pipeline/library.rscallsmake(&[]); an empty Rust slice has a non-null dangling pointer, and vkd3d-proton answersE_INVALIDARGto a non-null blob of length 0, so the log saysno host pipeline library: pipelines are not kepton every run and nothing is prebuilt on the next one. CallingCreatePipelineLibrarythrough the vtable with a null pointer and length 0 fixes it (same change as Marvisak/VIctory#1722). I can send it as a PR here if wanted.d3dcompiler_47.dllin the Wine prefix (winetricks d3dcompiler_47). With Wine's built-in one the indirect-argument clamp inindirect.rsdoes not compile (Method 'Load' is not defined on type 'RWByteAddressBuffer') and every indirect execution is dropped.vkCreateComputePipelinesat world entry; the November build from Proton Experimental does not. That may be what #23 hit.One machine-specific note for other Linux/NVIDIA users: driver 620.70/620.73 open modules have a kernel bug (NVIDIA/open-gpu-kernel-modules#1540) that froze this PC during runs until I rebuilt the module with their PR #1542. Not a ztrx problem.
Measured (one run, empty shader cache at start, 1,200 s limit, ended by my limit)
NVRM: Xidlinesa pipeline creation method that is not implementedwarningsa pipeline enables the depth bounds test, which its host pipeline leaves outsaved bytes=308408 early=1717 made=1615 loaded=89For comparison, on this same machine the upstream trees I ran over the last day gave 2 to 15 s per frame in the world, and ended within minutes with
Xid 109(context switch timeout) orXid 13(MMU fault) in most runs.Not tested
🤖 Generated with Claude Code
Imported from Zettrox/ztrx. Originally posted by OzeyadO on 2026-11-25T08:06:32Z.
I think the GTX 1660 Super and GTX 1660 Ti should be investigated, as I believe they offer better performance Honestly, I’m surprised these cards weren’t included in the minimum requirements. Why did you choose to list RTX 20 series cards as the minimum requirement right away? I think this should be reconsidered and revised
Imported from Zettrox/ztrx. Originally posted by ThomasHFWright on 2026-11-25T08:06:55Z.
Additional Linux/NVIDIA data point on unchanged
90b529f878a470fec9bf07b7be316bc769a12232: setup renders and accepts input, but this RTX 5090 run failed during world entry. This does not reproduce the successful GTX 1660 result above.x86_64-pc-windows-msvc; plain release, no diagnostics feature or source patches.cae8353ed7959c4+(v3.1-83-gcae8353ed-GE-Proton(dirty)+, applicationVersion 3.2.0).VK_NV_raw_access_chainsdisabled. Fresh prefix/cache/data, offline, read-only game input. No optional RELAY/LATE_WAIT/WIDE_BACK, shader skips, or debug target selection.Observed sequence:
title-mainat 08:04:42 UTC. Wine also reports three thread stack overflows across the run; the title ends with an unhandled0xc0000005null write. Launcher exit 5 after 520.82 s, before the 900 s test limit. No manual close.Memory is a confounder: this run used a cgroup with MemoryHigh 10 GiB, MemoryMax 14 GiB, SwapMax 8 GiB. It reached the high threshold and the 8 GiB swap cap; sampled resident peak was about 10 GiB, with no cgroup OOM/OOM-kill events. Minimum host available RAM was about 2.48 GiB. Peak total GPU memory was 11058 MiB including desktop/other clients, not a per-process measurement. I am not calling this memory-independent or a confirmed ztrx regression.
Build/test checks completed separately before the title run: release and diagnostics builds pass; native repository policy passes. The full Windows test suite under distro Wine 11.22 with a separate vkd3d runtime gives 497 passed, 7 failed, 7 ignored. Failures include host/fixture checks plus mesh-pipeline/library/stub-pipeline tests, so that suite is not clean and is not a GE runtime comparison.
Could you share the exact Proton Experimental vkd3d commit used for the successful run? That would make a controlled runtime comparison useful before adding unrelated patches. The pipeline-library null-blob fix is also relevant for caching, but has not been applied in this baseline.
AI-assisted testing on local hardware. No game files, generated shaders, raw title logs or captures attached.
Imported from Zettrox/ztrx. Originally posted by Impre-visible on 2026-11-25T08:10:10Z.
@ThomasHFWright the runtime of the successful run:
d3d12.dll/d3d12core.dllcopied from Steam's Proton - Experimental, buildexperimental-11.0-20261112into a GE-Proton11-6 prefix. The log reportsvkd3d-proton - applicationVersion: 3.2.0; it does not print the commit and I have not extracted it from the DLL, so I cannot give you the exact hash.VK_NV_raw_access_chains: left at the default, I did not disable it and did not check whether it is in use.MemoryMax=40G, swap 0, on a 62 GB machine, so no memory pressure here. Your 10 GiB high threshold with swap in use is a real difference: world entry is the heaviest moment (this run's log shows over 10 GB of texture refreshes per frame for a few frames there).Since then, on the same tree: 3 more 20-minute runs. Two ran to the limit with no
Xid. One ended about 3 minutes after launch, 5 frames after world entry, with the title's own unhandled null write and noXidin the kernel log: so 3 of 4 clean here, and world entry is the fragile point on this card too.Two details from these logs that match yours:
Required WaveSize range [64, 64]. Reading the translator: all four use LDS in thread groups larger than 32 and have a divergent region that both reads and writes LDS, which the 32-lane path declines (lds_meetings), andemit()then returns the 64-lane form without a warning.VICTORY_WAVE_WIDE=1translates two of the four in a dry run; not tried in the title.On the
Xid 13: on upstream trees I had MMU faults on this card that stopped once root-view (buffer address) accesses were bounded. I have not seen one on90b529f, so I cannot say it is the same thing.🤖 Generated with Claude Code
Imported from Zettrox/ztrx. Originally posted by ThomasHFWright on 2026-11-25T08:27:13Z.
Thanks for the build identifier. I downloaded
experimental-11.0-20261112-x86_64into a separate test directory. Its vkd3d version file identifies 2576c0b4adfae4a76d4c89d8cf5ec4f5ca795cff, and the title log confirms that build loaded.A second cold-cache run changed only the D3D12 DLL pair (same GE-Proton11-14 host, unchanged ztrx executable, fresh prefix/cache/data, same extension override and memory caps). It reproduced Xid 13 / MMU fault, three Wine stack overflows and the same title null-write access violation; exit 5 after 355.83 s. Setup rendered; no world scene captured. Startup menu timing differed, so the elapsed times are not a performance comparison.
The memory confounder remains: the 10 GiB high threshold and almost all 8 GiB allowed swap were reached; no OOM/kill events; minimum available host RAM about 1.97 GiB. New DLLs alone did not resolve this setup. Separate GPU/shader tests with the new pair returned the same 324 passed / 3 failed / 3 ignored.
One concrete clue in both runtime logs: vkd3d accepts the current
PORTABLE_VIEWS + 1probe, but rejects the real 1,507,328-descriptor request with max 1,041,451. The clamp is then set by the late fallback, after early translations. This makes #50's larger probe relevant; #20 still probes 1,000,001. I am testing #50 separately next, without combining shader changes. This is a hypothesis for the GPU fault, not a demonstrated fix yet.For reproducibility, SHA256 of the downloaded x64 DLLs:
fc2bbef02509fb11c334cc96dd211f64def94bb7b4eb82082a4808e6e05495439356501320114773be279506644aabd9a1717ff451d480ac802a4fd4e94b2576Imported from Zettrox/ztrx. Originally posted by Impre-visible on 2026-11-25T08:36:18Z.
@ThomasHFWright thanks, that narrows it. Three comparisons from the log of my successful run (GTX 1660), same DLL pair:
d3d12.dllandd3d12core.dllare identical to the two you posted, so2576c0bis the commit I ran.virtual_setup_exception stack overflowlines (one per thread, at the same code address) and carries on.max 1,041,451text nor any failed heap creation. vkd3d reportsVK_EXT_descriptor_heap enabled (32 / 32 size, raw uav counter on)at start on this card. If your log does not have that line, the two cards are on different vkd3d descriptor paths, and the 1,041,451 limit would only exist on yours. That fits your hypothesis.So for your setup #50 looks like the right thing to test first; I have no measurement of it here because this card never hits that limit.
🤖 Generated with Claude Code
Imported from Zettrox/ztrx. Originally posted by ThomasHFWright on 2026-11-25T10:37:48Z.
Follow-up on this RTX 5090 / NVIDIA 620.73.04 / CachyOS setup: the descriptor-heap hypothesis needs a correction. Our original and current logs do report
VK_EXT_descriptor_heap enabled (32 / 32 size, raw uav counter on). The descriptor allocation rejection still occurs. This is not simply enabled on the GTX 1660 versus disabled here.Further local comparisons use GE-Proton11-14 + the same Experimental D3D12 pair (
2576c0b4adfae4a76d4c89d8cf5ec4f5ca795cff), default raw-access-chain support, offline title execution and read-only game input:6615c72,1402bf7), local integrationbc3f39a6b73202ead3dce250aac5ce77faa380ca: the wave32 flag shader is no longer refused (four refusals become three). No world scene captured; Xid 13 / Graphics SM Warp Exception / MMU fault followed by the title null-write crash, exit 5.VK_EXT_descriptor_heapon that combined tree also produced Xid 13 / MMU fault. This did not resolve the failure.VICTORY_CARD_BUFFERS=0also reproduced the fault.The combined tree passes release/diagnostics builds and native asset policy. Separately, GPU/shader unit tests under distro Wine 11.22 + the Experimental native D3D12 DLLs: 328 passed, 3 failed, 3 ignored; all four added #36 tests pass. The failures match the baseline: mesh-pipeline library loading, rejected pipeline-library blob, and stub-pipeline creation. This is not a clean suite, nor a full GE-host test run.
RUST_MIN_STACK=16777216did not eliminate Wine stack-overflow messages; your successful run also has these, so I am not treating them as the differentiator. Memory remains unresolved: 30 GiB host, cgroup high 10 GiB / max 14 GiB / swap 8 GiB, often reaching the swap cap without OOM/kill events. Trial durations differ with caches and instrumentation and should not be interpreted as performance comparisons.I also tested #84 (
082f8b1) on that #50+#36 integration in a separate checkout, with fresh cache/prefix, all shaders restored andVICTORY_TEXTURE_MIP_DROP=2confirmed active. Its seven new GPU tests pass (GPU suite 124 passed / the same 2 failed / 1 ignored), diagnostics build and policy pass. The title still produced Xid 13 / MMU fault during world entry and exit 5 after 129.98 s, with no world geometry captured. Sampled cgroup resident peak was 7.40 GiB and swap 7.85 GiB, no OOM/kill, minimum host available about 1.63 GiB. Peak total GPU memory was 12050 MiB including desktop/other clients. That run does not establish memory independence or a controlled VRAM saving; it only shows mip drop did not get this setup into visible gameplay.AI-assisted testing on local hardware. Aggregate observations only; no game files, generated shaders, raw title logs or captures attached.
Imported from Zettrox/ztrx. Originally posted by Impre-visible on 2026-11-25T10:40:07Z.
@ThomasHFWright a correction to what I wrote above about the Wine stack overflows, because I have now traced them and they are a real defect (not your
Xid 13, but worth knowing on any Linux setup).What they are. Each
virtual_setup_exception stack overflowline is one of thevictory-pipelines-Nworker threads dying insideCreateComputePipelineState. On this tree it is always the same 4 compute pipelines; they stay "being made" for the whole run (the frame line's(4 being made)never goes down), the worker thread is lost, and every frame spends its whole 500 ms pipeline wait budget on them. A larger stack does not help (I tried 64 MiB on those threads; yourRUST_MIN_STACKresult agrees): it is unbounded recursion.Where. I built dxil-spirv natively (HEAD
061225d) and ran it on the translated shaders saved withVICTORY_SHADER_SAVE. Of 2,568 saved translations, 2,564 convert and pass--validate, and exactly those 4 crash. Backtrace:Converter::Impl::convert_entry_point→CFGStructurizer::flatten_subgroup_shuffles→recompute_cfg→ about 174,000 frames alternatingCFGNode::recompute_immediate_dominator/CFGNode::find_common_dominator. The trigger is a shader that usesWaveReadLaneAt(soflatten_subgroup_shufflesruns, and itsrecompute_cfgsees the raw CFG beforerewrite_multiple_back_edges) together with a loop header that has two or more back edges, or one block branching back to two loop headers. The input is valid; this looks like a dxil-spirv bug, still present at its HEAD.Translator-side avoidance, measured. Emitting every loop with a single back edge (extra latches go through new empty blocks, a multi-latch header gets one latch block that carries its phis) changes 27 of the 2,568 modules, leaves the other 2,541 byte-identical, and all 2,568 then convert and validate natively. In the title on this card: 0 stack-overflow lines and
(0 being made), where every earlier run had 4 of each. One unit test from a synthetic program;cargo test -p victory-shader173 passed.What it does not do. No speed gain in the steady scene here (the 500 ms wait was on a recording thread, not on the critical path: 522–542 ms per frame before and after), and I have no evidence it relates to your MMU fault. Not tested on AMD; a comment in the emitter says a nearby loop shape once hung AMD's driver, so that needs an AMD run.
If the maintainer wants it, I can open a PR with the emitter change and its test.
Also measured today on this card, in case it helps others:
VICTORY_RELAY=2andVICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1gave no frame-time gain in the first playable scene (521–547 ms against 526–535 ms), and one of twoVICTORY_RELAY=2runs ended withXid 109.🤖 Generated with Claude Code