GPU: a capped view heap's warning fires once per title slot past it (310,720 lines in one world load) #3474

Open
opened 2026-11-27 05:17:14 +00:00 by github-bot · 0 comments
Owner

@⁠tharun-37 on GitHub · 2026-11-27 05:14 UTC · original

What happens

A host whose shader-visible descriptor heap is smaller than the title's descriptor table (NVIDIA caps them at 1,000,000 descriptors) cannot hold every title slot. Each slot it could not hold logs a warning of its own:

WARN victory_gpu::descriptor::host: title slot past the host heap index=934464 count=934464 for_draw=false

The warning is meant for the first slot past the heap, but it fires for every new highest index the title reaches. A GTA VI world load on an RTX 4060 Laptop produced 310,720 such lines and a 140 MB log file, and the number of slots the title could not place was nowhere in it.

Why it matters

  • The log is unreadable (140 MB for one run), and every line costs the run time.
  • How far the title's descriptor table overflows the host heap is the number that says whether a clamp (the shader reads a null slot) is enough or the title's views have to be made afresh. Right now it is only in the log, as a repeated warning.

Change

  • Count the title's slots past the heap, and the highest index among them.
  • Warn for the first one and then at every doubling: 19 lines for 310,720 slots.
  • Report the count and the highest index with the run's statistics (a diagnostics build):
title slots past the host heap: 310720 (the highest, 1245183)

Verification

  • cargo test -p victory-gpu — 230 passed, 1 ignored; the 2 failures are the known NVIDIA heap-cap ones (dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views), reproduced on main.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings, with and without diagnostics — clean.
  • A world load on an RTX 4060 Laptop (driver 32.0.16.2140, Windows 11 build 26300): 19 warnings instead of 310,720, and the count in the statistics line.

Seen while reproducing the NVIDIA hang in #2661.

**@⁠tharun-37** on GitHub · 2026-11-27 05:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/3474) ## What happens A host whose shader-visible descriptor heap is smaller than the title's descriptor table (NVIDIA caps them at 1,000,000 descriptors) cannot hold every title slot. Each slot it could not hold logs a warning of its own: ``` WARN victory_gpu::descriptor::host: title slot past the host heap index=934464 count=934464 for_draw=false ``` The warning is meant for the first slot past the heap, but it fires for every new highest index the title reaches. A GTA VI world load on an RTX 4060 Laptop produced **310,720 such lines** and a 140 MB log file, and the number of slots the title could not place was nowhere in it. ## Why it matters - The log is unreadable (140 MB for one run), and every line costs the run time. - How far the title's descriptor table overflows the host heap is the number that says whether a clamp (the shader reads a null slot) is enough or the title's views have to be made afresh. Right now it is only in the log, as a repeated warning. ## Change - Count the title's slots past the heap, and the highest index among them. - Warn for the first one and then at every doubling: 19 lines for 310,720 slots. - Report the count and the highest index with the run's statistics (a diagnostics build): ``` title slots past the host heap: 310720 (the highest, 1245183) ``` ## Verification - `cargo test -p victory-gpu` — 230 passed, 1 ignored; the 2 failures are the known NVIDIA heap-cap ones (`dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views`), reproduced on `main`. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`, with and without `diagnostics` — clean. - A world load on an RTX 4060 Laptop (driver 32.0.16.2140, Windows 11 build 26300): 19 warnings instead of 310,720, and the count in the statistics line. Seen while reproducing the NVIDIA hang in #2661.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 05:17:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
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/Marvisak--VIctory#3474
No description provided.