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/Belobug--VIctory-Belobug-AMD!620
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-620"
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?
@icdmkg2 on GitHub · 2026-11-27 14:20 UTC · original
icdmkg2:rdna2-allocator-limits→a-publier· +176 −15 · 5 files · 2 commits · openRDNA 2 (RX 6000) cards lose the device with the relay on (#329, #376). This keeps the relay on and the device alive on an RX 6750 XT, by keeping live command allocators under AMD's limit, and adds a measured launcher preset and an unattended benchmark. On an RX 6750 XT with 32 GB, busy scenes go from 4 to 5 fps (the
VICTORY_RELAY=0workaround) to about 18 fps.What was wrong on this card
Under the D3D12 debug layer, at the loss:
Kernel memory failure. There might be a memory leak.(id 834), and the live-object report listed 2,041ID3D12CommandAllocators with 1,236 host lists alive. Every host list kept a second allocator (its prelude) for its whole life once it had needed one, and the pools let idle lists pile up.VICTORY_RELAY=0avoided the loss but left busy scenes at 4 to 5 fps on this card.Changes
host.rs): a list borrows one when it first needs a prelude and gives it back atreset(), after all of its submissions have run. Idle lists now hold one allocator, not two.VICTORY_PRELUDE_POOLbounds the spare ones (default 64). This is the one change that affects every card.VICTORY_IDLE_LISTS(list.rs): idle host lists kept, at most the existing 512.VICTORY_LIST_CEILING(list.rs): above this many live host lists, lists that have run are let go instead of kept. 900 was below what is alive in play here (about 1,210) and made the layer remake about 200 lists a frame (3 fps); 1,300 held.VICTORY_CARD_STEPS_POOL(host/card_steps.rs): landed card-step lists kept.scripts\play.ps1:-Console series-s|series-x, and-Rdna2, the settings below.scripts\bench.ps1: an unattended run (diagnostics build). It presses Enter through the menus withVICTORY_KEYS, waits for scenes of more than 1,000 draws, records them for 150 s, stops the title and prints the median, lowest and highest frame rate and the frame line's preparing / GPU / copying-back times. Runs differ by about 1 fps from one to the next.Measured (RX 6750 XT 12 GB, i9-13900K, 32 GB RAM, Windows 11, Series S profile)
Median fps of
bench.ps1runs, scenes of more than 1,000 draws (the opening cutscene into the first street):VICTORY_RELAY=0(the workaround in #376)-Rdna2with 64 idle lists (first version of this PR)-Rdna2with 256 idle lists (now)Within
-Rdna2, one switch at a time (two runs where noted; about ±1 fps between runs):VICTORY_PORT_CBV=1andVICTORY_PORT_JOURNAL=1VICTORY_LATE_WAIT_LISTS128 / 192VICTORY_THIN_THREADS12 / 16VICTORY_LAND_THREADS=6VICTORY_SUBMIT_DEPTH=64VICTORY_UPSCALER=6withVICTORY_AMBIENT=1removed a grid pattern, a dark ghost and dark blocks from the opening cutscene on this card (frames captured withVICTORY_CAPTUREand compared), at no cost in frame rate. Both are in-Rdna2.These runs had #428, #424 and #443 applied as well.
-Rdna2has only been run with them.Why 256 idle lists: a timeline of the critical chain
VICTORY_TIMELINEon three busy frames with 64 idle lists (109 ms a frame), causes on the chain each present came out of, per frame:victory-submitUnder
VICTORY_PROFILE, the time outside spans on the submitting thread isdrop_glue<HostList>fromlist::recyclefrom landing (about 30 % of that thread). Every list beyond the idle cap was released (its allocator and lists, through the graphics kernel) and another one made later. 64 was chosen before preludes were pooled, when a list held two allocators. With pooled preludes, 128, 256 and 512 all gave 17.6 to 18.0 fps, with 0 lists made a frame (from 12 to 77) and about 1,260 alive.-Rdna2now sets 256 and a ceiling of 1,600.Found on the way, not in this change
VICTORY_PROFILE, the title's render thread spends about 70 % of a frame waiting at +0x2474740. That is a two-slot ring of frame fences: after pushing frame N it waits for N-1. So the frame time here is prepare (~35 ms) + card (~20 ms) + landing (~25 ms) in a row. A load-time patch to a four-slot ring (three frames in flight) applied cleanly, but crashed: first inHostHeap::copy_tofromheap_buffer_pass(a view of a host copy already let go), then, with a longerVICTORY_BURY_LAG, in the title's own code. The title's per-frame data looks double-buffered by frame parity.Checks
cargo clippy --workspace --all-targets --locked -- -D warningsand the same with--all-featurespass.cargo test --workspace --lockedpasses (0 failed; the victory-gpu suite 396 passed, 34 ignored, on the RX 6750 XT).AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code
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.