Textures: zeros for a texture's first contents and new levels come from one shared buffer in card memory, not an upload buffer per copy (VICTORY_SHARED_ZEROS) #1588

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

@⁠101Leafy on GitHub · 2026-11-28 21:58 UTC · original
101Leafy:nv/shared-zeros → main · +120 −28 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC

A texture's first contents and each new level started from zeros held in an upload buffer the size of the whole texture (or level). Each one was made, waited resident, and cleared while the list was recorded, then sent over the bus again.

Now every such copy reads from one buffer of zeros in the card's memory, which nothing writes. Memory made without CREATE_NOT_ZEROED already holds zeros, so it needs no clear and no upload. The buffer grows by powers of two up to 256 MB. One that was outgrown is kept, since a list recorded with it may not have run yet. Past 256 MB, or with VICTORY_SHARED_ZEROS=0, the old upload buffers are used.

**@⁠101Leafy** on GitHub · 2026-11-28 21:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1588) `101Leafy:nv/shared-zeros` → `main` · +120 −28 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC A texture's first contents and each new level started from zeros held in an upload buffer the size of the whole texture (or level). Each one was made, waited resident, and cleared while the list was recorded, then sent over the bus again. Now every such copy reads from one buffer of zeros in the card's memory, which nothing writes. Memory made without `CREATE_NOT_ZEROED` already holds zeros, so it needs no clear and no upload. The buffer grows by powers of two up to 256 MB. One that was outgrown is kept, since a list recorded with it may not have run yet. Past 256 MB, or with `VICTORY_SHARED_ZEROS=0`, the old upload buffers are used.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 22:00:00 +00:00
github-bot force-pushed github-bot/gh-1588 from 72af84001c to a36df7d2a1 2026-11-29 01:46:31 +00:00 Compare
Author
Owner

@⁠NotADonky43 on GitHub · 2026-11-29 03:44 UTC · original

RTX 5070 Ti/Series X opening, #1588 isolated on cumulative 7f78e8f7 (upstream d1486134). Same release binary with aggregate counters, same frozen profile, 25,728 precompiled shaders and same warm pipeline library. Four openings off/on/on/off, each to six settled heavy render windows. The two enabled runs replaced 192/192 and 127/127 whole-texture upload clears (36.87 and 32.65 MiB of logical initialization) with shared-source copies, holding 36 MiB of committed zero-buffer capacity each. No on-demand single-mip zero call appeared in these runs. Off controls saw 311 and 126 whole-texture clears. These are calls/footprint bytes, not separate driver allocations or a PCIe traffic measurement. Median reported p95s off vs on: 59.0 vs 65.1 ms; reverse 56.5 vs 58.2 ms. Peak private GiB 28.21 vs 26.48; reverse 26.33 vs 26.42. Not scene-matched or evidence of an FPS/total-memory gain. Keeping it separate on this profile. Local fenced texture-byte readback passed with upload fallback and shared source (record two sizes before submission to force 4→8 MiB growth). Posted a source-independent before/after sentinel regression against current main in #1946.

**@⁠NotADonky43** on GitHub · 2026-11-29 03:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1588#issuecomment-7250228011) RTX 5070 Ti/Series X opening, #1588 isolated on cumulative 7f78e8f7 (upstream d1486134). Same release binary with aggregate counters, same frozen profile, 25,728 precompiled shaders and same warm pipeline library. Four openings off/on/on/off, each to six settled heavy render windows. The two enabled runs replaced **192/192 and 127/127** whole-texture upload clears (36.87 and 32.65 MiB of logical initialization) with shared-source copies, holding **36 MiB of committed zero-buffer capacity** each. No on-demand single-mip zero call appeared in these runs. Off controls saw 311 and 126 whole-texture clears. These are calls/footprint bytes, not separate driver allocations or a PCIe traffic measurement. Median reported p95s off vs on: 59.0 vs 65.1 ms; reverse 56.5 vs 58.2 ms. Peak private GiB 28.21 vs 26.48; reverse 26.33 vs 26.42. Not scene-matched or evidence of an FPS/total-memory gain. Keeping it separate on this profile. Local fenced texture-byte readback passed with upload fallback and shared source (record two sizes before submission to force 4→8 MiB growth). Posted a source-independent before/after sentinel regression against current main in #1946.
github manually merged commit 676c3c3c83 into main 2026-11-29 08:21:21 +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!1588
No description provided.