Reduce descriptor and scratch overhead on GPU completion #2998

Closed
github-bot wants to merge 1 commit from github-bot/gh-2998 into main AGit
Owner

@⁠taltmann0818 on GitHub · 2026-11-29 19:18 UTC · original
taltmann0818:codex/console-parity-fps → main · +233 −155 · 9 files · 1 commits · closed without merging

Changes

  • Batch dynamic descriptor frees and resource retirement after the host fence completes. Keep the plain next-fit allocator and retain its failed-run watermark when a release frees nothing.
  • Return completed upload and GPU-filled scratch chunks to their respective pools within the existing spare budget. Remove unused write-watch snapshots from submission refreshes.
  • Extend VICTORY_RELAY_TIMING=1 to time descriptor retirement, readbacks, card-plan cleanup, and scratch separately. Repair the existing diagnostics build errors in submission timing and the memory report.
  • Add VICTORY_DSTORAGE_STAGING_BYPASS=1 for streaming trials. Other lane heads can use available staging up to four times before the blocked head gets the next space. Each started read retains its staging charge through completion. Related DirectStorage proposal

Measurements

An optimized synthetic trace on a 393,216-slot heap alternated 32 occupied and 32 free slots, then retried an impossible 64-slot allocation after each of 512 duplicate frees. The median across five alternating pairs was 163.7 ms on stock and 0.005 ms with the candidate. Both returned the same allocation results.

The matched warm-cache RTX 5070 prologue comparison is pending. Use the same checkpoint and Series S profile with frame generation and RT off. Compare p95 rendered frame time and worst rolling five-second rendered FPS, then inspect foliage, glass, and character geometry. Keep the DirectStorage experiment disabled for the first comparison.

Checks

  • Windows workspace check with all features and the staged asset-policy check passed.
  • Release-mode allocator tests passed for the plain and bitmap paths against the same generated traces. Focused GPU and DirectStorage checks are in progress.
  • Full validation also encountered failures on unchanged code. The workspace tests stop at three BCPack oracle tests. Strict Clippy reports existing workspace lints, and the whole-tree asset check flags an existing file outside this diff.
**@⁠taltmann0818** on GitHub · 2026-11-29 19:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2998) `taltmann0818:codex/console-parity-fps` → `main` · +233 −155 · 9 files · 1 commits · closed without merging ## Changes - Batch dynamic descriptor frees and resource retirement after the host fence completes. Keep the plain next-fit allocator and retain its failed-run watermark when a release frees nothing. - Return completed upload and GPU-filled scratch chunks to their respective pools within the existing spare budget. Remove unused write-watch snapshots from submission refreshes. - Extend `VICTORY_RELAY_TIMING=1` to time descriptor retirement, readbacks, card-plan cleanup, and scratch separately. Repair the existing diagnostics build errors in submission timing and the memory report. - Add `VICTORY_DSTORAGE_STAGING_BYPASS=1` for streaming trials. Other lane heads can use available staging up to four times before the blocked head gets the next space. Each started read retains its staging charge through completion. [Related DirectStorage proposal](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/2332) ## Measurements An optimized synthetic trace on a 393,216-slot heap alternated 32 occupied and 32 free slots, then retried an impossible 64-slot allocation after each of 512 duplicate frees. The median across five alternating pairs was 163.7 ms on stock and 0.005 ms with the candidate. Both returned the same allocation results. The matched warm-cache RTX 5070 prologue comparison is pending. Use the same checkpoint and Series S profile with frame generation and RT off. Compare p95 rendered frame time and worst rolling five-second rendered FPS, then inspect foliage, glass, and character geometry. Keep the DirectStorage experiment disabled for the first comparison. ## Checks - Windows workspace check with all features and the staged asset-policy check passed. - Release-mode allocator tests passed for the plain and bitmap paths against the same generated traces. Focused GPU and DirectStorage checks are in progress. - Full validation also encountered failures on unchanged code. The workspace tests stop at three BCPack oracle tests. Strict Clippy reports existing workspace lints, and the whole-tree asset check flags an existing file outside this diff.
Batch dynamic descriptor retirement, cache failed next-fit scans across no-op frees, and recycle shared scratch once its detached list completes. Add opt-in landing timings and bounded DirectStorage staging bypasses to support matched performance runs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:19:29 +00:00
github-bot closed this pull request 2026-11-29 19:24:55 +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!2998
No description provided.