The title's own lists borrow their host list while recording (VICTORY_BORROW_RECORDING=1) #1
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!1
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1"
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?
@tbarnavon on GitHub · 2026-11-28 17:52 UTC · original
tbarnavon:windows/borrow-title-lists→main· +17 −3 · 2 files · 1 commits · closed without mergingWhat
VICTORY_BORROW_RECORDINGonly reachedVICTORY_THIN's back lists. This lets the title's own lists use it too: a submitted list gives its host list up and takes one from the pool (fresh_list) at its next reset, instead of being handed a new closed one at once. The switch read moves intolist::borrow_recording(), shared by both paths.Off by default; nothing changes without the switch.
Why
Without it every list of the title's holds a host list for good. The title keeps some 730 lists, so about that many host lists are alive from the loading screen on, each with its allocators, prelude and indirect budget.
On Windows this ended every run in the world's first minutes:
0x887A0007, empty breadcrumbs, no driver event (no TDR)Kernel memory failure. There might be a memory leak.With
VICTORY_BORROW_RECORDING=1the same setup played a 23-minute session and several shorter ones with no loss.Tested
cargo check -p victory-gpuandcargo check -p victory --features diagnostics: no new warnings🤖 Generated with Claude Code
@Luxuride on GitHub · 2026-12-04 12:00 UTC · original · edited 2026-12-05 11:22 UTC
The switch this flips no longer exists, so the patch is aimed at code that is gone rather than at something wrong.
2773fdfmade borrowing permanently off (crates/victory-gpu/src/list.rs:644is nowborrow_recording: false,crates/victory-gpu/src/list/thin.rs:311setsback.borrow_recording = false;), andgit grep VICTORY_BORROW_RECORDING origin/mainreturns nothing. The problem the PR measured is now bounded differently, by idle-list age trimming:crates/victory-gpu/src/list.rs:302-320(age_trim,ALLOCATOR_TRIM,TRIMMED_LISTS) plusVICTORY_KEEP_HOST_BUFFERS.The patch itself is clean, and it conflicts in
list.rs/thin.rsafter 400+ commits. Whether that leaves anything worth reviewing here is the maintainer's call, not mine.If you still see host lists piling up on the 6900 XT, the reviewable artefact would be an issue with a
TRIMMED_LISTS/VICTORY_KEEP_HOST_BUFFERSreading from the current tree rather than a rebase of this.Pull request closed