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
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1588"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T21:58:30Z.
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_ZEROEDalready 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 withVICTORY_SHARED_ZEROS=0, the old upload buffers are used.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by NotADonky43 on 2026-11-29T03:44:12Z.
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.