Frame time breakdown on a 6 GB card (RTX 2060): relay fetches and remap waits dominate #431
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#431
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?
@CIS-C0 on GitHub · 2026-11-25 00:46 UTC · original
Measurements from a smaller card, in case they help. Nothing crashes; this is about where the frame time goes.
Setup
vram_budget_mb=5187), Windows 11, about 80 GB RAMa803c87c, release buildVICTORY_DISPLAY_MODE=854x480VICTORY_RELAY=2 VICTORY_PIPELINE_WAIT_MS=24 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024What the switches did
Resolution made no difference: 4K, 720p and 480p gave the same frame times.
Where the time goes now (per frame)
VICTORY_LATE_WAIT_LISTSSo 64 may be the safer default on cards with less memory.
The fetch's place in the queue looks deliberate: its
QUEUE_ORDERposition is what letscard_merge_relaytell bytes the card had not received from shader writes. That's why I'm reporting numbers rather than proposing a separate copy queue. I'm happy to run builds or switches on this card and post the lines.@Peppacodes on GitHub · 2026-11-25 03:14 UTC · original
Where the "title memory read: a fill of upload memory" settles come from, measured on an RTX 5080 (driver 621.24, Ryzen 7 5700X3D).
Setup:
c96b4f2+ #220, plus #28's watchdog hook and 64 MB pipeline-worker stacks.VICTORY_INDIRECT_WINDOW=1.About one settle a frame waits 23–32 ms for the card, nearly all for a fill of upload memory. On this machine that sits on the frame's critical path: the submitting thread spends ~110–125 ms preparing plus this wait.
I tagged each
Step::Fillwith the place that recorded it: root view, table constant buffer, or texture upload. Then I logged the first 80 fills thatblocked_byheld back, with the declared write range they overlapped.View::Constantarm indraw.rs, which callsdefer_fill. They are 48–480 bytes each.VICTORY_CARD_BUFFERS_MIN_MB=1. So each frame the CPU waits for flights whose shaders may write somewhere in that buffer, in order to copy a few hundred bytes of constants out of it.gpu/table-constants-in-copyon my fork (fa6afac, +31 lines, one function) reads those from the buffer's host copy instead, refreshed at submission the way an aligned root view already is.VICTORY_TABLE_CB_IN_COPY=0turns it off.AI-assisted (Claude Code). Runs on my own machine with my own copy; counts only.
@Peppacodes on GitHub · 2026-11-25 03:30 UTC · original
Update: this was already found and fixed before my comment above, so please use the existing work, not my branch:
I'll test #462 on the 5080 and post the numbers there.
AI-assisted (Claude Code).
@HLVM04 on GitHub · 2026-11-25 08:21 UTC · original
A data point on the fetch wait from a newer tree. At
9376fd6there isVICTORY_CARD_FETCH_INFLIGHT=1, which puts the card fetches inside their flights. On an RTX 5070 Ti 16 GB (Series X profile,VICTORY_CARD_WINDOWS_MB=4096, otherwise defaults):So on this card the wait moved rather than went away, and there was no gain. One run per setting and the scene was not identical, so the size of the slowdown may be partly scene variance. The other switches measured on the same tree are in #696.