Texture queue limits configurable; VICTORY_SKIP_PIPELINES in release builds #106

Open
github-bot wants to merge 1 commit from github-bot/gh-106 into main AGit
Owner

@⁠PastiiJay on GitHub · 2026-11-24 21:32 UTC · original
PastiiJay:amd-texture-queue → main · +34 −12 · 3 files · 1 commits · open

Two 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=1024 and VICTORY_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_PIPELINES honoured 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_drop stays diagnostics-only.

The reason: on AMD's Windows drivers the host compile of compute shader 39f0e9aeb156a61c never finishes, and while it waits the driver's memory grows by ~240 MB/s. With VICTORY_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_only now runs without diagnostics)
  • Release build, no variables: same behaviour as before.
  • AMD: VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c, then watch committed memory in Task Manager. It should stay flat instead of climbing.
  • Low frame rate: VICTORY_TEXTURE_QUEUE_MB=1024 and VICTORY_TEXTURE_QUEUE_MS=1000, then watch the due count on the texture-queue memory line drop.
**@⁠PastiiJay** on GitHub · 2026-11-24 21:32 UTC · [original](https://github.com/fxceless/victory-fork/pull/106) `PastiiJay:amd-texture-queue` → `main` · +34 −12 · 3 files · 1 commits · open Two 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=1024` and `VICTORY_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_PIPELINES` honoured 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_drop` stays diagnostics-only. The reason: on AMD's Windows drivers the host compile of compute shader `39f0e9aeb156a61c` never finishes, and while it waits the driver's memory grows by ~240 MB/s. With `VICTORY_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_only` now runs without `diagnostics`) - Release build, no variables: same behaviour as before. - AMD: `VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c`, then watch committed memory in Task Manager. It should stay flat instead of climbing. - Low frame rate: `VICTORY_TEXTURE_QUEUE_MB=1024` and `VICTORY_TEXTURE_QUEUE_MS=1000`, then watch the due count on the texture-queue memory line drop.
VICTORY_TEXTURE_QUEUE_MB / VICTORY_TEXTURE_QUEUE_MS override the per-frame
budget (192 MB) and time span (250 ms) of the index-picked texture pass;
defaults unchanged.

VICTORY_SKIP_PIPELINES is now read in release builds too, empty by default
(note_drop stays diagnostics-only). On AMD's Windows drivers compute shader
39f0e9aeb156a61c never finishes compiling and the driver's memory grows
~240 MB/s while it waits.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:16 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
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.
git fetch -u origin '+refs/pull/106/head:github-bot/gh-106'
git switch 'github-bot/gh-106'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-106'
git switch 'github-bot/gh-106'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-106'
git switch 'github-bot/gh-106'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-106'
git switch 'main'
git merge --squash 'github-bot/gh-106'
git switch 'main'
git merge --ff-only 'github-bot/gh-106'
git switch 'main'
git merge 'github-bot/gh-106'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.