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

Closed
github-bot wants to merge 13 commits from github-bot/gh-3631 into main AGit
Owner

@⁠LeonardWernke on GitHub · 2026-11-30 02:18 UTC · original
LeonardWernke:combined-queue-fix → main · +4120 −530 · 35 files · 13 commits · closed without merging

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](#3397) · [#1944](#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](#2608) · [#2870](#2870) · [#3406](#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](#3475) · [#3129](#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](#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](#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](#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)

**@⁠LeonardWernke** on GitHub · 2026-11-30 02:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3631) `LeonardWernke:combined-queue-fix` → `main` · +4120 −530 · 35 files · 13 commits · closed without merging 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://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3397)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3397) · [[#1944](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1944)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/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://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/2608)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/2608) · [[#2870](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/2870)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/2870) · [[#3406](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3406)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/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://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3475)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3475) · [[#3129](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3129)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/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://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/2764)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/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://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/2496)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/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://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3476)](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 02:21:14 +00:00
github-bot closed this pull request 2026-12-01 15:30:50 +00:00

Pull request closed

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