play.ps1 -Vram8GB: run on 8 GB RDNA 2 cards (RX 6600M) without device loss #306
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!306
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-306"
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?
@KelvinSilvaDev on GitHub · 2026-11-26 19:36 UTC · original
KelvinSilvaDev:rdna2-8gb→a-publier· +43 −1 · 2 files · 2 commits · openOn a Radeon RX 6600M (8 GB, RDNA 2), Ryzen 5 5600, 32 GB RAM, the default settings end in
DXGI_ERROR_DEVICE_REMOVEDon entering the world. The cause is the reuse of host command lists (the pool of 512 incrates/victory-gpu/src/list.rs): withVICTORY_LIST_POOL=0the title runs. (A runtime of the same lineage also lost the device with a pool of 384 lists and ran with 128.)This adds
scripts\play.ps1 -Vram8GB:VICTORY_LIST_POOL=0VICTORY_RESIDENCY=1,VICTORY_RESIDENCY_LIMITED=1,VICTORY_TEXTURE_ROOM_PERCENT=60,VICTORY_TEXTURE_BUDGET_MB=1536,VICTORY_LEVELS_ON_DEMAND=1VICTORY_THIN_THREADS=5for a 6-core CPU,VICTORY_CARD_AWAKEleft off--console series-s, unless-Fsr4K)and a README section with the measurement.
Measured with the renderer patches 1, 2, 5, 6, 7 on, Series S, ray-tracing pipelines skipped, right after a restart of Windows: two minutes in the world without a device loss, median 327 ms a frame (about 3 fps); the picture is very dark there. Code is unchanged; only the launcher and the README.
🤖 Generated with Claude Code
@MamaLeVrai on GitHub · 2026-11-26 20:17 UTC · original
A data point from another RDNA 2 card: on an RX 6950 XT 16 GB (Ryzen 7 5700X, 32 GB RAM, 64 GiB paging file, driver 32.0.21045.29003, Windows 11 build 26300),
VICTORY_LIST_POOL=0alone does not prevent the device loss onrx9070xtatcd8dfc0.Run:
scripts\play.ps1defaults plus-More @{VICTORY_LIST_POOL='0'}, Series X profile, diag build, nothing else running on the card. The device was lost about 3.5 minutes after start, with the world at 0.5 to 2 fps:no host list for a state prelude; device removed ... (0x887A0007), and DREDlightshowedbreadcrumbs (done/count, list) []. In the 10 s before, the log shows compute pipelines being made, each taking 6 to 7 s (pipeline library: made [compute ...] in 6415.5 ms). The compiler guard caught no compiler crash.I did not try the rest of
-Vram8GB(the residency limits, the texture budget, Series S). So this does not say that your settings fail here, only that the list pool is not the whole story on this card. The same card also loses the device the same way onmain(4f62c2a-based builds).AI-assisted (Claude Code); no game data.
@KelvinSilvaDev on GitHub · 2026-11-26 20:44 UTC · original
Thanks, that's a useful data point. On the RX 6600M the list pool was necessary but, as you found, likely not sufficient: in our own runtime (same lineage) the same
no host list for a state prelude/0x887A0007loss also came from a different combination (title memory read in place together with a background drop/fetch thread), stable once either was off. Our Belobug run with-Vram8GBwas a single 2-minute run, so I've softened the README and the script comment to "needed here" rather than "the cause", and pointed to your report.🤖 Generated with Claude Code
@MamaLeVrai on GitHub · 2026-11-26 21:01 UTC · original
Follow-up to my comment above, same RX 6950 XT 16 GB (RDNA 2), on
cd8dfc0. Your full-Vram8GB(this PR'sscripts\play.ps1) did better here:-Vram8GB: 4 min 25 s from start to when the player stopped it, into the opening scene, with no device loss (nodevice removedin the log). About 2 to 2.6 fps in the scene, with sound steady. The player says it was also the best-looking run on this card.VICTORY_LIST_POOL=0(Series X): device lost after about 3.5 min.VICTORY_D3D12_DEBUG=1: device lost after 67 s, before the opening scene.One run each, so this is no proof. But it points at the other
-Vram8GBsettings (residency limits, texture budget, Series S), not the list pool alone, as what keeps this card going. I can't split them further from here (the runs are the player's); if you want a specific combination tried, say which.AI-assisted (Claude Code); no game data.
@adrianmjim on GitHub · 2026-11-26 22:45 UTC · original
Checked by reading the code on a-publier
4eb6cfd(head5e9bf87); I did not build or run it.VICTORY_TEXTURE_ROOM_PERCENT=60has no effect whileVICTORY_TEXTURE_BUDGET_MBis set. Inresource::room(crates/victory-gpu/src/resource.rs:1778-1787), once the budget is set it returnsfilled < limitstraight away.room_percent()is only used further down (resource.rs:1799), so it is never reached.-Vram8GB, whether more texture copies may be made then depends only on their own bytes against 1536 MB. The card's current use,card_room_keptandtargets_room_keptare not looked at there. They are still used when idle copies are let go (let_go_idle, resource.rs:2136-2141).VICTORY_THIN_THREADSis only read whenVICTORY_THIN=1(list/thin.rs:45-59, 307-308). play.ps1 setsVICTORY_THINonly without-Safe(scripts/play.ps1:26-30 on the head). With-Safe -Vram8GB, the 5-thread setting does nothing. The script comment (play.ps1:41 on the head) and README.md:120 could say that these are the threads that translate list calls (victory-list-N, thin.rs:328), not shader threads.VICTORY_SKIP_PIPELINES, but the command does not set it. That variable takes a list of 16-digit shader hashes (pipeline.rs:483-500, 506), and the README does not give the list. It is also compiled only with thediagnosticsfeature (pipeline.rs:482, 502-503), so it does nothing in a build without--features diagnostics, such as a plaintarget\releasebuild. Run as written, the command does not reproduce the measured setup.4eb6cfdis one hunk in the play.ps1 header comment: #336 rewrote the-Fsr4Kline (play.ps1:5 on4eb6cfd), where the PR adds the-Vram8GBlines. From a trial merge, README.md and the rest of play.ps1 merge without conflict.Not checked: whether the 1536 MB cap or the residency settings change the device-loss behaviour on any card.
@Gabzinnn12 on GitHub · 2026-11-27 03:07 UTC · original
A data point from an 8 GB RDNA 3 card with 16 GB of RAM: the memory settings of
-Vram8GBagainst the same build without them.Machine: Ryzen 5 5500 (6c/12t), Radeon RX 7600 8 GB (driver 32.0.32029.2010), 16 GB DDR4-3200, Windows 11 Pro 26300, commit limit about 49 GB. Game package on a SATA SSD.
Build:
a-publierat4eb6cfd,--release --features diagnostics, with one local path-only change (the game package read fromVICTORY_GAME_DIR). This is not this PR's head; I set the variables myself. Series X profile (not Series S),VICTORY_OUTPUT=1920x1080, renderer ports 1, 2, 5, 6, 7 on in every run.VICTORY_THINwas not set, soVICTORY_THIN_THREADSwas not used. Ray-tracing pipelines were not skipped. Scripted Enter every 3 s from 8 to 80 s, intro cutscene not skipped, 300 s measured from the first frame with more than 100 draws."V8" =
VICTORY_LIST_POOL=0 VICTORY_RESIDENCY=1 VICTORY_RESIDENCY_LIMITED=1 VICTORY_TEXTURE_BUDGET_MB=1536 VICTORY_LEVELS_ON_DEMAND=10x8007000Eno shared buffer, within about 3 s)Runs a and b are the ones in #147. For comparison, one run of the same build without the ports and without V8 logged 43
no shared bufferfailures and ended in0x887A0005after about 173 s.What it says, with 2 + 2 runs on one machine:
So on this card and RAM, with the ports on, V8 trades more than half of the frame rate for memory headroom. I have not split the five variables, so I can't say which one costs the frame rate. I can run them one at a time if that helps.
AI-assisted (Claude Code): the runs, the numbers and this text. No game data.
@Gabzinnn12 on GitHub · 2026-11-27 04:23 UTC · original
Follow-up: the
-Vram8GBmemory variables one at a time, on the same machine and build as my comment above (RX 7600 8 GB, RDNA 3, 16 GB RAM;a-publier4eb6cfd, Series X,VICTORY_OUTPUT=1920x1080, ports 1, 2, 5, 6, 7 on in every run).VICTORY_RESIDENCYandVICTORY_RESIDENCY_LIMITEDwere set together. Same measurement: 300 s from the first frame with more than 100 draws, intro cutscene not skipped.0x8007000Eper run0x887A0005at about 167 sLIST_POOL=0RESIDENCY=1+RESIDENCY_LIMITED=1TEXTURE_BUDGET_MB=15360x887A0005at about 134 sLEVELS_ON_DEMAND=1LEVELS_ON_DEMAND=1Video memory budgets were 6,900–7,027 MB.
What it says on this machine (1–3 runs per row, so this is no proof):
VICTORY_LIST_POOL=0alone cost frame rate (1.40 fps). With the five together, it is the likely source of the drop to 1.1–1.7 fps, though I have not run "all but the list pool".VICTORY_TEXTURE_BUDGET_MB=1536alone did not keep NON_LOCAL down: 61,735 failures and a device removal.VICTORY_LEVELS_ON_DEMAND=1was fast, but alone it went over the video memory budget with 8,826 failures. With the residency pair, it had 16 and 0 failures, and in the second run video memory was again over budget.So for an 8 GB card with 16 GB of RAM,
VICTORY_RESIDENCY=1 VICTORY_RESIDENCY_LIMITED=1on top of the ports looks worth keeping, andVICTORY_LIST_POOL=0worth leaving out unless a card needs it to avoid the device loss.AI-assisted (Claude Code): the runs, the numbers and this text. No game data.
github-bot referenced this pull request2026-11-27 12:40:39 +00:00
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.