Texture queue limits configurable; VICTORY_SKIP_PIPELINES in release builds #106
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/fxceless--victory-fork!106
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-106"
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?
@PastiiJay on GitHub · 2026-11-24 21:32 UTC · original
PastiiJay:amd-texture-queue→main· +34 −12 · 3 files · 1 commits · openTwo small knobs for slow AMD runs. Defaults are unchanged: without the variables set, behaviour is the same as today.
1.
VICTORY_TEXTURE_QUEUE_MB/VICTORY_TEXTURE_QUEUE_MS(crates/victory-gpu/src/draw.rs)The per-frame budget of the index-picked texture pass (
PER_FRAME, 192 MB) and its time span (SPAN, 250 ms) were constants. At 3-4 fps the queue drains very slowly and surfaces stay black or missing for minutes. They are now read once from the environment, defaulting to 192 and 250.On an RX 9070 XT, with
VICTORY_TEXTURE_QUEUE_MB=1024andVICTORY_TEXTURE_QUEUE_MS=1000, the queue went from ~4,860 due slots to ~200 within a minute, and the cell walls and ambient became visible.2.
VICTORY_SKIP_PIPELINEShonoured in release builds (draw.rs, pipeline.rs)The skip check was compiled only with
diagnostics. It now runs in release builds too, with an empty list by default.note_dropstays diagnostics-only.The reason: on AMD's Windows drivers the host compile of compute shader
39f0e9aeb156a61cnever finishes, and while it waits the driver's memory grows by ~240 MB/s. WithVICTORY_SKIP_PIPELINES=39f0e9aeb156a61c, committed memory stayed flat at ~25 GB. Nothing is skipped unless the user sets it.README: both variables are added to the table.
How to test
cargo test -p victory-gpu -- --test-threads=1(skip_hashes_accepts_full_hashes_onlynow runs withoutdiagnostics)VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c, then watch committed memory in Task Manager. It should stay flat instead of climbing.VICTORY_TEXTURE_QUEUE_MB=1024andVICTORY_TEXTURE_QUEUE_MS=1000, then watch the due count on the texture-queue memory line drop.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.