RTX 3070 Ti 8 GB + Ryzen 7 7700X: prologue 2.05 fps at default, 4.62 fps with the late-wait set (-55.7 %, repeatable) #413

Open
opened 2026-11-26 03:42:55 +00:00 by github-bot · 3 comments
Owner

@⁠mrbean56 on GitHub · 2026-11-25 00:27 UTC · original

Numbers-only report on 2119b0e, cargo build --profile diag -p victory --features diagnostics, Series X profile, VICTORY_DISPLAY_MODE=1920x1080,
VICTORY_LOG=info. One variable per run, same checkpoint every run (the
autosave the fork writes at the start of the prologue), seed restored before
each run, 540 s per run, one run at a time, window 300–540 s of the 5 s frame
lines; 42–43 samples per run.

  • Windows 11 26200, Ryzen 7 7700X, 31.1 GB, RTX 3070 Ti 8 GB (driver
    32.0.16.2101), NVMe, pagefile 2 GB (default), TdrDelay default.
  • Menus: 30 fps, 39–46 draws/frame; the setup flow completes once and
    autosaves; every later run reloads that checkpoint.
run env median ms/frame fps draws/frame preparing GPU copy-back device loss
A default 488.4 2.05 2,755 196 ms 182 ms 66 ms / 48.8 MB none
B VICTORY_RELAY=2 296.9 3.37 3,353 190 ms 70 ms 159 ms none
C VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 219.6 4.55 3,610 76 ms 103 ms 29 ms none
D C repeated 216.3 4.62 3,574 75 ms 98 ms 28 ms none

Delta vs A: B −39.2 %, C −55.0 %, D −55.7 % (C and D agree within 1.5 %).

Observations:

  • The frame is CPU-bound in every run: GPU is 182 ms of 488 (A), 70 of 297
    (B), 103 of 220 (C).
  • The late-wait set moves the cost out of preparing (196 → 76 ms) and
    copy-back (66 → 29 ms); RELAY=2 does the opposite to copy-back (66 → 159 ms),
    which is why it wins less here.
  • VRAM stays at 7.0–7.3 GB of 8.0 GB for the whole world phase (86–89 %), with
    GPU utilisation 5–45 %.
  • Draws/frame rise with the faster runs (2,755 → 3,574), so nothing was dropped
    from the picture in the window; the prologue scene renders (lit night street,
    characters, textures) in A and C.
  • Frame time is scene-dependent: 224–1,389 ms across the prologue's cuts, and
    preparing spikes to ~900 ms on the 5 s windows where a new scene loads.
  • Prior art: #143 reported VICTORY_RELAY=2 making things worse on an 8 GB
    RTX 5060; here it helps but the late-wait set dominates it. I did not combine
    RELAY with the late-wait set.

AI-assisted (DeepSeek V4.1 Flash via OpenChamber)

**@⁠mrbean56** on GitHub · 2026-11-25 00:27 UTC · [original](https://github.com/fxceless/victory-fork/issues/413) Numbers-only report on `2119b0e`, `cargo build --profile diag -p victory --features diagnostics`, Series X profile, `VICTORY_DISPLAY_MODE=1920x1080`, `VICTORY_LOG=info`. One variable per run, same checkpoint every run (the autosave the fork writes at the start of the prologue), seed restored before each run, 540 s per run, one run at a time, window 300–540 s of the 5 s frame lines; 42–43 samples per run. - Windows 11 26200, Ryzen 7 7700X, 31.1 GB, RTX 3070 Ti **8 GB** (driver 32.0.16.2101), NVMe, pagefile 2 GB (default), `TdrDelay` default. - Menus: 30 fps, 39–46 draws/frame; the setup flow completes once and autosaves; every later run reloads that checkpoint. | run | env | median ms/frame | fps | draws/frame | preparing | GPU | copy-back | device loss | |---|---|---|---|---|---|---|---|---| | A | default | 488.4 | 2.05 | 2,755 | 196 ms | 182 ms | 66 ms / 48.8 MB | none | | B | `VICTORY_RELAY=2` | 296.9 | 3.37 | 3,353 | 190 ms | 70 ms | 159 ms | none | | C | `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024` | 219.6 | 4.55 | 3,610 | 76 ms | 103 ms | 29 ms | none | | D | C repeated | 216.3 | 4.62 | 3,574 | 75 ms | 98 ms | 28 ms | none | Delta vs A: B −39.2 %, C −55.0 %, D −55.7 % (C and D agree within 1.5 %). Observations: - The frame is CPU-bound in every run: GPU is 182 ms of 488 (A), 70 of 297 (B), 103 of 220 (C). - The late-wait set moves the cost out of `preparing` (196 → 76 ms) and `copy-back` (66 → 29 ms); RELAY=2 does the opposite to copy-back (66 → 159 ms), which is why it wins less here. - VRAM stays at 7.0–7.3 GB of 8.0 GB for the whole world phase (86–89 %), with GPU utilisation 5–45 %. - Draws/frame rise with the faster runs (2,755 → 3,574), so nothing was dropped from the picture in the window; the prologue scene renders (lit night street, characters, textures) in A and C. - Frame time is scene-dependent: 224–1,389 ms across the prologue's cuts, and `preparing` spikes to ~900 ms on the 5 s windows where a new scene loads. - Prior art: #143 reported `VICTORY_RELAY=2` making things worse on an 8 GB RTX 5060; here it helps but the late-wait set dominates it. I did not combine RELAY with the late-wait set. AI-assisted (DeepSeek V4.1 Flash via OpenChamber)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:42:55 +00:00
Author
Owner

@⁠mrbean56 on GitHub · 2026-11-25 01:39 UTC · original

Follow-up: PR #140's head on the same 8 GB card and the same checkpoint.

Method: cc69162 (fx/bindless-residency), cargo build --profile diag -p victory --features diagnostics, late-wait base
(VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024), seed restored, two 540 s runs, window 300–540 s.

run median ms/frame fps draws preparing (textures) GPU copy-back samples
baseline (2119b0e, same env) 216.3 4.62 3,574 74.5 (6.4) 97.6 28.2 43
3-a, PR #140 head 476.4 2.10 2,632 212.3 (152.7) 73.7 22.1 42
3-b, PR #140 head 406.7 2.46 3,304 162.5 (109.7) 79.4 23.6 41

The mechanism does what it says: textures waiting per frame 9,691 → 2,523 /
2,354
, buffer views refused 3,396 → 1,729 / 1,968.

But on 8 GB the slots given up are re-uploaded: uploads went 37,513 slots /
14.7 GB → 89,091 / 46.6 GB
and 119,003 / 64.0 GB, with 38,963 / 50,419
slots given up, and the texture lane went 6.4 ms → 110 / 153 ms per frame. Net
+120 % and +88 % median, draws −26 % / −8 %, no device loss.

Confound: that head also carries four commits not in main (shader sampler
lowering, a 16-bit RGBA stand-in, ≤64 KiB cbuffer views, a log line), so a clean
attribution needs cc69162 cherry-picked onto 2119b0e. The upload churn is
the eviction mechanism itself.

Suggestion, from the numbers only: the eviction needs a per-frame upload budget
(drop slots, but cap re-uploads per frame) before it can help a card with no
VRAM headroom.

AI-assisted (DeepSeek V4.1 Flash via OpenChamber)

**@⁠mrbean56** on GitHub · 2026-11-25 01:39 UTC · [original](https://github.com/fxceless/victory-fork/issues/413#issuecomment-7149798742) Follow-up: PR #140's head on the same 8 GB card and the same checkpoint. Method: `cc69162` (`fx/bindless-residency`), `cargo build --profile diag -p victory --features diagnostics`, late-wait base (`VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024`), seed restored, two 540 s runs, window 300–540 s. | run | median ms/frame | fps | draws | preparing (textures) | GPU | copy-back | samples | |---|---|---|---|---|---|---|---| | baseline (2119b0e, same env) | 216.3 | 4.62 | 3,574 | 74.5 (6.4) | 97.6 | 28.2 | 43 | | 3-a, PR #140 head | 476.4 | 2.10 | 2,632 | 212.3 (152.7) | 73.7 | 22.1 | 42 | | 3-b, PR #140 head | 406.7 | 2.46 | 3,304 | 162.5 (109.7) | 79.4 | 23.6 | 41 | The mechanism does what it says: textures waiting per frame **9,691 → 2,523 / 2,354**, buffer views refused **3,396 → 1,729 / 1,968**. But on 8 GB the slots given up are re-uploaded: uploads went **37,513 slots / 14.7 GB → 89,091 / 46.6 GB** and **119,003 / 64.0 GB**, with 38,963 / 50,419 slots given up, and the texture lane went 6.4 ms → 110 / 153 ms per frame. Net +120 % and +88 % median, draws −26 % / −8 %, no device loss. Confound: that head also carries four commits not in `main` (shader sampler lowering, a 16-bit RGBA stand-in, ≤64 KiB cbuffer views, a log line), so a clean attribution needs `cc69162` cherry-picked onto `2119b0e`. The upload churn is the eviction mechanism itself. Suggestion, from the numbers only: the eviction needs a per-frame upload budget (drop slots, but cap re-uploads per frame) before it can help a card with no VRAM headroom. AI-assisted (DeepSeek V4.1 Flash via OpenChamber)
Author
Owner

@⁠mrbean56 on GitHub · 2026-11-25 06:13 UTC · original

Follow-up, same checkpoint and build, seed restored each run. Comparator is
milliseconds per 1,000 draws over the world phase, because the raw median of
this cutscene swings 20 % between identical runs.

Base: VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 — six runs today sat at 70.9–74.8 (world ms/1k
draws), 195–242 ms raw.

change world ms/1k draws median ms draws verdict
VICTORY_CARD_REHASH_RUNS=1 73.3 / 74.8 236 / 242 3,782 / 3,489 dropped: joins the hash passes 1,061 → 345 a frame and the frame does not move
VICTORY_INDIRECT_WINDOW=1 70.9 / 72.3 206 / 196 3,575 / 3,358 dropped: ~2 %, inside the band
VICTORY_RELAY=2 77.6 221 3,435 dropped: copy-back 20 → 118 ms
swizzle tables + late page list (two upstream cherry-picks) 76.8 261 3,610 dropped: texture queue unchanged at ~9.7k
VICTORY_WIDE_MERGE=1 66.2 / 67.6 236 / 204 3,558 / 3,724 kept: copy-back 20.1/25.2 → 16.5/12.4 ms

The one that moved is the one that takes CPU time off the critical path. The
copy-back merges ~630 differing pieces (40 MB) on one thread today; on eight
threads it is 4–12 ms cheaper per frame, and the title cannot start its next
frame until it is settled.

What the frame looks like here (base, diag log): 207 ms = title CPU 64.5 +
recording 10 + preparing 72.5 + blocked on the card 101.8 + copy-back 20.1, with
the card ~98 ms busy. A GPU timing run puts that at 71.6 ms indirect draws
(4,231 commands, 16.9 µs each), 41.6 ms compute, 13.1 ms of texture-alias copies,
and the rest small. Reductions in our own bookkeeping passes do not show up in
the frame at all; reductions in the serial CPU path do.

VICTORY_WIDE_REFRESH=1 on top of it is not reported as a win: one run 63.1
ms/1k draws with 3,628 draws, the next 95.0 with 3,336 — the two disagree by
half, so it stays off until someone can show two agreeing runs.

AI-assisted (DeepSeek V4.1 Flash via OpenChamber)

**@⁠mrbean56** on GitHub · 2026-11-25 06:13 UTC · [original](https://github.com/fxceless/victory-fork/issues/413#issuecomment-7154574857) Follow-up, same checkpoint and build, seed restored each run. Comparator is milliseconds per 1,000 draws over the world phase, because the raw median of this cutscene swings 20 % between identical runs. Base: `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024` — six runs today sat at 70.9–74.8 (world ms/1k draws), 195–242 ms raw. | change | world ms/1k draws | median ms | draws | verdict | |---|---|---|---|---| | `VICTORY_CARD_REHASH_RUNS=1` | 73.3 / 74.8 | 236 / 242 | 3,782 / 3,489 | dropped: joins the hash passes 1,061 → 345 a frame and the frame does not move | | `VICTORY_INDIRECT_WINDOW=1` | 70.9 / 72.3 | 206 / 196 | 3,575 / 3,358 | dropped: ~2 %, inside the band | | `VICTORY_RELAY=2` | 77.6 | 221 | 3,435 | dropped: copy-back 20 → 118 ms | | swizzle tables + late page list (two upstream cherry-picks) | 76.8 | 261 | 3,610 | dropped: texture queue unchanged at ~9.7k | | **`VICTORY_WIDE_MERGE=1`** | **66.2 / 67.6** | 236 / 204 | 3,558 / 3,724 | **kept**: copy-back 20.1/25.2 → 16.5/12.4 ms | The one that moved is the one that takes CPU time off the critical path. The copy-back merges ~630 differing pieces (40 MB) on one thread today; on eight threads it is 4–12 ms cheaper per frame, and the title cannot start its next frame until it is settled. What the frame looks like here (base, diag log): 207 ms = title CPU 64.5 + recording 10 + preparing 72.5 + blocked on the card 101.8 + copy-back 20.1, with the card ~98 ms busy. A GPU timing run puts that at 71.6 ms indirect draws (4,231 commands, 16.9 µs each), 41.6 ms compute, 13.1 ms of texture-alias copies, and the rest small. Reductions in our own bookkeeping passes do not show up in the frame at all; reductions in the serial CPU path do. `VICTORY_WIDE_REFRESH=1` on top of it is **not** reported as a win: one run 63.1 ms/1k draws with 3,628 draws, the next 95.0 with 3,336 — the two disagree by half, so it stays off until someone can show two agreeing runs. AI-assisted (DeepSeek V4.1 Flash via OpenChamber)
Author
Owner

@⁠mrbean56 on GitHub · 2026-11-25 08:23 UTC · original

Two changes on the same 8 GB Ada card and the same checkpoint, both measured as
the code's own defaults rather than as switches.

1. The copy-back merge is now the default (commit on this fork's tree, diag
build): the pieces the card's compare found differing — ~630 pieces, 40 MB a
frame — were merged one after the other on the thread that settles. Now they go
to eight threads. Copy-back 22.6 → 13.2 ms a frame (medians), world ms/1k draws
72.7 → 67.98 over three runs; five runs with it, 66.16 / 67.57 / 70.21 / 69.11 /
69.20, all under the base band's median, no device loss.

2. VICTORY_WIDE_REFRESH=1 on top: the frame's texture refreshes (45–50 ms
in the author's runs; 39 ms of copies here) spread over the threads kept for
snapshots. Four runs at world ms/1k draws 62.24 / 62.44 / 63.09 / 65.95, best
raw median 178.3 ms, copy-back 11.6–16.0 ms. One outlier in five (94.98, draws
3,336) whose log shows no thread contention — it was the scene.

Cumulative on this checkpoint: 488.4 ms → ≈178–220 ms, world ms/1k draws 72.7 →
63.4.

Two things that did not pay, with the numbers, so nobody repeats them:

  • Joining our hash passes over copies in the card's memory
    (VICTORY_CARD_REHASH_RUNS=1): 1,061 passes a frame → 345, frame flat
    (73.32 / 74.83 against 73.43 / 71.50).
  • Caching alias copies (78 a frame, 8.8 distinct pairs): the aliased sources are
    written every frame, so the memo skipped 2 of 78 copies. Reverted; the
    per-frame accounting line stayed.

And the pipeline account of the card's 98 ms a frame, from a timing run: 71.6 ms
indirect (4,231 commands at 16.9 µs each), 41.6 ms compute, 13.1 ms texture-alias
copies. The lever here is the serial CPU path and the per-draw cost, not our
bookkeeping passes.

AI-assisted (DeepSeek V4.1 Flash via OpenChamber)

**@⁠mrbean56** on GitHub · 2026-11-25 08:23 UTC · [original](https://github.com/fxceless/victory-fork/issues/413#issuecomment-7156965921) Two changes on the same 8 GB Ada card and the same checkpoint, both measured as the code's own defaults rather than as switches. **1. The copy-back merge is now the default** (commit on this fork's tree, diag build): the pieces the card's compare found differing — ~630 pieces, 40 MB a frame — were merged one after the other on the thread that settles. Now they go to eight threads. Copy-back 22.6 → 13.2 ms a frame (medians), world ms/1k draws 72.7 → 67.98 over three runs; five runs with it, 66.16 / 67.57 / 70.21 / 69.11 / 69.20, all under the base band's median, no device loss. **2. `VICTORY_WIDE_REFRESH=1` on top**: the frame's texture refreshes (45–50 ms in the author's runs; 39 ms of copies here) spread over the threads kept for snapshots. Four runs at world ms/1k draws 62.24 / 62.44 / 63.09 / 65.95, best raw median 178.3 ms, copy-back 11.6–16.0 ms. One outlier in five (94.98, draws 3,336) whose log shows no thread contention — it was the scene. Cumulative on this checkpoint: 488.4 ms → ≈178–220 ms, world ms/1k draws 72.7 → 63.4. Two things that did **not** pay, with the numbers, so nobody repeats them: - Joining our hash passes over copies in the card's memory (`VICTORY_CARD_REHASH_RUNS=1`): 1,061 passes a frame → 345, frame flat (73.32 / 74.83 against 73.43 / 71.50). - Caching alias copies (78 a frame, 8.8 distinct pairs): the aliased sources are written every frame, so the memo skipped **2 of 78** copies. Reverted; the per-frame accounting line stayed. And the pipeline account of the card's 98 ms a frame, from a timing run: 71.6 ms indirect (4,231 commands at 16.9 µs each), 41.6 ms compute, 13.1 ms texture-alias copies. The lever here is the serial CPU path and the per-draw cost, not our bookkeeping passes. AI-assisted (DeepSeek V4.1 Flash via OpenChamber)
This discussion has been locked. Commenting is limited to contributors.
No description provided.