Sync candidates from Marvisak/VIctory and fxceless/victory-fork #4

Open
opened 2026-11-26 03:40:24 +00:00 by github-bot · 4 comments
Owner

@⁠flale1 on GitHub · 2026-11-25 02:05 UTC · original

Here is a short list of sync candidates from Marvisak/VIctory and fxceless/victory-fork against e1586fb, checked by code reading and git merge-tree only (no GPU or game files).

1. fxceless c96b4f2 (clean merge on e1586fb)

  • c96b4f2 (crates/victory-gpu only): adds depth bounds test support (fxceless #82) and enables faster defaults (VICTORY_RELAY=2 and wide copy-back on by default; the author reports ~400 → ~230 ms/frame on an RTX 4070).
  • VRAM and upload note: the author reports that card copies of title buffers use 449 MB more VRAM (941 vs 492 MB). Their default budget is 1024 MB, and a decoration-bake draw can upload up to 2 GiB of indexed textures. On an 8 GB GPU, test VICTORY_CARD_BUFFERS_MB=512.

2. Clean Marvisak fixes (each merges alone on e1586fb)

Loader lock deadlock

  • a222fe3 — Load host DLLs outside the module cache lock (PR #357)

XMA / APU infinite loops & stalled streams

  • 12fa535 — XMA: start frame after a continuation at the next packet with frames (PR #96)
  • 338808e — XMA: end a frame at its data instead of looping forever, plus noise tests (PR #183)
  • 1054fe8 — Audio: wrap an XMA read block past the ring's end instead of filling forever

Descriptor UAF & false exhaustion

  • 1117251 — GPU: hold SHADER_HEAPS across descriptor mirror and check query bounds (PR #52)
  • c1c3281 — GPU: extend dynamic descriptor wraparound scan to prevent false exhaustion

Saves, window & XAsync

  • 26e03c3 — XGameSave: ignore stray or unreadable version folders so saves are not lost (PR #1729)
  • d4ef9eb — HLE: show title windows through a message-pumping stand-in to avoid "Not Responding" (PR #1677)
  • f8c7498 — XAsync: end the call that finished rather than whatever call reuses the block (PR #122)

Samplers & depth/stencil footprints

  • e6fe8ec — GPU: fix CreateSamplerX mip-none base level, LOD range, bias clamp, and invalid enums
  • 54e7844 — GPU: handle depth/stencil copy footprints (PR #504)

Pipeline cache

  • a9d233f — GPU: serialize pipeline library atomic writes with unique temp files (PR #1660)
  • d73d8c9 — Pipeline cache: retry up to 128 temporary-file name collisions caused by stale staging files, preserving existing files (PR #1109)

TDR logging & shader literals

  • e9f43ed — GPU: log TdrLevel/TdrDelay settings and warn when a GPU hang would freeze the PC (PR #1082)
  • 1134418 — Shaders: sign-extend 32-bit literals on signed 64-bit operands (PR #447)

3. High-impact candidates with textual conflicts on e1586fb

For evaluation with the game (these conflict textually with e1586fb):

  • cd94d35 + 940d32f — Page-marked copy-back: shaders mark pages written through views, and copy-backs compare only marked pages; the commit reports that the previous path compared 2.8–4.5 GB per frame, 98% unchanged. The follow-up stops a copy-back from saving a page for its own copy.
  • Small TDR / device-removed fixes: 0601955 (helper lane v_readfirstlane), ed0dbfd (copy title writes under shader-written ranges), 4ab20fc (indirect budget charged in record order without wrapping), 4051149 (null views for empty/OOB title buffer views).

We did not build or test any of this with the game; 'clean' means the commit merges without textual conflicts on top of e1586fb. Happy to send PRs for any of these if you want.

AI-assisted (Claude Code).

**@⁠flale1** on GitHub · 2026-11-25 02:05 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/4) Here is a short list of sync candidates from `Marvisak/VIctory` and `fxceless/victory-fork` against `e1586fb`, checked by code reading and `git merge-tree` only (no GPU or game files). ## 1. fxceless `c96b4f2` (clean merge on `e1586fb`) - [`c96b4f2`](https://github.com/fxceless/victory-fork/commit/c96b4f2) (`crates/victory-gpu` only): adds depth bounds test support (fxceless #82) and enables faster defaults (`VICTORY_RELAY=2` and wide copy-back on by default; the author reports ~400 → ~230 ms/frame on an RTX 4070). - **VRAM and upload note:** the author reports that card copies of title buffers use 449 MB more VRAM (941 vs 492 MB). Their default budget is 1024 MB, and a decoration-bake draw can upload up to 2 GiB of indexed textures. On an 8 GB GPU, test `VICTORY_CARD_BUFFERS_MB=512`. ## 2. Clean Marvisak fixes (each merges alone on `e1586fb`) **Loader lock deadlock** - [`a222fe3`](https://github.com/Marvisak/VIctory/commit/a222fe3) — Load host DLLs outside the module cache lock (PR #357) **XMA / APU infinite loops & stalled streams** - [`12fa535`](https://github.com/Marvisak/VIctory/commit/12fa535) — XMA: start frame after a continuation at the next packet with frames (PR #96) - [`338808e`](https://github.com/Marvisak/VIctory/commit/338808e) — XMA: end a frame at its data instead of looping forever, plus noise tests (PR #183) - [`1054fe8`](https://github.com/Marvisak/VIctory/commit/1054fe8) — Audio: wrap an XMA read block past the ring's end instead of filling forever **Descriptor UAF & false exhaustion** - [`1117251`](https://github.com/Marvisak/VIctory/commit/1117251) — GPU: hold `SHADER_HEAPS` across descriptor mirror and check query bounds (PR #52) - [`c1c3281`](https://github.com/Marvisak/VIctory/commit/c1c3281) — GPU: extend dynamic descriptor wraparound scan to prevent false exhaustion **Saves, window & XAsync** - [`26e03c3`](https://github.com/Marvisak/VIctory/commit/26e03c3) — XGameSave: ignore stray or unreadable version folders so saves are not lost (PR #1729) - [`d4ef9eb`](https://github.com/Marvisak/VIctory/commit/d4ef9eb) — HLE: show title windows through a message-pumping stand-in to avoid "Not Responding" (PR #1677) - [`f8c7498`](https://github.com/Marvisak/VIctory/commit/f8c7498) — XAsync: end the call that finished rather than whatever call reuses the block (PR #122) **Samplers & depth/stencil footprints** - [`e6fe8ec`](https://github.com/Marvisak/VIctory/commit/e6fe8ec) — GPU: fix `CreateSamplerX` mip-none base level, LOD range, bias clamp, and invalid enums - [`54e7844`](https://github.com/Marvisak/VIctory/commit/54e7844) — GPU: handle depth/stencil copy footprints (PR #504) **Pipeline cache** - [`a9d233f`](https://github.com/Marvisak/VIctory/commit/a9d233f) — GPU: serialize pipeline library atomic writes with unique temp files (PR #1660) - [`d73d8c9`](https://github.com/Marvisak/VIctory/commit/d73d8c9) — Pipeline cache: retry up to 128 temporary-file name collisions caused by stale staging files, preserving existing files (PR #1109) **TDR logging & shader literals** - [`e9f43ed`](https://github.com/Marvisak/VIctory/commit/e9f43ed) — GPU: log `TdrLevel`/`TdrDelay` settings and warn when a GPU hang would freeze the PC (PR #1082) - [`1134418`](https://github.com/Marvisak/VIctory/commit/1134418) — Shaders: sign-extend 32-bit literals on signed 64-bit operands (PR #447) ## 3. High-impact candidates with textual conflicts on `e1586fb` For evaluation with the game (these conflict textually with `e1586fb`): - [`cd94d35`](https://github.com/Marvisak/VIctory/commit/cd94d35) + [`940d32f`](https://github.com/Marvisak/VIctory/commit/940d32f) — Page-marked copy-back: shaders mark pages written through views, and copy-backs compare only marked pages; the commit reports that the previous path compared 2.8–4.5 GB per frame, 98% unchanged. The follow-up stops a copy-back from saving a page for its own copy. - Small TDR / device-removed fixes: [`0601955`](https://github.com/Marvisak/VIctory/commit/0601955) (helper lane `v_readfirstlane`), [`ed0dbfd`](https://github.com/Marvisak/VIctory/commit/ed0dbfd) (copy title writes under shader-written ranges), [`4ab20fc`](https://github.com/Marvisak/VIctory/commit/4ab20fc) (indirect budget charged in record order without wrapping), [`4051149`](https://github.com/Marvisak/VIctory/commit/4051149) (null views for empty/OOB title buffer views). ## 4. Upstream PRs/issues targeting related pain points - [Marvisak PR #1704](https://github.com/Marvisak/VIctory/pull/1704) (open) — DLSS via Streamline; [Marvisak PR #1284](https://github.com/Marvisak/VIctory/pull/1284) (closed) — experimental FSR. - [Marvisak PR #189](https://github.com/Marvisak/VIctory/pull/189) (open) and [Marvisak PR #439](https://github.com/Marvisak/VIctory/pull/439) (open) — wave64 support. - [Marvisak PR #306](https://github.com/Marvisak/VIctory/pull/306) (closed) — fix biased 16-bit image samples and DXIL validator failures; [Marvisak issue #201](https://github.com/Marvisak/VIctory/issues/201) (open) — corpus census: 185 emitted DXIL modules fail `dxil.dll` validation. - [fxceless issue #178](https://github.com/fxceless/victory-fork/issues/178) (open) — texture lane: the cost is waiting for the remap lock, and `VICTORY_TEXTURE_NO_WAIT` removes it; [fxceless issue #173](https://github.com/fxceless/victory-fork/issues/173) (open) — BVH sorted box hits: an absent child can sort before a valid hit (reproducer and patch). We did not build or test any of this with the game; 'clean' means the commit merges without textual conflicts on top of `e1586fb`. Happy to send PRs for any of these if you want. AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:40:24 +00:00
Author
Owner

@⁠flale1 on GitHub · 2026-11-25 03:01 UTC · original

The README still lists these fixes under "applied improvements", so after the fxceless merge 8e46dce we compared each commit against d5a7580 by reading the code only (no GPU, no game, nothing built).

commit what it did state at d5a7580
a13a719 LDS bounds (OOB reads 0, writes dropped) lost — lower.rs:4387-4396 still states addresses are assumed in bounds, with no compare against lds_dwords.
2471a62 MIMG a16 / LDS byte-half partial — LDS byte/half, bias, clamp, and gather are present (lower.rs:4420, lower.rs:9434, lower.rs:9443); image_sample_b_o, image_sample_cl_o, and image_sample_l_o are not dispatched and fall into an error.
911267c setMeshOutputCounts partial — extra passes zero primitives beyond lanes (lower.rs:4102, lower.rs:4120, lower.rs:4123), but count is capped to threads only when outputs do not fit.
1ece3a6 fence-only s_barrier partial — fence_only identifies unsafe blocks and removes the group wait while keeping the fences, but only with VICTORY_GROUP_SYNC=1 (lower.rs:1386, lower.rs:1391, lower.rs:4731, lower.rs:4735; mode in emit/mod.rs:144-163); unset or 2 (the default) every barrier still waits.
808a209 skip group sync after possible loop abort partial — with VICTORY_GROUP_SYNC=1, a plain-jump back-edge makes every barrier fence-only, more conservative than the original (lower.rs:1397-1413, lower.rs:4731); the default mode still waits.
a65d054 dynamic descriptor recycling covered — DYNAMIC = 1 << 18; tables_done recycles slots after submission (descriptor/host.rs:595, draw.rs:219, queue.rs:575).
bd33acc mesh limits covered — output guard and invalid-index primitive discard present (lower.rs:10644, lower.rs:10722, lower.rs:10740, descriptor/host.rs:595).
77b4b4c cubemap gradients covered — computed through deriv_regs (lower.rs:9513-9516).

The five not fully covered (a13a719, 2471a62, 911267c, 1ece3a6, 808a209) all touch lower.rs and conflict textually on top of d5a7580 (checked with git merge-tree), so any port would be manual; these are static comparisons, not confirmed at runtime; I can send a PR for a13a719 (LDS bounds) if you would like.

AI-assisted (Claude Code).

**@⁠flale1** on GitHub · 2026-11-25 03:01 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/4#issuecomment-7151508192) The README still lists these fixes under "applied improvements", so after the fxceless merge `8e46dce` we compared each commit against `d5a7580` by reading the code only (no GPU, no game, nothing built). | commit | what it did | state at `d5a7580` | |---|---|---| | `a13a719` | LDS bounds (OOB reads 0, writes dropped) | **lost** — [lower.rs:4387-4396](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L4387-L4396) still states addresses are assumed in bounds, with no compare against `lds_dwords`. | | `2471a62` | MIMG `a16` / LDS byte-half | **partial** — LDS byte/half, bias, clamp, and gather are present ([lower.rs:4420](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L4420), [lower.rs:9434](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L9434), [lower.rs:9443](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L9443)); `image_sample_b_o`, `image_sample_cl_o`, and `image_sample_l_o` are not dispatched and fall into an error. | | `911267c` | `setMeshOutputCounts` | **partial** — extra passes zero primitives beyond lanes ([lower.rs:4102](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L4102), [lower.rs:4120](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L4120), [lower.rs:4123](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L4123)), but count is capped to threads only when outputs do not fit. | | `1ece3a6` | fence-only `s_barrier` | **partial** — `fence_only` identifies unsafe blocks and removes the group wait while keeping the fences, but only with `VICTORY_GROUP_SYNC=1` ([lower.rs:1386](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L1386), [lower.rs:1391](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L1391), [lower.rs:4731](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L4731), [lower.rs:4735](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L4735); mode in [emit/mod.rs:144-163](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/mod.rs#L144-L163)); unset or `2` (the default) every barrier still waits. | | `808a209` | skip group sync after possible loop abort | **partial** — with `VICTORY_GROUP_SYNC=1`, a plain-jump back-edge makes every barrier fence-only, more conservative than the original ([lower.rs:1397-1413](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L1397-L1413), [lower.rs:4731](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L4731)); the default mode still waits. | | `a65d054` | dynamic descriptor recycling | **covered** — `DYNAMIC = 1 << 18`; `tables_done` recycles slots after submission ([descriptor/host.rs:595](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-gpu/src/descriptor/host.rs#L595), [draw.rs:219](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-gpu/src/draw.rs#L219), [queue.rs:575](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-gpu/src/queue.rs#L575)). | | `bd33acc` | mesh limits | **covered** — output guard and invalid-index primitive discard present ([lower.rs:10644](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L10644), [lower.rs:10722](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L10722), [lower.rs:10740](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L10740), [descriptor/host.rs:595](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-gpu/src/descriptor/host.rs#L595)). | | `77b4b4c` | cubemap gradients | **covered** — computed through `deriv_regs` ([lower.rs:9513-9516](https://github.com/uiliannn/VItoriaBr/blob/d5a7580/crates/victory-shader/src/emit/lower.rs#L9513-L9516)). | The five not fully covered (`a13a719`, `2471a62`, `911267c`, `1ece3a6`, `808a209`) all touch `lower.rs` and conflict textually on top of `d5a7580` (checked with `git merge-tree`), so any port would be manual; these are static comparisons, not confirmed at runtime; I can send a PR for `a13a719` (LDS bounds) if you would like. AI-assisted (Claude Code).
Author
Owner

@⁠flale1 on GitHub · 2026-11-25 03:30 UTC · original

Possible bug in SLOT_VIEWS (b62bbc0 / 77ad907).

On the host side, each slot is written as 4 dwords (16 bytes, index * 4 u32: address lo, address hi, byte length, stride) in descriptor/host.rs:1169-1173, and the buffer is allocated as SLOT_VIEWS_COUNT * 16 bytes (descriptor/host.rs:691). However, view_address_indexed computes the byte offset as slot << 3 (8 bytes) in lower.rs:2719-2720 and reads 4 dwords.

Slot 0 is correct. Slot 1 reads dwords 2–5: entry 0's length and stride, then entry 1's address. Later slots also read the wrong entries; for example, slot 2 reads entry 1.

A likely one-line fix for this offset mismatch (the variable name three is then stale; slot << 4 is 16 bytes):

-        let three = self.s.m.i32(3);
+        let three = self.s.m.i32(4);

Found by reading the code, not by running it.

Thanks for bringing in 5 of the 15 from the earlier list. The 10 below are still open; each merges cleanly on its own on top of aa85bb0 (checked individually with git merge-tree, no conflicts):

Also, the README still describes LDS bounds checks, the mesh output-count cap, and the old anti-TDR limits that the current code no longer has (details in the previous comment above and in #1).

AI-assisted (Claude Code).

**@⁠flale1** on GitHub · 2026-11-25 03:30 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/4#issuecomment-7151986661) **Possible bug in `SLOT_VIEWS` (`b62bbc0` / `77ad907`).** On the host side, each slot is written as 4 dwords (16 bytes, `index * 4` `u32`: address lo, address hi, byte length, stride) in [`descriptor/host.rs:1169-1173`](https://github.com/uiliannn/VItoriaBr/blob/aa85bb0/crates/victory-gpu/src/descriptor/host.rs#L1169-L1173), and the buffer is allocated as `SLOT_VIEWS_COUNT * 16` bytes ([`descriptor/host.rs:691`](https://github.com/uiliannn/VItoriaBr/blob/aa85bb0/crates/victory-gpu/src/descriptor/host.rs#L691)). However, `view_address_indexed` computes the byte offset as `slot << 3` (8 bytes) in [`lower.rs:2719-2720`](https://github.com/uiliannn/VItoriaBr/blob/aa85bb0/crates/victory-shader/src/emit/lower.rs#L2719-L2720) and reads 4 dwords. Slot 0 is correct. Slot 1 reads dwords 2–5: entry 0's length and stride, then entry 1's address. Later slots also read the wrong entries; for example, slot 2 reads entry 1. A likely one-line fix for this offset mismatch (the variable name `three` is then stale; `slot << 4` is 16 bytes): ```diff - let three = self.s.m.i32(3); + let three = self.s.m.i32(4); ``` Found by reading the code, not by running it. Thanks for bringing in 5 of the 15 from the earlier list. The 10 below are still open; each merges cleanly on its own on top of `aa85bb0` (checked individually with `git merge-tree`, no conflicts): - [`338808e`](https://github.com/Marvisak/VIctory/commit/338808e) — XMA frame end at its data, noise tests - [`26e03c3`](https://github.com/Marvisak/VIctory/commit/26e03c3) — XGameSave stray version folders (PR #1729) - [`d4ef9eb`](https://github.com/Marvisak/VIctory/commit/d4ef9eb) — HLE title window stand-in (PR #1677) - [`f8c7498`](https://github.com/Marvisak/VIctory/commit/f8c7498) — XAsync ended-call reuse (PR #122) - [`e6fe8ec`](https://github.com/Marvisak/VIctory/commit/e6fe8ec) — `CreateSamplerX` LOD/bias/enums - [`54e7844`](https://github.com/Marvisak/VIctory/commit/54e7844) — depth/stencil copy footprints (PR #504) - [`a9d233f`](https://github.com/Marvisak/VIctory/commit/a9d233f) — pipeline library atomic writes (PR #1660) - [`d73d8c9`](https://github.com/Marvisak/VIctory/commit/d73d8c9) — pipeline cache staging collisions (PR #1109) - [`e9f43ed`](https://github.com/Marvisak/VIctory/commit/e9f43ed) — `TdrLevel`/`TdrDelay` log (PR #1082) - [`1134418`](https://github.com/Marvisak/VIctory/commit/1134418) — 64-bit literal sign extension (PR #447) Also, the README still describes LDS bounds checks, the mesh output-count cap, and the old anti-TDR limits that the current code no longer has (details in the previous comment above and in #1). AI-assisted (Claude Code).
Author
Owner

@⁠uiliannn on GitHub · 2026-11-25 10:21 UTC · original

Muito obrigado pelo levantamento detalhado, @⁠flale1!

Atualizando o que já integramos na main (todos validados com os testes unitários e os dois cargo clippy do CI verdes):

  • fxceless/victory-fork c96b4f2 (4f9a19d) + 9376fd6 (b401954) — depth bounds test #82, renderização da primeira sala, fingerprint barato no sync de descriptors, VICTORY_RELAY=2 (com fix adicional de race em relay_land() em aa85bb0 e guard PASS_BUDGET em faca57e).
  • Cherry-picks críticos do Marvisak/VIctory:
    • c6959ac → 708b450 (loader lock deadlock)
    • 1054fe8 → 467f168 (XMA read block wrap)
    • c1c3281 → a91ef70 (dynamic descriptor wraparound)
    • ba42db6 (12fa535) → d0d0d23 (XMA continuation frame start)
    • 628b95d → 32d7848 (SHADER_HEAPS UAF em mirror() e make_waiting() + overflow checks)

Na RTX 5060 Ti 16 GB já chegamos a até 6 fps no mundo aberto 3D sem TDR. Vou manter a issue aberta caso queira sugerir novos candidatos de sync — valeu demais!

**@⁠uiliannn** on GitHub · 2026-11-25 10:21 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/4#issuecomment-7159584594) Muito obrigado pelo levantamento detalhado, @⁠flale1! Atualizando o que já integramos na `main` (todos validados com os testes unitários e os dois `cargo clippy` do CI verdes): - **`fxceless/victory-fork` `c96b4f2`** (`4f9a19d`) + **`9376fd6`** (`b401954`) — depth bounds test `#82`, renderização da primeira sala, fingerprint barato no sync de descriptors, `VICTORY_RELAY=2` (com fix adicional de race em `relay_land()` em `aa85bb0` e guard `PASS_BUDGET` em `faca57e`). - **Cherry-picks críticos do `Marvisak/VIctory`:** - `c6959ac` → `708b450` (loader lock deadlock) - `1054fe8` → `467f168` (XMA read block wrap) - `c1c3281` → `a91ef70` (dynamic descriptor wraparound) - `ba42db6` (`12fa535`) → `d0d0d23` (XMA continuation frame start) - `628b95d` → `32d7848` (`SHADER_HEAPS` UAF em `mirror()` e `make_waiting()` + overflow checks) Na RTX 5060 Ti 16 GB já chegamos a **até 6 fps** no mundo aberto 3D sem TDR. Vou manter a issue aberta caso queira sugerir novos candidatos de sync — valeu demais!
Author
Owner

@⁠slauko on GitHub · 2026-11-25 14:04 UTC · original

What it takes to run this line under Linux/Wine — nine sync candidates, verified on 2b3c339e.

With these, an RTX 3080 Ti under Proton Experimental (Wine 11.0, vkd3d-proton master@ec20719) gets through the menus at 25–30 fps and renders the intro at 1.3–2.5 fps. Without them it stops at the start screen or in a black world.

From What Why it matters under Wine How it applied on 2b3c339e
fxceless#20 DXC fallback for every run-time D3DCompile Wine's d3dcompiler_47 refuses the runtime's own HLSL (E5005 … RWByteAddressBuffer): without the clamp every indirect execution is dropped, without the card compare the card buffers are off clean, as three commits
VIctory#1722 (or fxceless#885) The empty pipeline library with a null blob vkd3d-proton refuses the dangling one: no host pipeline library: pipelines are not kept, so every run made its ~1,500 pipelines again by hand in pipeline/library.rs: the null-pointer case belongs in the make closure, since this line's open() differs from VIctory's
fxceless#845 VICTORY_EARLY_PIPELINES=0 The second launch: with a saved library the runtime started 1,657 pipelines early; the title presented no frame after frame 32 and its watchdog ended it (title+0x2215c35, 45 s) clean (README conflict only)
fxceless#823 xmem maps runs of pages as one view; four 64-lane compute programs on 32-lane hosts fewer map and unmap calls — each costs O(views) in wineserver first commit clean; second by hand in shader_cache.rs (this line's warm() and Outcome stay, both now translating through translate_listed)
fxceless#91 VICTORY_SKIP_PIPELINES in release builds the switch was read by diagnostics builds only clean (README conflict only)
fxceless#256 Under Wine, write title memory without a wineserver request every write went through the server clean
VIctory e6fe8ec CreateSamplerX fix upstream fix clean
VIctory, the first group of flale1's list saves, XAsync, window stand-in, depth/stencil footprints, library write race, cache temp files, TDR log — clean with git cherry-pick -m 1 (a plain merge-tree on the merge commits reports conflicts the pick does not have); XGameSave is here in the meantime as d1da85a8
16 MiB stacks (VIctory#1528) pipeline workers .stack_size(16 << 20), /STACK:16777216 for the image some translations overflow the default under Wine two small own commits

Three of the entries of the first list need nothing: c1c3281, 1134418 and 338808e are empty picks here — this line has them in another form.

Two things that are not a pick but decide whether a Wine run starts at all:

  • A gamepad Wine reports and nobody presses. The runtime offers its keyboard stand-in only while XInput has no pad. A mouse with a joystick interface (here the keyboard interface of a Logitech G502) is a pad to Wine, and the title waits at the start screen for ever. The log says input device device=0 connected=true instead of device=4. SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000 around the launch.
  • The frame. With Proton's wineserver a world frame took 5.4 s (median); with the tree-indexed one 0.62 s. The patch is in fxceless/victory-fork#184, and WINESERVER does not select it — the server has to be started for the prefix.

main moved on since (009856f0, with fxceless' performance commits), so re-check before taking; the table says where each needed a hand.

**@⁠slauko** on GitHub · 2026-11-25 14:04 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/4#issuecomment-7164728606) What it takes to run this line under Linux/Wine — nine sync candidates, verified on `2b3c339e`. With these, an RTX 3080 Ti under Proton Experimental (Wine 11.0, vkd3d-proton `master@ec20719`) gets through the menus at 25–30 fps and renders the intro at 1.3–2.5 fps. Without them it stops at the start screen or in a black world. | From | What | Why it matters under Wine | How it applied on `2b3c339e` | |---|---|---|---| | fxceless#20 | DXC fallback for every run-time `D3DCompile` | Wine's `d3dcompiler_47` refuses the runtime's own HLSL (`E5005 … RWByteAddressBuffer`): without the clamp every indirect execution is dropped, without the card compare the card buffers are off | clean, as three commits | | VIctory#1722 (or fxceless#885) | The empty pipeline library with a null blob | vkd3d-proton refuses the dangling one: `no host pipeline library: pipelines are not kept`, so every run made its ~1,500 pipelines again | by hand in `pipeline/library.rs`: the null-pointer case belongs in the `make` closure, since this line's `open()` differs from VIctory's | | fxceless#845 | `VICTORY_EARLY_PIPELINES=0` | **The second launch:** with a saved library the runtime started 1,657 pipelines early; the title presented no frame after frame 32 and its watchdog ended it (`title+0x2215c35`, 45 s) | clean (README conflict only) | | fxceless#823 | xmem maps runs of pages as one view; four 64-lane compute programs on 32-lane hosts | fewer map and unmap calls — each costs O(views) in wineserver | first commit clean; second by hand in `shader_cache.rs` (this line's `warm()` and `Outcome` stay, both now translating through `translate_listed`) | | fxceless#91 | `VICTORY_SKIP_PIPELINES` in release builds | the switch was read by diagnostics builds only | clean (README conflict only) | | fxceless#256 | Under Wine, write title memory without a wineserver request | every write went through the server | clean | | VIctory `e6fe8ec` | `CreateSamplerX` fix | upstream fix | clean | | VIctory, the first group of flale1's list | saves, XAsync, window stand-in, depth/stencil footprints, library write race, cache temp files, TDR log | — | clean with `git cherry-pick -m 1` (a plain `merge-tree` on the merge commits reports conflicts the pick does not have); `XGameSave` is here in the meantime as `d1da85a8` | | 16 MiB stacks (VIctory#1528) | pipeline workers `.stack_size(16 << 20)`, `/STACK:16777216` for the image | some translations overflow the default under Wine | two small own commits | Three of the entries of the first list need nothing: `c1c3281`, `1134418` and `338808e` are empty picks here — this line has them in another form. Two things that are not a pick but decide whether a Wine run starts at all: - **A gamepad Wine reports and nobody presses.** The runtime offers its keyboard stand-in only while XInput has no pad. A mouse with a joystick interface (here the keyboard interface of a Logitech G502) is a pad to Wine, and the title waits at the start screen for ever. The log says `input device device=0 connected=true` instead of `device=4`. `SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000` around the launch. - **The frame.** With Proton's wineserver a world frame took 5.4 s (median); with the tree-indexed one 0.62 s. The patch is in fxceless/victory-fork#184, and `WINESERVER` does not select it — the server has to be started for the prefix. `main` moved on since (`009856f0`, with fxceless' performance commits), so re-check before taking; the table says where each needed a hand.
This discussion has been locked. Commenting is limited to contributors.
No description provided.