Prior-art triage of the linked forks: what is already covered and what is worth testing #207

Open
opened 2026-12-02 12:13:24 +00:00 by github-bot · 0 comments
Owner

@⁠TheRifai on GitHub · 2026-12-02 12:11 UTC · original

Prior-art triage of the four linked forks (SandBar, VIctory-xmem, ReVIctory, vesper), filtered to items that could change a VKtory decision. No code was copied; these are pointers only. Full enumeration: 258 rows (SandBar 21 issues / 3 PRs, xmem 83 / 96, ReVIctory 0 / 12, vesper 37 / 6). Most rows are NVIDIA/RDNA2/8 GB/UI/telemetry and are not actionable here.

Already covered on our side, so do not redo:

  • BC7 dictionary (xmem#67) — our PR #182.
  • VRAM slack / arena free-space accounting (xmem#21) — numbers posted on xmem#21 and our #205.
  • Texture upload volume vs frame time (xmem#159) — A/B/B/A on VKB_FILL_PARTIAL posted there; fill work is not the limiter here.
  • Face-animation freeze (SandBar#11/#9/#8) — mechanism posted on our #123.
  • Placed-view shape growth (vesper#12/#24/#25) — our descriptor.rs dedups shapes (one shape for 20,000 placed views), so the reported leak does not apply.
  • Index-slot "not a view" caching (our TASKS "Renderer CPU: index slots") — already in live/slots.rs (caches NotAView words).
  • ReBAR/card pools (SandBar#1/#18/#22/#24) — our umem::Kind::Vram.

Worth a look if someone wants a change:

  1. xmem#166 — SLOT_MEMORY directory loads and immutable records metadata marked pure so the optimizer can CSE them across stores/fault-note branches; translator 12→13, records 9→10, full 25k-shader retranslation. Our opt.rs already has Effect::Reads CSE within a block and memory() has the same fault-note branch, so the same shape applies — but it needs a translator revision and a full warm store before an A/B is trustworthy.
  2. xmem#163 — skip re-reading a texture fingerprint every frame when no write watch answered (3,013→1,034 reads, 15.1→4.7 s of thread wait). We have no equivalent fingerprint path, so this is a design hint for texture freshness, not a direct port.
  3. xmem#59 — grouped s_buffer_load must bound each dword, not the group's last byte. Our raw_dwords already reads one call per four dwords with a lane mask, but that grouping (VICTORY_SHADER_OPT WIDE) is off by default, so the reported face-close-up break is not on our default path.
  4. xmem#43 / #37 — HW RT UAV memory_ready and Mesa image_heap NIR coherence; relevant to our RT/GI walker latency (#43) but touches Mesa and the translator.
  5. xmem#168 / #127 — DirectStorage's last to_pages batch with mapping_changed=true then no reads; a distinct "world never starts" class worth keeping in mind for #122/#123, but no local repro.
  6. ReVIctory#3 / vesper#4 — cutting large title-memory allocations into 64 MB sections removes 168/90/367 ms mapping gaps; a possible lever for our remap waits (#205), but not measured here.

Nothing in this list is a verified local fix; it is a map of where the forks' findings could answer an open VKtory question. Evidence for the tested rows is on the issues/PRs named above.

**@⁠TheRifai** on GitHub · 2026-12-02 12:11 UTC · [original](https://github.com/vktory6/VKtory/issues/207) Prior-art triage of the four linked forks (SandBar, VIctory-xmem, ReVIctory, vesper), filtered to items that could change a VKtory decision. No code was copied; these are pointers only. Full enumeration: 258 rows (SandBar 21 issues / 3 PRs, xmem 83 / 96, ReVIctory 0 / 12, vesper 37 / 6). Most rows are NVIDIA/RDNA2/8 GB/UI/telemetry and are not actionable here. **Already covered on our side, so do not redo:** - BC7 dictionary (xmem#67) — our PR #182. - VRAM slack / arena free-space accounting (xmem#21) — numbers posted on xmem#21 and our #205. - Texture upload volume vs frame time (xmem#159) — A/B/B/A on `VKB_FILL_PARTIAL` posted there; fill work is not the limiter here. - Face-animation freeze (SandBar#11/#9/#8) — mechanism posted on our #123. - Placed-view shape growth (vesper#12/#24/#25) — our `descriptor.rs` dedups shapes (one shape for 20,000 placed views), so the reported leak does not apply. - Index-slot "not a view" caching (our TASKS "Renderer CPU: index slots") — already in `live/slots.rs` (caches `NotAView` words). - ReBAR/card pools (SandBar#1/#18/#22/#24) — our `umem::Kind::Vram`. **Worth a look if someone wants a change:** 1. **xmem#166** — `SLOT_MEMORY` directory loads and immutable `records` metadata marked pure so the optimizer can CSE them across stores/fault-note branches; translator 12→13, records 9→10, full 25k-shader retranslation. Our `opt.rs` already has `Effect::Reads` CSE within a block and `memory()` has the same fault-note branch, so the same shape applies — but it needs a translator revision and a full warm store before an A/B is trustworthy. 2. **xmem#163** — skip re-reading a texture fingerprint every frame when no write watch answered (3,013→1,034 reads, 15.1→4.7 s of thread wait). We have no equivalent fingerprint path, so this is a design hint for texture freshness, not a direct port. 3. **xmem#59** — grouped `s_buffer_load` must bound each dword, not the group's last byte. Our `raw_dwords` already reads one call per four dwords with a lane mask, but that grouping (`VICTORY_SHADER_OPT` `WIDE`) is off by default, so the reported face-close-up break is not on our default path. 4. **xmem#43 / #37** — HW RT UAV `memory_ready` and Mesa `image_heap` NIR coherence; relevant to our RT/GI walker latency (#43) but touches Mesa and the translator. 5. **xmem#168 / #127** — DirectStorage's last `to_pages` batch with `mapping_changed=true` then no reads; a distinct "world never starts" class worth keeping in mind for #122/#123, but no local repro. 6. **ReVIctory#3 / vesper#4** — cutting large title-memory allocations into 64 MB sections removes 168/90/367 ms mapping gaps; a possible lever for our remap waits (#205), but not measured here. Nothing in this list is a verified local fix; it is a map of where the forks' findings could answer an open VKtory question. Evidence for the tested rows is on the issues/PRs named above.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 12:13:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/vktory6--VKtory#207
No description provided.