GPU: log title slots past a capped heap once per 64 Ki, not each #1799
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1800"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by AgneyaK on 2026-11-24T22:46:31Z.
On a host that caps the view heap (NVIDIA: 1,000,000 views, while the title's heap has 1,245,184),
HostHeap::mirrorwarnstitle slot past the host heapon every new highest index. The title walks its slots in order, so the log gets one line per slot: about 310,000 lines in the first minute (reported in #1753, #1754 and #1781; 136,104 lines in 33 s in a run on this laptop, a quarter of that log).Change. The warning is kept for the first slot past the heap and then given once per new 64 Ki step of slots (
past_heap_step). For that heap that's 6 lines instead of 310,720. Nothing else changes: the slot still returnsNoneas before.Tested (Windows 11 26300, Rust 1.98.1, on top of
main70564ae):slots_past_the_heap_log_once_per_step: walks 934,464..1,245,184 as the title does, expects 6 logged slots, none for a lower or equal index.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean. My hunks are rustfmt-clean.Not tested: a title run with this change (the RTX 3050 here hits the #1754 removal on
mainwithin a minute; the line count above is from that run without the change). It doesn't touch the heap cap itself (#1627, #1777, #1779).AI use: Claude Code (Claude Opus 5.5) wrote the change and the test and ran them; the results are from the runs described.
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T23:03:23Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Title slots past a capped heap logged once per 64 Ki instead of per slot: log-spam fix, 2.4K.
Imported from Marvisak/VIctory. Originally posted by MrEjecutor on 2026-11-25T00:42:59Z.
A title run with this change, RTX 5060 Ti (Blackwell): without it the boot ends at 52 s in the title's own watchdog; with it the menus run and the world is reached
The PR says a title run was not tested; here is one, before and after, where the only difference is this PR.
Setup: RTX 5060 Ti 16 GB, driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 26200; Rust 1.100; Series X profile.
main70564ae+ #1775 (3f91087), then the same with this PR merged (2a4698a). Diag build,VICTORY_D3D12_DRED=1, stderr to a file, the same scriptedEnterpresses, the same shader cache and pipeline library for both runs (translate --cache --pipelinesfirst). One run each.70564ae+ #1775title slot past the host heaplines0xc0000005 at victory-image-…dll+0x258b000, stack through+0x2215c35/+0x2215eca0x887A0006), see belowWithout the PR the walk begins right after frame 2 and writes those 165,284 lines in 39 s (slots 934,464 to 1,099,747, about 236 µs a slot here), and no frame is presented in that time. Then the title ends itself; the stack is the one #1317 attributes to the title's watchdog thread, and the title tries to upload its crash report (blocked). No device removal in that run. So on this machine the per-slot warning is more than log volume: it holds the title long enough for its watchdog. With the PR the same walk passes unnoticed.
What ends the run with the PR is a different problem, in the world: 10 submissions of 5.3 to 5.7 s (
slow host submission, about 5.7 s of GPU time per frame), 9 of them with[compute 00167d58cc5a78d7]in their lists (the program in the RTX 2070 SUPER report on #1753), thenhost GPU device removed after a submission of 15 listswith0x887A0006; the last command DRED shows isdispatch 16x16x6 [compute 7ec32976ba4a1227]. Twonvlddmkmresets.Not tested:
70564aewithout #1775 on this card (so nothing here measures #1775 itself); currentmain; more than one run each.AI use: Claude Code built, ran and wrote this; checked by mrejecutor. No game data attached.
RTX 4060) D3D12 compatibility, 2s TDR submissions, and 16 GB host OOM #1076upstream-sync referenced this pull request2026-11-25 02:05:49 +00:00
RTX 4060) D3D12 compatibility, 2s TDR submissions, and 16 GB host OOM #1076Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:24:52Z.
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-gpu/src/descriptor/host.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (merge candidate) was for an older state ofmain.Generated by Claude Code
upstream-sync referenced this pull request2026-11-25 21:02:56 +00:00
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.