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

Open
unueberlegt wants to merge 3 commits from upstream-pr/2666 into main
unueberlegt commented 2026-11-29 15:46:40 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by unueberlegt on 2026-11-29T15:46:40Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5552347850 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2666). Originally posted by [unueberlegt](https://github.com/unueberlegt) on 2026-11-29T15:46:40Z. --- 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)
LasVegas38919 commented 2026-11-29 15:52:25 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by LasVegas38919 on 2026-11-29T15:52:25Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7258434984 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2666#issuecomment-7258434984). Originally posted by [LasVegas38919](https://github.com/LasVegas38919) on 2026-11-29T15:52:25Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2666:upstream-pr/2666'
git switch 'upstream-pr/2666'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2666'
git switch 'upstream-pr/2666'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2666'
git switch 'upstream-pr/2666'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2666'
git switch 'main'
git merge --squash 'upstream-pr/2666'
git switch 'main'
git merge --ff-only 'upstream-pr/2666'
git switch 'main'
git merge 'upstream-pr/2666'
git push origin 'main'
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!2666
No description provided.