Linux/Wine: run with the system Wine and vkd3d-proton, with DLSS and frame generation #1702

Open
ItsYusei99 wants to merge 9 commits from upstream-pr/1702 into main
ItsYusei99 commented 2026-11-28 23:39:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ItsYusei99 on 2026-11-28T23:39:05Z.


Runs VIctory-NVIDIA on Linux with the system Wine and vkd3d-proton (no Proton), including DLSS and DLSS Frame Generation. Every Wine-specific behaviour is either a runtime fallback that only triggers when Wine's compiler fails, or behind a switch that is off by default, so Windows behaviour does not change.

Full write-up (setup, problems, causes, fixes): docs/linux-wine.md. Portable launcher: scripts/run-wine.sh.

Tested on CachyOS, RTX 4070 12 GB, NVIDIA 620.73.04, Wine 11.22, vkd3d-proton 3.2.0, dxvk-nvapi 0.9.3, Streamline 2.14.16, Series S profile.

Problems and fixes

Problem Cause Fix
Runtime shader compiles fail Wine's D3DCompile refuses some of the layer's HLSL (e.g. Load on RWByteAddressBuffer, HLSL root signatures) DXC fallback (VICTORY_DXC) and in-code root signatures: 3315533, 7cca2fb, 7c36064, f4f5584, 709b85e
DXC rejects FXC-era shaders DXC defaults to HLSL 2021 (no vector ||/&&) -HV 2018: 7e8dc99
Stack overflows Deep recursion with Wine's default stacks 64 MiB main and pipeline worker stacks: 61e8f89
Freeze while loading a save, then the title ends itself (30 s watchdog writes to address 0) With VICTORY_PIPELINE_COMPUTE_WAIT on, a dispatch waits forever for a compute pipeline that never completes under Wine VICTORY_PIPELINE_COMPUTE_WAIT=0 in the launcher (root cause of the stuck pipeline still open)
3–4 fps in the world (15–20 on Windows, same PC) NVIDIA's Linux compiler takes 1–6 s per pipeline (~7 always pending); the 500 ms per-frame wait budget was spent every frame. Found with gdb: a title thread spinning on a counter, GPU ~13% busy VICTORY_PIPELINE_WAIT_MS=100 in the launcher: ~12–14 fps. 0 reached 10–22 fps but froze after ~1.5 min (title allocator free list corrupted, likely from skipped GPU work)
DLSS Frame Generation refused ("requires GPU hardware scheduling") Streamline's sl.common reads HwSchEnabled through D3DKMTQueryAdapterInfo(KMTQAITYPE_WDDM_2_7_CAPS), which Wine reports as off VICTORY_STREAMLINE_FAKE_HWS=1 (off by default) patches sl.common.dll's GetProcAddress import so that query reports it on: b15178b

Docs and launcher: 4ca7fd9.

Results

  • DLSS Super Resolution: upscaler-check --device passes; in game, one DLSS upscale per frame with no failures.
  • Frame generation: upscaler-check --present shows 360 frames from 180 presents; in game ~14 real fps → ~28 shown.

Known issues

  • Under Wine some pipelines never finish; root cause not found.
  • Draws are skipped (~150–300 per frame) until their pipelines exist.
  • Reflex calls fail under dxvk-nvapi (logged as errors), so latency is higher; frame generation still runs.
  • The diagnostics build's VICTORY_PROFILE sampler crashes the title under Wine; gdb works instead.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545698587 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1702). Originally posted by [ItsYusei99](https://github.com/ItsYusei99) on 2026-11-28T23:39:05Z. --- Runs VIctory-NVIDIA on Linux with the system Wine and vkd3d-proton (no Proton), including DLSS and DLSS Frame Generation. Every Wine-specific behaviour is either a runtime fallback that only triggers when Wine's compiler fails, or behind a switch that is off by default, so Windows behaviour does not change. Full write-up (setup, problems, causes, fixes): `docs/linux-wine.md`. Portable launcher: `scripts/run-wine.sh`. Tested on CachyOS, RTX 4070 12 GB, NVIDIA 620.73.04, Wine 11.22, vkd3d-proton 3.2.0, dxvk-nvapi 0.9.3, Streamline 2.14.16, Series S profile. ## Problems and fixes | Problem | Cause | Fix | |---|---|---| | Runtime shader compiles fail | Wine's `D3DCompile` refuses some of the layer's HLSL (e.g. `Load` on `RWByteAddressBuffer`, HLSL root signatures) | DXC fallback (`VICTORY_DXC`) and in-code root signatures: 3315533, 7cca2fb, 7c36064, f4f5584, 709b85e | | DXC rejects FXC-era shaders | DXC defaults to HLSL 2021 (no vector `\|\|`/`&&`) | `-HV 2018`: 7e8dc99 | | Stack overflows | Deep recursion with Wine's default stacks | 64 MiB main and pipeline worker stacks: 61e8f89 | | Freeze while loading a save, then the title ends itself (30 s watchdog writes to address 0) | With `VICTORY_PIPELINE_COMPUTE_WAIT` on, a dispatch waits forever for a compute pipeline that never completes under Wine | `VICTORY_PIPELINE_COMPUTE_WAIT=0` in the launcher (root cause of the stuck pipeline still open) | | 3–4 fps in the world (15–20 on Windows, same PC) | NVIDIA's Linux compiler takes 1–6 s per pipeline (~7 always pending); the 500 ms per-frame wait budget was spent every frame. Found with gdb: a title thread spinning on a counter, GPU ~13% busy | `VICTORY_PIPELINE_WAIT_MS=100` in the launcher: ~12–14 fps. `0` reached 10–22 fps but froze after ~1.5 min (title allocator free list corrupted, likely from skipped GPU work) | | DLSS Frame Generation refused ("requires GPU hardware scheduling") | Streamline's `sl.common` reads `HwSchEnabled` through `D3DKMTQueryAdapterInfo(KMTQAITYPE_WDDM_2_7_CAPS)`, which Wine reports as off | `VICTORY_STREAMLINE_FAKE_HWS=1` (off by default) patches `sl.common.dll`'s `GetProcAddress` import so that query reports it on: b15178b | Docs and launcher: 4ca7fd9. ## Results - DLSS Super Resolution: `upscaler-check --device` passes; in game, one DLSS upscale per frame with no failures. - Frame generation: `upscaler-check --present` shows 360 frames from 180 presents; in game ~14 real fps → ~28 shown. ## Known issues - Under Wine some pipelines never finish; root cause not found. - Draws are skipped (~150–300 per frame) until their pipelines exist. - Reflex calls fail under dxvk-nvapi (logged as errors), so latency is higher; frame generation still runs. - The diagnostics build's `VICTORY_PROFILE` sampler crashes the title under Wine; gdb works instead.
Aiken-Project-A commented 2026-11-29 13:44:44 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aiken-Project-A on 2026-11-29T13:44:44Z.


Confirming the -HV 2018 part of this on an RTX 2060 / 615.78.08 / Linux, main 829188e9. Without it the ambient light's raise (since e1681b6c it scrubs NaN with isnan(found) || isinf(found) on a float3) fails on both compilers: Wine's d3dcompiler refuses isnan, and DXC, on its default HLSL 2021, says "operands for short-circuiting logical binary operator must be scalar, for non-scalar types use 'or'". The stand-in for the indirect light is then never made ("no stand-in for the indirect light"). With only -HV 2018 added to the DXC arguments on top of 829188e9, raise, clear_air, reflect_light and bound_light all compile through DXC and the stand-in is made.

Written with AI assistance (Claude).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7256768982 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1702#issuecomment-7256768982). Originally posted by [Aiken-Project-A](https://github.com/Aiken-Project-A) on 2026-11-29T13:44:44Z. --- Confirming the `-HV 2018` part of this on an RTX 2060 / 615.78.08 / Linux, main `829188e9`. Without it the ambient light's `raise` (since `e1681b6c` it scrubs NaN with `isnan(found) || isinf(found)` on a `float3`) fails on both compilers: Wine's d3dcompiler refuses `isnan`, and DXC, on its default HLSL 2021, says "operands for short-circuiting logical binary operator must be scalar, for non-scalar types use 'or'". The stand-in for the indirect light is then never made ("no stand-in for the indirect light"). With only `-HV 2018` added to the DXC arguments on top of `829188e9`, `raise`, `clear_air`, `reflect_light` and `bound_light` all compile through DXC and the stand-in is made. _Written with AI assistance (Claude)._
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1702:upstream-pr/1702'
git switch 'upstream-pr/1702'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1702'
git switch 'upstream-pr/1702'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1702'
git switch 'upstream-pr/1702'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1702'
git switch 'main'
git merge --squash 'upstream-pr/1702'
git switch 'main'
git merge --ff-only 'upstream-pr/1702'
git switch 'main'
git merge 'upstream-pr/1702'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!1702
No description provided.