RTX 3060 12 GB + 4-core i3: a 10x slowdown appears between fork 9376fd60 + 7 ports and the full 16-port stack (bisect so far, unresolved) #1283
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#1283
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?
@FluffyCyanNova on GitHub · 2026-11-26 10:11 UTC · original
Has anyone seen the same? This is a partial bisect of a large slowdown on a small PC. It narrows the cause to nine open PRs but does not name one.
Machine: RTX 3060 12 GB, Core i3-12100F (4 cores), 32 GB RAM, Windows 11, game on an HDD, 1280x720 window. Same base switches in every run:
VICTORY_RELAY=2,VICTORY_CARD_ROOM_FOR_BUFFERS=1,VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,269b802f878c24e1,b83629b90cd2b7bc,f607780aa8e502d0(the full-stack run also hadVICTORY_LEVELS_ON_DEMAND=1, which on its own made no large difference in our other runs). Diagnostics builds. Numbers are medians of the world frame lines.What we compared
All points are fork
9376fd60("Frame rate, processor side ...") plus a stack of open fork PRs applied on top. The only difference between the points is which PRs are in.a26859f+ our earlier port stack, before9376fd609376fd60+ the older port stack (no COPY-queue pick, none of the 16 below)Run names are only our local labels. P1 ran 2.8 min in the world (a RAM guard stopped it), P4 12.3 min, P6 5.2 min.
So P1 and P4 are fast (GPU 120-160 ms) and P6 is slow (GPU ~1.9 s, copy-back ~2.1 s with only ~13 MB copied back). The slowdown is therefore in ports 8-16 and is not
eb209ab0alone.The 16 ports (fork PR numbers, all open)
First 7 (fast at P4): WAVE_WIDE_FOR (two commits), #759 (AscilCH), #779 (Xeltax), #777 (im-a-cat), #781 (marquezinii), #780 (LeonardoS11).
Ports 8-16 (the slowdown is somewhere in here): #783 (naixue2233; P6 reverted its second commit
eb209ab0and was still slow), #784, #786, #785, #787, #788, #789, #790, #791 (all AscilCH).Titles: #784 UpdateTileMappings order, #786 relay_merge/card_merge write only GPU-changed byte runs, #785 late_met / relay_land race, #787 duplicate resource transitions, #788 SCC tracking of s_bcnt1, #789 own_bits escaping lane masks, #790 BC7 ctrl7 validation, #791 unwind RSP overflow.
What the logs show in the slow runs
Each card wait is about 1 s instead of about 25 ms. The slow runs also log new settle reasons that the fast runs do not: "title memory changed under shader writes" (400-770 ms per frame) and "title memory read by a buffer copy". By title and log message, #786, #785 and #784 are our guesses; we have not tested them one at a time.
Caveats
Questions
@HLVM04 on GitHub · 2026-11-26 10:27 UTC · original · edited 2026-11-26 17:25 UTC
Partial data for Q1, from an RTX 5070 Ti on the Series S profile. Our stack has #783 applied, with #798, #799, #770, #780 and #827, but none of #784 to #791. We see no slowdown like this: the median was 150–180 ms a frame then, and about 50 ms now after later changes. So #783 does not do this on its own here. That doesn't rule out how it combines with 8–16.
On the "title memory changed under shader writes" settle: on our stack it came from the merge run cap, which was hit by about 60,000 runs of 3 bytes a frame. Raising
VICTORY_MERGE_RUNSto 65536 was slower (median 119 vs 101 ms). Deferring those merges to the next submission (a local switch of ours, not a PR) removed the settles (101 → 91 ms). Our guess is that #786, by writing only the GPU-changed byte runs, could produce many more small runs, which would fit. We have not run #786.Also, #665 (relay copy queue) brought a new settle of the same kind on our stack, 43 ms a frame (p50 149 → 177 ms), in case one of your ports changes the relay the same way.
Edit (2026-11-26), correction on the merge deferral: the local "defer merges past the run cap to the next submission" change above made draws read stale bytes: over-budget title changes under shader-written ranges landed a submission late (with ray tracing on, the main character's skin draw lost its geometry). Please don't copy it as described. Our replacement merges every run at once and joins nearby runs (gap of 64 bytes); it is as fast on our stack (in-world ~45–46 ms) and the skin draw is back with ray tracing on. Exact merging without the gap was ~300 ms a frame. The 101 → 91 ms figure above was for the old, deferring version.
@FluffyCyanNova on GitHub · 2026-11-26 11:05 UTC · original
Thanks, HLVM04. That is a useful split. We checked it against our bisect logs (same three points as the table above).
The settle kind is there, but it is not most of our cost. "Title memory changed under shader writes" shows up in the slow point P6 and not in the fast point P4:
P6's median frame is 2,655 ms, with the GPU at about 1.9 s and copy-back at about 2.1 s for only ~13 MB. P4 is 571 ms, with the GPU at 159 ms and copy-back at 197 ms for ~50 MB. So most of the slowdown is GPU work and the copy-back wait, not these settles.
The merge-run cap is not what limits us. Our line runs the relay's later wait stage, not the exact-merge mode. The merge path only runs in that mode, and it is capped at 512 runs per submission. Its "changed runs merged" counter is 0 per frame in P1, P4 and P6 alike. So raising the cap or deferring merges would not change our numbers.
That still fits your guess about #786. Writing back only GPU-changed byte runs could raise both the shader-write settles and the copy-back work we see in P6. We have not run #786 on its own yet. If we resume the bisect, P4 + #786 alone is the next point we would try. Thanks also for the #665 note.