Texture queue limits configurable; VICTORY_SKIP_PIPELINES in release builds #106

Open
PastiiJay wants to merge 1 commit from upstream-pr/106 into main
PastiiJay commented 2026-11-24 21:32:14 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by PastiiJay on 2026-11-24T21:32:14Z.


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.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6591833364 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/106). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-24T21:32:14Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/106:upstream-pr/106'
git switch 'upstream-pr/106'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/106'
git switch 'upstream-pr/106'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/106'
git switch 'upstream-pr/106'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/106'
git switch 'main'
git merge --squash 'upstream-pr/106'
git switch 'main'
git merge --ff-only 'upstream-pr/106'
git switch 'main'
git merge 'upstream-pr/106'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!106
No description provided.