Alias copies: VICTORY_ALIAS_DIRECT=1 copies R32_UINT/SINT and R9G9B9E5 texture to texture, without the buffer #1730

Manually merged
github merged 4 commits from github-bot/gh-1730 into main 2026-11-29 08:20:44 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 23:46 UTC · original
101Leafy:nv/alias-direct → main · +80 −35 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC

D3D12 copies the bits of R32_UINT and R32_SINT into R9G9B9E5_SHAREDEXP and back, so those alias copies need no buffer in between. They were every alias copy of a play run, 81 a frame for 8.4 ms of card time, each with two copies and two buffer barriers where one copy does.

With VICTORY_ALIAS_DIRECT=1 these pairs copy texture to texture. The bits land the same, so the picture should not change. Other formats keep the buffer path. Off by default.

**@⁠101Leafy** on GitHub · 2026-11-28 23:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1730) `101Leafy:nv/alias-direct` → `main` · +80 −35 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC D3D12 copies the bits of R32_UINT and R32_SINT into R9G9B9E5_SHAREDEXP and back, so those alias copies need no buffer in between. They were every alias copy of a play run, 81 a frame for 8.4 ms of card time, each with two copies and two buffer barriers where one copy does. With `VICTORY_ALIAS_DIRECT=1` these pairs copy texture to texture. The bits land the same, so the picture should not change. Other formats keep the buffer path. Off by default.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:52:49 +00:00
github-bot force-pushed github-bot/gh-1730 from f173768c80 to 1ef976c324 2026-11-29 01:47:39 +00:00 Compare
Author
Owner

@⁠eleboucher on GitHub · 2026-11-29 07:36 UTC · original

PC result: RTX 4070 Ti SUPER 16 GB, Ryzen 7 9800X3D, 16 GB RAM, Windows 11, native 1440p, VICTORY_BVH_BUILDER=1 VICTORY_ACTIVATE_RAYS=1, diagnostics build of main 568c5e5d plus this PR and several others (one exe, one switch per run), 10-minute runs, medians after 200 s. Same exe without the switch: 24.3 fps (p10 23.5), preparing 30.6 ms.

With VICTORY_ALIAS_DIRECT=1: 25.5 fps (p10 23.9), preparing 29.2 ms, about +1.2 fps. In a timing run the alias copies were 1.4 ms of card time a frame (73 a frame). No crash.

**@⁠eleboucher** on GitHub · 2026-11-29 07:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1730#issuecomment-7252573884) PC result: RTX 4070 Ti SUPER 16 GB, Ryzen 7 9800X3D, 16 GB RAM, Windows 11, native 1440p, `VICTORY_BVH_BUILDER=1 VICTORY_ACTIVATE_RAYS=1`, diagnostics build of main 568c5e5d plus this PR and several others (one exe, one switch per run), 10-minute runs, medians after 200 s. Same exe without the switch: 24.3 fps (p10 23.5), preparing 30.6 ms. With `VICTORY_ALIAS_DIRECT=1`: 25.5 fps (p10 23.9), preparing 29.2 ms, about +1.2 fps. In a timing run the alias copies were 1.4 ms of card time a frame (73 a frame). No crash.
github manually merged commit cd602244ec into main 2026-11-29 08:20:44 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!1730
No description provided.