Improve 8 GB texture streaming, pipeline stability, and frame pacing #3631

Closed
LeonardWernke wants to merge 13 commits from upstream-pr/3631 into main
LeonardWernke commented 2026-11-30 02:18:48 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by LeonardWernke on 2026-11-30T02:18:48Z.


This branch combines the 8 GB memory and rendering fixes with a texture-queue optimization. It targets gray or flickering textures, draws skipped while pipelines are unavailable, and CPU stalls during texture streaming.

Texture streaming and memory

Rendering and pipelines

  • Clears stale reflection output when the ray-miss pass is skipped. This targets artifacts on reflective surfaces such as glass and car paint. [#2764](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764)
  • Reports unexpected skipped draws separately from intentional skips, including those caused by running with the ray-tracing builder disabled. Adds more detail to the draw-drop and pipeline memory diagnostics. [#2496](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2496)
  • Uses staged memory limits to throttle pipeline compilation, bounded retries for eligible out-of-memory failures, and an option to reuse a shared pipeline library. Rectangle pipelines skip the alternate geometry-stage attempt after an allocation failure and use the existing retry path.
  • Extends the Wave32 fallback for specific compute shader lane-mask failures. Unsupported shader metadata remains a known limitation.
  • Includes earlier fixes for render-target lifetime across replayed lists, redundant refresh ranges across submissions, automatic display sizing, and optional asynchronous audio work.

Texture queue contention

An earlier gameplay log recorded nearly 90,000 queue-lock acquisitions and about 1.5 seconds of combined thread wait in five seconds. Recording texture slots accounted for roughly 1.28 seconds of that wait.

The queue patch lets descriptor writers post updates when the queue lock is busy. The lock holder applies them with per-slot checks so a deferred update cannot overwrite a newer one. The logs count posted and applied updates. Set VICTORY_QUEUE_POST=0 to test the previous queue path in the same executable. [#3476](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3476)

Validation

The Windows release build and PowerShell preflight passed. The final descriptor and queue race tests reported 76 passed and one ignored. The repository asset-policy check also passed for the updated notes.

A matched gameplay comparison on the target 8 GB system is still pending. Compare the same intensive scene and camera route with queue posting on and off. Record queue wait time, median and 95th-percentile frame times, texture backlog, and visible gray textures or flicker. [Test notes](https://github.com/LeonardWernke/VIctory-NVIDIA/blob/combined-queue-fix/docs/texture-queue-notes.md)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5557801651 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3631). Originally posted by [LeonardWernke](https://github.com/LeonardWernke) on 2026-11-30T02:18:48Z. --- This branch combines the 8 GB memory and rendering fixes with a texture-queue optimization. It targets gray or flickering textures, draws skipped while pipelines are unavailable, and CPU stalls during texture streaming. ### Texture streaming and memory - Adds a 1 GiB soft cap for host texture copies on low-RAM systems and warns when Windows commit capacity is low. Adds VRAM budget checks for first uploads and a RAM-aware render-target residency policy. [[#3397](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3397)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3397) · [[#1944](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1944)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1944) - Prioritizes missing textures that shaders recently sampled and checks for them sooner when uploads are held back. Batches Windows texture-page residency queries, with an individual-page fallback, and checks the actual allocation cost before growing GPU memory. Deferred uploads can be retried. [[#2608](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2608)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2608) · [[#2870](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2870)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2870) · [[#3406](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3406)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3406) - Reduces queue work when upload room is exhausted. Keeps recently used placed textures alive for a short grace period when their descriptors move between slots, reducing the chance of a gray placeholder appearing during the handoff. When sampled eviction is enabled, the readback scans for slots that were both sampled and evicted before scheduling reloads. [[#3475](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3475)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3475) · [[#3129](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3129)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3129) ### Rendering and pipelines - Clears stale reflection output when the ray-miss pass is skipped. This targets artifacts on reflective surfaces such as glass and car paint. [[#2764](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764) - Reports unexpected skipped draws separately from intentional skips, including those caused by running with the ray-tracing builder disabled. Adds more detail to the draw-drop and pipeline memory diagnostics. [[#2496](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2496)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2496) - Uses staged memory limits to throttle pipeline compilation, bounded retries for eligible out-of-memory failures, and an option to reuse a shared pipeline library. Rectangle pipelines skip the alternate geometry-stage attempt after an allocation failure and use the existing retry path. - Extends the Wave32 fallback for specific compute shader lane-mask failures. Unsupported shader metadata remains a known limitation. - Includes earlier fixes for render-target lifetime across replayed lists, redundant refresh ranges across submissions, automatic display sizing, and optional asynchronous audio work. ### Texture queue contention An earlier gameplay log recorded nearly 90,000 queue-lock acquisitions and about 1.5 seconds of combined thread wait in five seconds. Recording texture slots accounted for roughly 1.28 seconds of that wait. The queue patch lets descriptor writers post updates when the queue lock is busy. The lock holder applies them with per-slot checks so a deferred update cannot overwrite a newer one. The logs count posted and applied updates. Set `VICTORY_QUEUE_POST=0` to test the previous queue path in the same executable. [[#3476](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3476)](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3476) ### Validation The Windows release build and PowerShell preflight passed. The final descriptor and queue race tests reported 76 passed and one ignored. The repository asset-policy check also passed for the updated notes. A matched gameplay comparison on the target 8 GB system is still pending. Compare the same intensive scene and camera route with queue posting on and off. Record queue wait time, median and 95th-percentile frame times, texture backlog, and visible gray textures or flicker. [[Test notes](https://github.com/LeonardWernke/VIctory-NVIDIA/blob/combined-queue-fix/docs/texture-queue-notes.md)](https://github.com/LeonardWernke/VIctory-NVIDIA/blob/combined-queue-fix/docs/texture-queue-notes.md)

Pull request closed

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!3631
No description provided.