GPU: log title slots past a capped heap once per 64 Ki, not each #1800
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1800
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@AgneyaK on GitHub · 2026-11-24 22:46 UTC · original
AgneyaK:fix/past-heap-log→main· +33 −2 · 1 files · 1 commits · openOn 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
@MrEjecutor on GitHub · 2026-11-25 00:42 UTC · original
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.
@Marvisak on GitHub · 2026-11-25 06:24 UTC · original · edited 2026-11-25 15:57 UTC
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
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.Merge
Merge the changes and update on Forgejo.