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
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#413
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 (theautosave 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.
32.0.16.2101), NVMe, pagefile 2 GB (default),
TdrDelaydefault.autosaves; every later run reloads that checkpoint.
VICTORY_RELAY=2VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024Delta vs A: B −39.2 %, C −55.0 %, D −55.7 % (C and D agree within 1.5 %).
Observations:
(B), 103 of 220 (C).
preparing(196 → 76 ms) andcopy-back(66 → 29 ms); RELAY=2 does the opposite to copy-back (66 → 159 ms),which is why it wins less here.
GPU utilisation 5–45 %.
from the picture in the window; the prologue scene renders (lit night street,
characters, textures) in A and C.
preparingspikes to ~900 ms on the 5 s windows where a new scene loads.VICTORY_RELAY=2making things worse on an 8 GBRTX 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 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.2119b0e, same env)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 samplerlowering, a 16-bit RGBA stand-in, ≤64 KiB cbuffer views, a log line), so a clean
attribution needs
cc69162cherry-picked onto2119b0e. The upload churn isthe 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 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/1kdraws), 195–242 ms raw.
VICTORY_CARD_REHASH_RUNS=1VICTORY_INDIRECT_WINDOW=1VICTORY_RELAY=2VICTORY_WIDE_MERGE=1The 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=1on top of it is not reported as a win: one run 63.1ms/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 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=1on top: the frame's texture refreshes (45–50 msin 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:
(
VICTORY_CARD_REHASH_RUNS=1): 1,061 passes a frame → 345, frame flat(73.32 / 74.83 against 73.43 / 71.50).
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)