WIP: feat(vk): opt-in mirror syncs by changed 256-byte blocks (RX_VK_SLOW_LINK=1) #3162

Draft
neotoxic wants to merge 9 commits from neotoxic/Longshot:perf/slow-link-blocks into main
Contributor

Summary

Draft, stacked on #3161 (the PCIe link line): review that one first. This PR's own change is the last commit.

Every submission, a mirror sync sends each page the CPU wrote to VRAM whole, about 4.9 MB a frame in Hyrule Field, while most of each page has not changed. This adds an opt-in experiment, off for everyone: with RX_VK_SLOW_LINK=1, the game hashes each page's sixteen 256-byte blocks while it already copies the page, and sends only the blocks that changed since that page's last sync. Neighbouring changed blocks go as one copy, and a page with no changed block costs nothing. Without the switch, nothing changes: no hashing, no new log line.

It is meant for testers whose GPU sits behind a slower link than the one it was measured on: a Thunderbolt eGPU (about 3 GB/s), a x4 slot, a hybrid laptop. The vk: pcie link: line from #3161 says how fast a player's link is.

Correctness comes first, since a block wrongly skipped would show as a wrong picture:

  • Only pools the GPU never writes, and that have no write-back shadow, are synced by blocks (mem_check.h explains why: a sync of only the changed words lost the game's counter resets).
  • These pages are always sent whole and forgotten: a page's first sync, a page without hashes (late, partial at a pool's edge, or a write-combined capture), and any page whose mirror is new, given back or moved.
  • The same goes for any page something else wrote into the mirror: a live sync, a page kept for the GPU, the readback refresh, a sparse fill.
  • With RX_VK_MEM_CHECK=1, each page synced by blocks is also read back from VRAM after its sync and compared with the capture's bytes.

A vk: a frame: mirror syncs by blocks line every 120 presents gives the bytes copied against the bytes the dirty pages cover:

vk: a frame: mirror syncs by blocks: 1.98 MB copied of 4.83 MB the dirty pages cover (41%); pages: 757 by blocks (657 unchanged), 0 whole as not known, 0 whole without hashes

The idea of copying only changed blocks on a slow link comes from HeyListen (Sacrappy). No code was taken; the code is Longshot's own.

Read first: gpu/vk/msync_diff.h (the hashes, the per-pool state, one page's sync), then mirror_sync and msync_diff_pool in gpu/vk/vk_memory.cpp.

Testing

Tested:

  • Windows 11, RTX 5080 at PCIe x16, ran dev.py ab --env RX_VK_SLOW_LINK=1 --runs 2 in Hyrule Field on 8b6944d2. Unset, the logs have no block line (0 in either run). With the switch, the counter shows 1.98 MB copied of 4.83 MB covered (41 %). No FATAL line in any run.
  • The same PC on 3213db7f (the same code, then turned on by a policy flag), with RX_VK_MEM_CHECK=1 and the switch: 2,038,131 pages read back after their sync, 0 differing. The check's own sync_over_gpu counter showed 0 replaced.
  • CachyOS, RTX 3060 Laptop at PCIe 3.0 x8 with its display wired to the dGPU, on 3213db7f with RX_VK_MEM_CHECK=1: 2,166,836 pages read back, 0 differing. Counter: 2.00 MB copied of 4.91 MB covered (41 %).
  • Checks: tests/test_msync_diff.py covers the block hashes, the merging, the fall-backs to whole pages, the state's key and its forgetting, and a 2000-sync random run where the mirror always matches the source. It also checks the source: the pool exclusions, the late pages, and every other writer of a mirror forgetting. It fails on main. The five fixtures that copy Pool, CopyPart or copy_pages now include the header. run_all.py --changed origin/main gives 282 passed, 5 failed, 17 skipped. The 5 that fail, test_pad_speaker (no cc here), test_tex_desc_memo, test_thinlto_tls, test_recorder_sync (runtime part) and test_prepare_stall, fail the same way on main ee9e1ed7 on this PC.

Still to test:

  • An OCuLink eGPU at PCIe 4.0 x4: the same, with the same expectation. @ouni666, your RX 6600 XT setup from #1825 is exactly this case; if you can try it, the vk: pcie link: line and the two runs' fps would settle it (by hand, a tester).
  • A Thunderbolt eGPU: run dev.py ab --a RX_VK_SLOW_LINK=0 --b RX_VK_SLOW_LINK=1 in Hyrule Field. A gain is expected only if the vk: pcie link: line shows well under 6.7 GB/s host to device; post that line and the table (by hand, a tester)
  • A hybrid (Optimus) laptop with its display on the iGPU: the same, with the same expectation (@Beanstalk ab --a RX_VK_SLOW_LINK=0 --b RX_VK_SLOW_LINK=1 on a hybrid laptop runner, with the vk: pcie link line)
  • A GPU in a x4 slot: the same, with the same expectation (@Beanstalk ab --a RX_VK_SLOW_LINK=0 --b RX_VK_SLOW_LINK=1 on a x4 runner, with the vk: pcie link line)
  • Any of the above with RX_VK_MEM_CHECK=1 and the switch: the syncs by blocks mem check line, expecting 0 pages that differ (by hand)

Measurements

RX_VK_PCIE_PROBE in this diff comes from #3161, which ships it on (the probe costs nothing in a frame: measured there). This PR adds RX_VK_SLOW_LINK, which ships off, for the reason in the Verdict.

Verdict: correct, and 59 % fewer upload bytes, but no gain where it was measured: -3 % fps on a PCIe 3.0 x8 laptop, where the hashing costs more than that link saves, and +0 on an x16 desktop. Hence off by default, for testers on slower links.

Baseline: the same build with the switch unset (RX_VK_SLOW_LINK=0), not main. The change is off unless the switch is set, so the switch alone is what the comparison isolates. 3213db7f is this commit's code before it moved onto #3161, where a policy flag turned it on instead of the switch.

Setup: an RTX 3060 Laptop on CachyOS with its display wired straight to the dGPU (MUX), PCIe 3.0 x8, the probe measuring 6.7 / 6.6 GB/s. Hyrule Field, dev.py ab --a RX_VK_SLOW_LINK=0 --b RX_VK_SLOW_LINK=1 --set RX_VK_WB_OBSERVE=1 --runs 3, on the same build. The medians of 3 interleaved runs, each run in brackets.

Before: RX_VK_SLOW_LINK=0 @ 3213db7f After: RX_VK_SLOW_LINK=1 @ 3213db7f
fps 72.9 (72.9 / 71.0 / 73.2) 70.6 (72.2 / 70.5 / 70.6)
1% low fps 53.9 (58.9 / 49.9 / 53.9) 50.2 (54.0 / 50.2 / 48.9)
upload a frame (mirror syncs) 4.91 MB 2.00 MB

On this PC (RTX 5080, x16, Windows 11, 8b6944d2, --runs 2): 173.3 / 172.8 fps unset against 172.1 / 172.3 with the switch. Unset, it matches the probe's own head c9a29ba7 on this PC, 172.2 / 173.6 fps (one 15 s run each, so a loose comparison).

Risks

  • Off unless RX_VK_SLOW_LINK=1 is set: a player who does not set it runs the same code as before, with no hashing and no extra memory.
  • With the switch, a block wrongly skipped would show as a stale or corrupt part of the picture. That is why only pools the GPU never writes are diffed and every other writer of a mirror makes the page go whole. RX_VK_MEM_CHECK=1 reads each such page back to prove it, and unsetting the switch turns it all off.
  • With the switch, the cost is the hashing of every captured page on the copy helpers, 3 % fps on the laptop above, plus 128 bytes of state per mirrored page.
  • After updating, a player notices nothing. Saves, settings and caches are untouched.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). python -I -B tests/run_all.py --strict on Windows, on this head: 689 passed, 160 failed, 51 skipped; on main @ ee9e1ed7: 687, 160, 51, the same 160 failing checks and none new (Windows ones: missing Linux tools, paths, file locking). Linux CI runs the lot.
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. Windows (this PC) and Linux (the laptop, CachyOS) both built and ran 8b6944d2.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary Draft, stacked on #3161 (the PCIe link line): review that one first. This PR's own change is the last commit. Every submission, a mirror sync sends each page the CPU wrote to VRAM whole, about 4.9 MB a frame in Hyrule Field, while most of each page has not changed. This adds an **opt-in experiment, off for everyone**: with `RX_VK_SLOW_LINK=1`, the game hashes each page's sixteen 256-byte blocks while it already copies the page, and sends only the blocks that changed since that page's last sync. Neighbouring changed blocks go as one copy, and a page with no changed block costs nothing. Without the switch, nothing changes: no hashing, no new log line. It is meant for testers whose GPU sits behind a slower link than the one it was measured on: a Thunderbolt eGPU (about 3 GB/s), a x4 slot, a hybrid laptop. The `vk: pcie link:` line from #3161 says how fast a player's link is. Correctness comes first, since a block wrongly skipped would show as a wrong picture: - Only pools the GPU never writes, and that have no write-back shadow, are synced by blocks (`mem_check.h` explains why: a sync of only the changed words lost the game's counter resets). - These pages are always sent whole and forgotten: a page's first sync, a page without hashes (late, partial at a pool's edge, or a write-combined capture), and any page whose mirror is new, given back or moved. - The same goes for any page something else wrote into the mirror: a live sync, a page kept for the GPU, the readback refresh, a sparse fill. - With `RX_VK_MEM_CHECK=1`, each page synced by blocks is also read back from VRAM after its sync and compared with the capture's bytes. A `vk: a frame: mirror syncs by blocks` line every 120 presents gives the bytes copied against the bytes the dirty pages cover: ``` vk: a frame: mirror syncs by blocks: 1.98 MB copied of 4.83 MB the dirty pages cover (41%); pages: 757 by blocks (657 unchanged), 0 whole as not known, 0 whole without hashes ``` The idea of copying only changed blocks on a slow link comes from HeyListen (Sacrappy). No code was taken; the code is Longshot's own. Read first: `gpu/vk/msync_diff.h` (the hashes, the per-pool state, one page's sync), then `mirror_sync` and `msync_diff_pool` in `gpu/vk/vk_memory.cpp`. ## Testing **Tested:** - Windows 11, RTX 5080 at PCIe x16, ran `dev.py ab --env RX_VK_SLOW_LINK=1 --runs 2` in Hyrule Field on 8b6944d2. Unset, the logs have no block line (0 in either run). With the switch, the counter shows 1.98 MB copied of 4.83 MB covered (41 %). No FATAL line in any run. - The same PC on 3213db7f (the same code, then turned on by a policy flag), with `RX_VK_MEM_CHECK=1` and the switch: 2,038,131 pages read back after their sync, 0 differing. The check's own `sync_over_gpu` counter showed 0 replaced. - CachyOS, RTX 3060 Laptop at PCIe 3.0 x8 with its display wired to the dGPU, on 3213db7f with `RX_VK_MEM_CHECK=1`: 2,166,836 pages read back, 0 differing. Counter: 2.00 MB copied of 4.91 MB covered (41 %). - Checks: `tests/test_msync_diff.py` covers the block hashes, the merging, the fall-backs to whole pages, the state's key and its forgetting, and a 2000-sync random run where the mirror always matches the source. It also checks the source: the pool exclusions, the late pages, and every other writer of a mirror forgetting. It fails on `main`. The five fixtures that copy `Pool`, `CopyPart` or `copy_pages` now include the header. `run_all.py --changed origin/main` gives 282 passed, 5 failed, 17 skipped. The 5 that fail, test_pad_speaker (no `cc` here), test_tex_desc_memo, test_thinlto_tls, test_recorder_sync (runtime part) and test_prepare_stall, fail the same way on `main` ee9e1ed7 on this PC. **Still to test:** - An OCuLink eGPU at PCIe 4.0 x4: the same, with the same expectation. @ouni666, your RX 6600 XT setup from #1825 is exactly this case; if you can try it, the `vk: pcie link:` line and the two runs' fps would settle it (by hand, a tester). - A Thunderbolt eGPU: run `dev.py ab --a RX_VK_SLOW_LINK=0 --b RX_VK_SLOW_LINK=1` in Hyrule Field. A gain is expected only if the `vk: pcie link:` line shows well under 6.7 GB/s host to device; post that line and the table (by hand, a tester) - A hybrid (Optimus) laptop with its display on the iGPU: the same, with the same expectation (@Beanstalk ab --a RX_VK_SLOW_LINK=0 --b RX_VK_SLOW_LINK=1 on a hybrid laptop runner, with the vk: pcie link line) - A GPU in a x4 slot: the same, with the same expectation (@Beanstalk ab --a RX_VK_SLOW_LINK=0 --b RX_VK_SLOW_LINK=1 on a x4 runner, with the vk: pcie link line) - Any of the above with `RX_VK_MEM_CHECK=1` and the switch: the `syncs by blocks` mem check line, expecting 0 pages that differ (by hand) ## Measurements `RX_VK_PCIE_PROBE` in this diff comes from #3161, which ships it on (the probe costs nothing in a frame: measured there). This PR adds `RX_VK_SLOW_LINK`, which ships off, for the reason in the Verdict. **Verdict:** correct, and 59 % fewer upload bytes, but no gain where it was measured: -3 % fps on a PCIe 3.0 x8 laptop, where the hashing costs more than that link saves, and +0 on an x16 desktop. Hence off by default, for testers on slower links. Baseline: the same build with the switch unset (`RX_VK_SLOW_LINK=0`), not `main`. The change is off unless the switch is set, so the switch alone is what the comparison isolates. 3213db7f is this commit's code before it moved onto #3161, where a policy flag turned it on instead of the switch. Setup: an RTX 3060 Laptop on CachyOS with its display wired straight to the dGPU (MUX), PCIe 3.0 x8, the probe measuring 6.7 / 6.6 GB/s. Hyrule Field, `dev.py ab --a RX_VK_SLOW_LINK=0 --b RX_VK_SLOW_LINK=1 --set RX_VK_WB_OBSERVE=1 --runs 3`, on the same build. The medians of 3 interleaved runs, each run in brackets. | | Before: RX_VK_SLOW_LINK=0 @ 3213db7f | After: RX_VK_SLOW_LINK=1 @ 3213db7f | |---|---|---| | fps | 72.9 (72.9 / 71.0 / 73.2) | 70.6 (72.2 / 70.5 / 70.6) | | 1% low fps | 53.9 (58.9 / 49.9 / 53.9) | 50.2 (54.0 / 50.2 / 48.9) | | upload a frame (mirror syncs) | 4.91 MB | 2.00 MB | On this PC (RTX 5080, x16, Windows 11, 8b6944d2, `--runs 2`): 173.3 / 172.8 fps unset against 172.1 / 172.3 with the switch. Unset, it matches the probe's own head c9a29ba7 on this PC, 172.2 / 173.6 fps (one 15 s run each, so a loose comparison). ## Risks - Off unless `RX_VK_SLOW_LINK=1` is set: a player who does not set it runs the same code as before, with no hashing and no extra memory. - With the switch, a block wrongly skipped would show as a stale or corrupt part of the picture. That is why only pools the GPU never writes are diffed and every other writer of a mirror makes the page go whole. `RX_VK_MEM_CHECK=1` reads each such page back to prove it, and unsetting the switch turns it all off. - With the switch, the cost is the hashing of every captured page on the copy helpers, 3 % fps on the laptop above, plus 128 bytes of state per mirrored page. - After updating, a player notices nothing. Saves, settings and caches are untouched. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). `python -I -B tests/run_all.py --strict` on Windows, on this head: 689 passed, 160 failed, 51 skipped; on `main` @ ee9e1ed7: 687, 160, 51, the same 160 failing checks and none new (Windows ones: missing Linux tools, paths, file locking). Linux CI runs the lot. - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. Windows (this PC) and Linux (the laptop, CachyOS) both built and ran 8b6944d2. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On a discrete GPU behind a narrow PCIe link (a laptop's x8, a x4 slot, an
eGPU) the per-frame traffic between guest memory and the VRAM mirrors (the
mirror syncs host to device, the write-backs device to host) costs much more
than on a x16 card. A mode that copies only the changed 256-byte blocks wins
there and loses on x16 (HeyListen's measurements, idea credited to Sacrappy;
no code taken), so it must follow the link. This is its first phase: know the
link.

Once the device is made, create_device calls pcie_link_probe
(vk_pcie_link.cpp): on a discrete GPU, 32 MB copied each way six times in one
command buffer between timestamps, the fastest round kept (a GPU at rest
raises its link speed only once it has work), about 20 ms; then the OS's
negotiated link by the device's PCI address (VK_EXT_pci_bus_info): Linux's
sysfs current_/max_link_speed and _width from the GPU up to its root port,
Windows' DEVPKEY_PciDevice_ link properties of the GPU's device node and its
parents (cfgmgr32 loaded at run time). One "vk: pcie link:" line says it all,
and dev.policy.slow_link is set: measured host to device under
RX_VK_SLOW_LINK_GBPS (9 GB/s), or forced by RX_VK_SLOW_LINK=1/0 for an A/B.
The policy block's "can and measured" line shows slow_link too. Nothing
reads it yet: behaviour is unchanged.

The rules (speed strings and codes, GB/s by line code, the narrowest hop,
the threshold, the force, the slow rule) are plain code in pcie_link.h,
run by tests/test_pcie_link.py. test_device_policy knows the new field;
test_recorder_sync lists the probe beside coopmat's as its own direct
submit before any replay.

Seen on an RTX 5080 (Windows): 26.8 GB/s host to device, 26.4 device to
host; the GPU's own link 16 GT/s x16 (at most 32 GT/s x16); slow: no.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
refactor(vk): keep the PCIe probe as a log line only, with a kill switch
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
c9a29ba77f
The probe from the previous commit measures the link each way at start and
reads the OS's negotiated link, so a player's log says what the GPU sits
behind (a laptop's x8, a x4 slot, an eGPU). It also set a slow_link policy
flag, forced by RX_VK_SLOW_LINK and RX_VK_SLOW_LINK_GBPS, for a mode that was
to follow.

That mode (mirror syncs copying only the 256-byte blocks that changed since
a page's last sync) was built and measured, and it loses: 59% fewer upload
bytes and correct (RX_VK_MEM_CHECK read every diffed page back: 0 differed),
but +0 fps on an x16 desktop and -3% on an RTX 3060 Laptop at PCIe 3.0 x8
with its display wired to the dGPU, where the hashing costs more than the
link saves. It is left out, so the flag and both switches read nothing:
removed. The "vk: pcie link:" line keeps the measured GB/s each way and the
OS's link, without a slow verdict.

RX_VK_PCIE_PROBE=0 leaves the probe out, in case a driver mishandles it;
the line then says "not probed".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
feat(vk): opt-in mirror syncs by changed 256-byte blocks (RX_VK_SLOW_LINK=1)
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
8b6944d2c5
An experiment for slow PCIe links (Thunderbolt eGPUs at ~3 GB/s, x4
slots, hybrid laptops), off for everyone: only RX_VK_SLOW_LINK=1 turns it
on, and nothing decides it from the probe's measure.

A mirror sync copies each page the CPU wrote since its pool's last sync
whole: ~4.9 MB a frame in Hyrule Field. With the switch, the capture's copy
helpers hash each copied page's sixteen 256-byte blocks (64-bit, xxHash64's
rounds; gpu/vk/msync_diff.h) from the bytes the slot gets, and mirror_sync
copies a known page's changed blocks only, neighbours merged into one
region; a page with no changed block costs nothing.

A skipped block rests on the mirror still holding the page's last sync, so
only pools the GPU never writes and with no write-back shadow are diffed,
and the first sync of a page, a page without hashes (late, partial at the
pool's edge, a write-combined capture), a new, given back or moved mirror,
and pages written by a live sync, kept for the GPU, the readback refresh or
a sparse fill go whole and forgotten.

Measured: correct, RX_VK_MEM_CHECK=1 (which now also reads each diffed page
back after its sync) found 0 differing pages of ~2 million on Windows and
on Linux; 59% fewer upload bytes (2.00 of 4.91 MB a frame). But -3% fps on
an RTX 3060 Laptop at PCIe 3.0 x8 with its display wired to the dGPU
(72.9 -> 70.6 fps, medians of 3 runs a side), the hashing costing more than that link
saves, and +0 on an x16 desktop: hence off by default, for testers on
slower links. A "vk: a frame: mirror syncs by blocks" line every 120
presents gives the bytes copied against the bytes the dirty pages cover.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: yes, on Windows 11 (RTX 5080) and CachyOS (RTX 3060 Laptop, PCIe 3.0 x8), with RX_VK_SLOW_LINK=1 and without; RX_VK_MEM_CHECK=1 read back every page synced by blocks, none differed. Off by default: nothing changes without the switch.

Tested in game: yes, on Windows 11 (RTX 5080) and CachyOS (RTX 3060 Laptop, PCIe 3.0 x8), with RX_VK_SLOW_LINK=1 and without; RX_VK_MEM_CHECK=1 read back every page synced by blocks, none differed. Off by default: nothing changes without the switch.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge main (e345b3cab) into perf/pcie-probe
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
92b13c0f7d
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge main (e345b3cab) into perf/slow-link-blocks
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
61ce4886e4
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (e345b3ca) by a merge, nothing rewritten. It also carries #3161 brought up to date the same way. Windows, run_all.py --changed origin/main: 288 passed, 3 failed: test_dlssg, test_sync_watch_event and test_turf_budget, which fail on main itself too (checked in a checkout of main on the same PC).

Brought up to current `main` (e345b3ca) by a merge, nothing rewritten. It also carries #3161 brought up to date the same way. Windows, `run_all.py --changed origin/main`: 288 passed, 3 failed: `test_dlssg`, `test_sync_watch_event` and `test_turf_budget`, which fail on `main` itself too (checked in a checkout of `main` on the same PC).
Merge main (18edd509) into perf/slow-link-blocks
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
d41ec0adab
main now holds #3161 (the PCIe link probe), merged with changes of its
own, so its three files met this branch's copy of #3161 as add/add
conflicts. Each was merged three ways from #3161's last head here
(92b13c0f): pcie_link.h and vk_pcie_link.cpp are main's as they are,
and test_pcie_link.py is main's with this branch's one change (the
probe never reads RX_VK_SLOW_LINK; vk_memory.cpp does).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (18edd509) by a merge, d41ec0ad, nothing rewritten. main now holds #3161 merged with changes of its own, so its three files met this branch's copy as add/add conflicts: each was merged three ways from #3161's last head here, which leaves pcie_link.h and vk_pcie_link.cpp as main has them and keeps this branch's one change to test_pcie_link.py. Windows, run_all.py --changed origin/main: 247 passed, 7 failed (test_dlssg, four test_present_*, test_sync_watch_event, test_turf_budget): all of them fail on main at 18edd509 too, on this PC, run there with the same toolchain.

Brought up to current `main` (18edd509) by a merge, d41ec0ad, nothing rewritten. `main` now holds #3161 merged with changes of its own, so its three files met this branch's copy as add/add conflicts: each was merged three ways from #3161's last head here, which leaves `pcie_link.h` and `vk_pcie_link.cpp` as `main` has them and keeps this branch's one change to `test_pcie_link.py`. Windows, `run_all.py --changed origin/main`: 247 passed, 7 failed (`test_dlssg`, four `test_present_*`, `test_sync_watch_event`, `test_turf_budget`): all of them fail on `main` at 18edd509 too, on this PC, run there with the same toolchain.
Merge main (3a0f7d8f7) into perf/slow-link-blocks
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
e75ca810db
First-time contributor

Thanks for the PR! I'd like to test RX_VK_SLOW_LINK on Linux, but I'm not able to build it myself. Could you provide a Linux binary or CI artifact for testing? I can report back the vk: pcie link: log line and FPS results.

Thanks for the PR! I'd like to test `RX_VK_SLOW_LINK` on Linux, but I'm not able to build it myself. Could you provide a Linux binary or CI artifact for testing? I can report back the `vk: pcie link:` log line and FPS results.
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
This pull request has changes conflicting with the target branch.
  • tests/test_wb_pending_capture.py
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/slow-link-blocks:neotoxic-perf/slow-link-blocks'
git switch 'neotoxic-perf/slow-link-blocks'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/Longshot!3162
No description provided.