Descriptor: views past the capped heap are counted and shown (part of #2625) #2666

Open
github-bot wants to merge 3 commits from github-bot/gh-2666 into main AGit
Owner

@⁠unueberlegt on GitHub · 2026-11-29 15:46 UTC · original
unueberlegt:diag/past-cap-views → main · +51 −4 · 3 files · 3 commits · open

Two reports ask to tell views the capped heap cannot hold apart from a texture problem:

  • #2625: the whole picture turns white or black for a moment — 41% of the title's views (507,329 of 1,245,184) read the null slot past the fitted 737,855, and which ones depends on the camera. Its reporter asks for a counter "on the F3 panel".
  • #2464, fourth section: full-screen flashes while driving on NVIDIA, the same 1,000,000-view cap; the author asks for "a count in a periodic line".

Both are answered with the counting that the warn was missing and the two surfaces they asked for:

  • HostHeap::mirror_inner refused a view past the cap with a warn once per new highest slot. It counts every refusal now (note_past_cap_view) and keeps the highest slot seen.
  • The five-second line gained, beside the table-slot drops: views past the capped heap: N in this interval, the highest title slot there H.
  • The stats panel's DRAWS line gained PAST CAP n (the count since the start) — #2625's reporter asked for that panel by name.

Nothing else changes: which views read the null slot, and what they read, are exactly as before. A follow-up that makes those reads return a neutral descriptor instead of null is the next step, and I would like the maintainer's read on it first (#2625's second question) — the numbers from real runs will say how much that is worth.

Verification (RTX 5070 / Windows 11, main 829188e9):

  • cargo test -p victory-gpu --lib --locked: 916 passed, 0 failed (57 ignored, as on main). The new test a_view_past_the_cap_is_counted_and_the_highest_slot_kept was watched red (the two functions missing) before green.
  • cargo clippy -p victory-gpu --all-targets --locked: the warning set is main's own (31 rows before and after, two pure line shifts from this edit).
  • The workspace's clippy gate is red on main as of 829188e9 (victory-shader: while_immutable_condition and two unused imports; victory-loader: unwind_copy) — none of which this branch touches.

🤖 Generated with Claude Code

**@⁠unueberlegt** on GitHub · 2026-11-29 15:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2666) `unueberlegt:diag/past-cap-views` → `main` · +51 −4 · 3 files · 3 commits · open Two reports ask to tell views the capped heap cannot hold apart from a texture problem: - **#2625**: the whole picture turns white or black for a moment — 41% of the title's views (507,329 of 1,245,184) read the null slot past the fitted 737,855, and which ones depends on the camera. Its reporter asks for a counter "on the F3 panel". - **#2464, fourth section**: full-screen flashes while driving on NVIDIA, the same 1,000,000-view cap; the author asks for "a count in a periodic line". Both are answered with the counting that the warn was missing and the two surfaces they asked for: - `HostHeap::mirror_inner` refused a view past the cap with a warn once per new highest slot. It counts every refusal now (`note_past_cap_view`) and keeps the highest slot seen. - The five-second line gained, beside the table-slot drops: `views past the capped heap: N in this interval, the highest title slot there H`. - The stats panel's DRAWS line gained `PAST CAP n` (the count since the start) — #2625's reporter asked for that panel by name. Nothing else changes: which views read the null slot, and what they read, are exactly as before. A follow-up that makes those reads return a neutral descriptor instead of null is the next step, and I would like the maintainer's read on it first (#2625's second question) — the numbers from real runs will say how much that is worth. Verification (RTX 5070 / Windows 11, main `829188e9`): - `cargo test -p victory-gpu --lib --locked`: 916 passed, 0 failed (57 ignored, as on main). The new test `a_view_past_the_cap_is_counted_and_the_highest_slot_kept` was watched red (the two functions missing) before green. - `cargo clippy -p victory-gpu --all-targets --locked`: the warning set is main's own (31 rows before and after, two pure line shifts from this edit). - The workspace's clippy gate is red on `main` as of `829188e9` (`victory-shader`: `while_immutable_condition` and two unused imports; `victory-loader`: `unwind_copy`) — none of which this branch touches. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A title view past the host heap's cap has only warned once per new
highest slot (the two reporters behind this ask to tell a null-slot
read apart from a texture problem: #2625, the fourth section of
#2464). Every refusal is counted now, the highest slot seen there is
kept, and both are shown: in the five-second line beside the
table-slot drops, and as PAST CAP on the stats panel's DRAWS line
(the count since the start). The warn itself is unchanged.

Co-Authored-By: Claude Code <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 15:47:12 +00:00
Author
Owner

@⁠LasVegas38919 on GitHub · 2026-11-29 15:52 UTC · original

Thanks for picking this up, and for taking the time to wire the counters into both
places — the F3 PAST CAP line is exactly what I was hoping for when I opened #2625,
and having it in the five-second line as well is more than I asked for.

For the record, from the machine that filed the report (RTX 3090 24 GB, 9800X3D, 32 GB,
driver 610.62, VICTORY_DYNAMIC_SLOTS=262144):

host view heap capped at 1000000 (737855 title + 262144 dynamic slots);
views past 737855 read a null slot count=1245184 fitted=737855 dynamic=262144

so 507,329 views past the cap, 40.8% of what the title asks for. On screen it is a
full-frame white (sometimes black) flash that clears the moment the camera turns back —
by far the most disruptive artefact I see, well ahead of the texture and blocky-effect
issues. It shows up most when driving fast through the city, which matches the
full-screen flashes in #2464 you mention.

Your reading of the order is the one I'd take too: count it, see what a real session
says, then decide what those reads should return. The "neutral descriptor instead of
null" follow-up is the change I'd most like to see — even a flat grey would turn a
blinding white flash into a slight wash, which would already make the game playable in
those moments. Whatever the maintainer decides, if a test build shows up I'll run it on
this machine and report back with numbers; the reproduction here is reliable, 100% of
sessions.

Thanks again — reading a report and turning it into instrumentation this quickly is
genuinely appreciated.

**@⁠LasVegas38919** on GitHub · 2026-11-29 15:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2666#issuecomment-7258434984) Thanks for picking this up, and for taking the time to wire the counters into both places — the F3 `PAST CAP` line is exactly what I was hoping for when I opened #2625, and having it in the five-second line as well is more than I asked for. For the record, from the machine that filed the report (RTX 3090 24 GB, 9800X3D, 32 GB, driver 610.62, VICTORY_DYNAMIC_SLOTS=262144): host view heap capped at 1000000 (737855 title + 262144 dynamic slots); views past 737855 read a null slot count=1245184 fitted=737855 dynamic=262144 so 507,329 views past the cap, 40.8% of what the title asks for. On screen it is a full-frame white (sometimes black) flash that clears the moment the camera turns back — by far the most disruptive artefact I see, well ahead of the texture and blocky-effect issues. It shows up most when driving fast through the city, which matches the full-screen flashes in #2464 you mention. Your reading of the order is the one I'd take too: count it, see what a real session says, then decide what those reads should return. The "neutral descriptor instead of null" follow-up is the change I'd most like to see — even a flat grey would turn a blinding white flash into a slight wash, which would already make the game playable in those moments. Whatever the maintainer decides, if a test build shows up I'll run it on this machine and report back with numbers; the reproduction here is reliable, 100% of sessions. Thanks again — reading a report and turning it into instrumentation this quickly is genuinely appreciated.
PAST CAP becomes a StatRow of the slim F3 panel (PR 4634 rewrote it),
coral while anything reads past the capped heap, muted at zero.

Co-Authored-By: Claude Code <[email protected]>
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/panel.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2666/head:github-bot/gh-2666'
git switch 'github-bot/gh-2666'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2666'
git switch 'github-bot/gh-2666'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2666'
git switch 'github-bot/gh-2666'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2666'
git switch 'main'
git merge --squash 'github-bot/gh-2666'
git switch 'main'
git merge --ff-only 'github-bot/gh-2666'
git switch 'main'
git merge 'github-bot/gh-2666'
git push origin 'main'
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!2666
No description provided.