On an 8 GB card the card term halves when the translated loop bound halves (measurement) #1417

Open
opened 2026-11-27 00:55:24 +00:00 by dodo4154 · 1 comment
dodo4154 commented 2026-11-27 00:55:24 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by dodo4154 on 2026-11-27T00:55:24Z.


Measurement from a smaller card (RX 7600 8 GB, Ryzen 7 5700X, 24 GB RAM), in the world, 300 s runs, reading the ms/frame line of a diagnostics build:

config frame card term
default loop bound (2^7 pixel / 2^8 mesh / 2^12 other) 331-343 ms 228-236 ms
VICTORY_SHADER_LOOP_LIMIT=64 208-259 ms (median ~240) 130-153 ms
VICTORY_SHADER_LOOP_LIMIT=1024 143-251, then unstable (1,436 / 6,779) 72-159 ms

At 64 the picture is wrong, so this is a measurement, not a setting. What makes it interesting is what does not move the card term on the same build: skipping one world mesh pipeline, or four at once (VICTORY_SKIP_PIPELINES) leaves it at 220-228 ms; VICTORY_BARRIER_TEST=indirect (the two UAV barriers per indirect command, 2,548 commands a frame) leaves it at 226-233 ms; resolution changes (720p vs native) leave it unchanged; moving shadow buffers into VRAM (CARD_BUFFERS_MIN_MB=8/1024) leaves it at 223-233 ms.

So on this title and this driver the card term follows the loop bound almost linearly: the cost is in translated-shader loops, not in draw count, barriers or memory placement. Halving the bound halves the term.

The rest of the day's numbers (what helps, what hurts, including LATE_WAIT=3 + RELAY=2 + WIDE_* collapsing to 801-4,636 ms on 24 GB, and CARD_BUFFERS_MIN_KB=64 overflowing an 8 GB card) are in https://github.com/dodo4154/vi-small-vram — notes and scripts only, no game files. Close this if it is not useful; I am not asking for a change.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6637711536 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1417). Originally posted by [dodo4154](https://github.com/dodo4154) on 2026-11-27T00:55:24Z. --- Measurement from a smaller card (RX 7600 8 GB, Ryzen 7 5700X, 24 GB RAM), in the world, 300 s runs, reading the `ms/frame` line of a diagnostics build: | config | frame | card term | |---|---|---| | default loop bound (2^7 pixel / 2^8 mesh / 2^12 other) | 331-343 ms | 228-236 ms | | `VICTORY_SHADER_LOOP_LIMIT=64` | 208-259 ms (median ~240) | **130-153 ms** | | `VICTORY_SHADER_LOOP_LIMIT=1024` | 143-251, then unstable (1,436 / 6,779) | 72-159 ms | At 64 the picture is wrong, so this is a measurement, not a setting. What makes it interesting is what does *not* move the card term on the same build: skipping one world mesh pipeline, or four at once (`VICTORY_SKIP_PIPELINES`) leaves it at 220-228 ms; `VICTORY_BARRIER_TEST=indirect` (the two UAV barriers per indirect command, 2,548 commands a frame) leaves it at 226-233 ms; resolution changes (720p vs native) leave it unchanged; moving shadow buffers into VRAM (`CARD_BUFFERS_MIN_MB=8/1024`) leaves it at 223-233 ms. So on this title and this driver the card term follows the loop bound almost linearly: the cost is in translated-shader loops, not in draw count, barriers or memory placement. Halving the bound halves the term. The rest of the day's numbers (what helps, what hurts, including `LATE_WAIT=3` + `RELAY=2` + `WIDE_*` collapsing to 801-4,636 ms on 24 GB, and `CARD_BUFFERS_MIN_KB=64` overflowing an 8 GB card) are in https://github.com/dodo4154/vi-small-vram — notes and scripts only, no game files. Close this if it is not useful; I am not asking for a change.
dodo4154 commented 2026-11-27 01:15:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by dodo4154 on 2026-11-27T01:15:09Z.


Correction to my own report, with the measurements that refute it.

I lowered one stage at a time (VICTORY_LOOP_LIMIT_PIXEL / _VERTEX / _COMPUTE, a switch I added locally):

stage lowered to 64 frame card term draws/frame
pixel (128 -> 64) 341-355 ms 225-233 ms ~5,090
compute (4,096 -> 64) 746-783 ms 635-650 ms ~5,050
all stages (what I reported above) 208-259 ms 130-153 ms 291-444

The run that halved the card term executed 291-444 draws a frame instead of ~5,000: the shaders broke, the layer dropped the world, and a nearly empty frame is fast. So the card term does not follow the loop bound — it follows the draws. The pixel bound is irrelevant on this title, and cutting the compute bound makes it three times slower because every draw then paints garbage.

I have corrected the notes repository to say this. What still stands from it: the card term (228-236 ms on an RX 7600) does not move with resolution, with the two UAV barriers per indirect command, with the title's own 716 barrier groups, with shadow buffers in VRAM, or with the window grid — only with the draws stopping. Sorry for the noise.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7207137434 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1417#issuecomment-7207137434). Originally posted by [dodo4154](https://github.com/dodo4154) on 2026-11-27T01:15:09Z. --- Correction to my own report, with the measurements that refute it. I lowered one stage at a time (`VICTORY_LOOP_LIMIT_PIXEL` / `_VERTEX` / `_COMPUTE`, a switch I added locally): | stage lowered to 64 | frame | card term | draws/frame | |---|---|---|---| | pixel (128 -> 64) | 341-355 ms | 225-233 ms | ~5,090 | | compute (4,096 -> 64) | 746-783 ms | 635-650 ms | ~5,050 | | all stages (what I reported above) | 208-259 ms | 130-153 ms | **291-444** | The run that halved the card term executed 291-444 draws a frame instead of ~5,000: the shaders broke, the layer dropped the world, and a nearly empty frame is fast. So the card term does not follow the loop bound — it follows the draws. The pixel bound is irrelevant on this title, and cutting the compute bound makes it three times slower because every draw then paints garbage. I have corrected the notes repository to say this. What still stands from it: the card term (228-236 ms on an RX 7600) does not move with resolution, with the two UAV barriers per indirect command, with the title's own 716 barrier groups, with shadow buffers in VRAM, or with the window grid — only with the draws stopping. Sorry for the noise.
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
fxceless/victory-fork#1417
No description provided.