[GH #73] VICTORY_PIPELINE_WAIT_MS: pipelines still being built are dropped, so models vanish; 2000 beats 24 on a slow GPU — and TEXTURE_BUDGET_MB matters on 4 GB #73

Open
opened 2026-11-25 09:08:55 +00:00 by zhien114514 · 0 comments
zhien114514 commented 2026-11-25 09:08:55 +00:00 (Migrated from github.com)

Imported from Zettrox/ztrx. Originally posted by zhien114514 on 2026-11-25T08:19:18Z.


Related but different: #42 reports visual defects after a 30 min run (2–3 fps,
corrupted textures, flat lighting). This one is about draws being dropped, i.e.
geometry that never reaches the GPU at all.

Two parameter findings from a Radeon 780M (RDNA3 iGPU, 4 GB UMA), tested with the
diag build and --console series-x. Both are about the same symptom: characters and
scene geometry disappearing
, which on a slow GPU is not a rendering bug but drops.

Machine: Windows 11 build 26340, Ryzen 7 H 255 (8C/16T), Radeon 780M, driver
32.0.13046.2004, page file 16/40 GB. Build: ztrx main, diag, GNU toolchain.
Base switches: VICTORY_RELAY=2 VICTORY_TEXTURE_GUARD=0.


1. VICTORY_PIPELINE_WAIT_MS: the README's 24 makes models disappear

The README lists this as a debugging switch ("shorter per-frame wait for pipelines
still being built"), but on a machine that cannot build pipelines fast enough it is
what removes geometry: a draw whose host pipeline is not ready is dropped, and the
next frame drops it again.

Counting dropped N without a host pipeline (M being made):

VICTORY_PIPELINE_WAIT_MS being made drops fps
24 89 in one 240 s run, continuous 0.1–0.2
500 (default) still present ~0.2
2000 0 (dropped 157 ... (0 being made)) 0.2–0.9

Raising the budget is both more complete and faster here, because waiting once
beats dropping the same draw every frame and retrying.

Note the default 500 ms is already marginal on this adapter — the shader translation
of 26k containers on a non-cached run does not fit in it. On a cold cache, 2000 is the
value that produced a stable picture.

2. VICTORY_TEXTURE_BUDGET_MB: worth documenting for small VRAM

resource.rs::room() allows 2 GB of host texture copies unconditionally, then keeps
going while video memory is under 90 % of budget, and falls back to a hard 4 GB
when it cannot read the card's budget. A 4 GB UMA part sits exactly on that line.

With VICTORY_TEXTURE_BUDGET_MB=3000 the numbers I see change a lot:

preparing late-run fps
unset (4 GB fallback) 3000–9000 ms 0.2–0.3
=3000 926 ms 0.7–0.9

(memory of textures: 13851 title textures have no host copy yet (10940 MB) still
reports the deferred copies, which is expected — the point is the driver no longer has
to thrash inside 4 GB.)

Suggestion: a line in the README for 4–8 GB cards, e.g. set VICTORY_TEXTURE_BUDGET_MB
to about 70–75 % of VRAM
.


Things that did not help here (so nobody re-runs them)

  • --console series-s: black frames the whole run (every capture 1.5 KB), and more
    textures missing (11127 / 8.8 GB). Matches the README's Series S warning.
  • VICTORY_DISPLAY_MODE=1920x1080: honoured (display mode reported to the title width=1920 height=1080) but frame time unchanged (0.2 fps, copies went up to
    150–230 ms). The bottleneck on this part is CPU-side preparing, not fill rate.
  • VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1: no measurable difference.

What is still dropped (not a parameter problem)

With the two settings above, per frame:

draws/frame reason
~900 a stage of the ray-tracing structure builder (off by design — lighting only)
28 compute b22a16a178976e1b — a wave sum of 16-bit floats ...
~7.5 pixel 6b6db9f1a526daeb — a descriptor read only as data
1 pixel 2fd01fca16993001 — same class
once refused [mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]

So after the two parameters, geometry loss from the pipeline queue is gone; what is
left is the 8 shaders that do not translate plus the (intentional) RT build silence.

Happy to test a branch or a different value on this adapter.

No title files or translated shader dumps are attached; the quotes above are log lines
from my own run on a legally owned copy.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6600222338 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/73). Originally posted by [zhien114514](https://github.com/zhien114514) on 2026-11-25T08:19:18Z. --- Related but different: #42 reports visual defects after a 30 min run (2–3 fps, corrupted textures, flat lighting). This one is about **draws being dropped**, i.e. geometry that never reaches the GPU at all. Two parameter findings from a Radeon 780M (RDNA3 iGPU, **4 GB** UMA), tested with the diag build and `--console series-x`. Both are about the same symptom: **characters and scene geometry disappearing**, which on a slow GPU is not a rendering bug but drops. **Machine**: Windows 11 build 26340, Ryzen 7 H 255 (8C/16T), Radeon 780M, driver 32.0.13046.2004, page file 16/40 GB. Build: ztrx `main`, diag, GNU toolchain. Base switches: `VICTORY_RELAY=2 VICTORY_TEXTURE_GUARD=0`. --- ## 1. `VICTORY_PIPELINE_WAIT_MS`: the README's 24 makes models disappear The README lists this as a debugging switch ("shorter per-frame wait for pipelines still being built"), but on a machine that cannot build pipelines fast enough it is what removes geometry: a draw whose host pipeline is not ready is dropped, and the next frame drops it again. Counting `dropped N without a host pipeline (M being made)`: | `VICTORY_PIPELINE_WAIT_MS` | `being made` drops | fps | |---|---|---| | `24` | 89 in one 240 s run, continuous | 0.1–0.2 | | `500` (default) | still present | ~0.2 | | **`2000`** | **0** (`dropped 157 ... (0 being made)`) | **0.2–0.9** | Raising the budget is both **more complete and faster** here, because waiting once beats dropping the same draw every frame and retrying. Note the default 500 ms is already marginal on this adapter — the shader translation of 26k containers on a non-cached run does not fit in it. On a cold cache, 2000 is the value that produced a stable picture. ## 2. `VICTORY_TEXTURE_BUDGET_MB`: worth documenting for small VRAM `resource.rs::room()` allows 2 GB of host texture copies unconditionally, then keeps going while video memory is under 90 % of budget, and falls back to a hard **4 GB** when it cannot read the card's budget. A 4 GB UMA part sits exactly on that line. With `VICTORY_TEXTURE_BUDGET_MB=3000` the numbers I see change a lot: | | preparing | late-run fps | |---|---|---| | unset (4 GB fallback) | 3000–9000 ms | 0.2–0.3 | | `=3000` | **926 ms** | **0.7–0.9** | (`memory of textures: 13851 title textures have no host copy yet (10940 MB)` still reports the deferred copies, which is expected — the point is the driver no longer has to thrash inside 4 GB.) Suggestion: a line in the README for 4–8 GB cards, e.g. *set `VICTORY_TEXTURE_BUDGET_MB` to about 70–75 % of VRAM*. --- ## Things that did **not** help here (so nobody re-runs them) - `--console series-s`: **black frames the whole run** (every capture 1.5 KB), and more textures missing (11127 / 8.8 GB). Matches the README's Series S warning. - `VICTORY_DISPLAY_MODE=1920x1080`: honoured (`display mode reported to the title width=1920 height=1080`) but frame time unchanged (0.2 fps, copies went up to 150–230 ms). The bottleneck on this part is CPU-side `preparing`, not fill rate. - `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1`: no measurable difference. ## What is still dropped (not a parameter problem) With the two settings above, per frame: | draws/frame | reason | |---|---| | ~900 | a stage of the ray-tracing structure builder (off by design — lighting only) | | 28 | `compute b22a16a178976e1b` — `a wave sum of 16-bit floats ...` | | ~7.5 | `pixel 6b6db9f1a526daeb` — `a descriptor read only as data` | | 1 | `pixel 2fd01fca16993001` — same class | | once | `refused [mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]` | So after the two parameters, geometry loss from the pipeline queue is gone; what is left is the 8 shaders that do not translate plus the (intentional) RT build silence. Happy to test a branch or a different value on this adapter. No title files or translated shader dumps are attached; the quotes above are log lines from my own run on a legally owned copy.
Sign in to join this conversation.
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
Zettrox/ztrx#73
No description provided.