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

Merged
101Leafy merged 4 commits from upstream-pr/1730 into main 2026-11-29 08:16:54 +00:00
101Leafy commented 2026-11-28 23:46:46 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T23:46:46Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545750748 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1730). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T23:46:46Z. --- 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.
eleboucher commented 2026-11-29 07:36:07 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-29T07:36:07Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7252573884 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1730#issuecomment-7252573884). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-29T07:36:07Z. --- 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.
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!1730
No description provided.