Skip old title reads for fully overwritten textures #2299

Manually merged
github merged 1 commit from github-bot/gh-2299 into main 2026-11-30 14:17:32 +00:00 AGit
Owner

@⁠P2GR on GitHub · 2026-11-29 11:34 UTC · original
P2GR:contrib/skip-overwritten-texture-read-bytes → main · +109 −6 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC

What it changes

VICTORY_TEXBACK_FULL_OVERWRITE=1 avoids reading all old destination pixels when one single-sampled, addressable 2D subresource covers the entire native allocation. It probes one byte per native page and keeps the existing full read for padding, additional subresources, software-mapped views and VICTORY_TEXBACK_SAME=1 comparisons. It is off by default.

How it was tested

  • On verified Microsoft D3D12 WARP with relay off, the existing runtime fixture landed 50 bit-exact 512 KiB R32G32_FLOAT readbacks with the switch off and on. The enabled path skipped 26,208,000 old title bytes per 50-readback batch in both readback-pool modes. The comparison mode skipped zero bytes and kept the same output.
  • Two focused tests covered padded and multi-subresource layouts, unaligned native page boundaries and a missing page. The focused victory-gpu tests passed with the diagnostics-build fix from #2208 applied locally.
  • This path came from profiling the RTX 2080 Ti at 720p rendered to 1080p, DLSS Quality, frame generation off. The measurement above is a software-adapter byte count. A matched gameplay FPS run is pending.

Checked for overlap

  • Checked current main and open PRs. #876 reuses readback resources. #881 concerns unsupported layouts.
**@⁠P2GR** on GitHub · 2026-11-29 11:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2299) `P2GR:contrib/skip-overwritten-texture-read-bytes` → `main` · +109 −6 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC ## What it changes `VICTORY_TEXBACK_FULL_OVERWRITE=1` avoids reading all old destination pixels when one single-sampled, addressable 2D subresource covers the entire native allocation. It probes one byte per native page and keeps the existing full read for padding, additional subresources, software-mapped views and `VICTORY_TEXBACK_SAME=1` comparisons. It is off by default. ## How it was tested - On verified Microsoft D3D12 WARP with relay off, the existing runtime fixture landed 50 bit-exact 512 KiB `R32G32_FLOAT` readbacks with the switch off and on. The enabled path skipped 26,208,000 old title bytes per 50-readback batch in both readback-pool modes. The comparison mode skipped zero bytes and kept the same output. - Two focused tests covered padded and multi-subresource layouts, unaligned native page boundaries and a missing page. The focused `victory-gpu` tests passed with the diagnostics-build fix from #2208 applied locally. - This path came from profiling the RTX 2080 Ti at 720p rendered to 1080p, DLSS Quality, frame generation off. The measurement above is a software-adapter byte count. A matched gameplay FPS run is pending. ## Checked for overlap - [x] Checked current `main` and open PRs. #876 reuses readback resources. #881 concerns unsupported layouts.
Carry the local dense texture readback path onto the upstream readback pool. Keep copies for partial layouts, software views and change comparisons, and probe each native page before writing the full output.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 11:38:56 +00:00
github manually merged commit 38960355e8 into main 2026-11-30 14:17:32 +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!2299
No description provided.