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

Open
opened 2026-11-26 11:19:47 +00:00 by github-bot · 2 comments
Owner

@⁠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 had VICTORY_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.

Point What is in it Run ms/frame GPU ms copy-back ms draws
older line fork a26859f + our earlier port stack, before 9376fd60 b36run1 487 83 69 3752
P1 9376fd60 + the older port stack (no COPY-queue pick, none of the 16 below) b40run1 755 127 137 2976
P4 P1 + first 7 of the 16 ports b42run1 571 159 197 3460
P6 all 16 ports except eb209ab0 b41run1 2655 1929 2099 1192
all 16 full stack b37run2 3434 3023 3077 2647

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 eb209ab0 alone.

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 eb209ab0 and 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

  • P6 ran the opening of a new game (about 1,200 draws per frame), P1/P4 ran a save in the cell (about 3,000-3,900 draws). The gap is much larger than that scene difference, but it is not a same-frame comparison.
  • One run per point.
  • The bisect is paused on our side because the fast line (P1 + #798 + our own picks) is now our main line. We can run any further point you suggest.

Questions

  1. Has anyone seen a large slowdown with PRs from #783-#791 combined, on any GPU?
  2. Does the fork tester with the best numbers run these nine? If so, which switches are on?
  3. Would someone with a spare run on a 4-core machine bisect 8-16 one at a time? We can give the exact commit order.
**@⁠FluffyCyanNova** on GitHub · 2026-11-26 10:11 UTC · [original](https://github.com/fxceless/victory-fork/issues/1283) 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 had `VICTORY_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. | Point | What is in it | Run | ms/frame | GPU ms | copy-back ms | draws | |---|---|---|---:|---:|---:|---:| | older line | fork a26859f + our earlier port stack, before 9376fd60 | b36run1 | 487 | 83 | 69 | 3752 | | P1 | 9376fd60 + the older port stack (no COPY-queue pick, none of the 16 below) | b40run1 | 755 | 127 | 137 | 2976 | | P4 | P1 + first 7 of the 16 ports | b42run1 | 571 | 159 | 197 | 3460 | | P6 | all 16 ports except eb209ab0 | b41run1 | 2655 | 1929 | 2099 | 1192 | | all 16 | full stack | b37run2 | 3434 | 3023 | 3077 | 2647 | 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 `eb209ab0` alone. ## 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 `eb209ab0` and 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 - P6 ran the opening of a new game (about 1,200 draws per frame), P1/P4 ran a save in the cell (about 3,000-3,900 draws). The gap is much larger than that scene difference, but it is not a same-frame comparison. - One run per point. - The bisect is paused on our side because the fast line (P1 + #798 + our own picks) is now our main line. We can run any further point you suggest. ## Questions 1. Has anyone seen a large slowdown with PRs from #783-#791 combined, on any GPU? 2. Does the fork tester with the best numbers run these nine? If so, which switches are on? 3. Would someone with a spare run on a 4-core machine bisect 8-16 one at a time? We can give the exact commit order.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:19:47 +00:00
Author
Owner

@⁠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_RUNS to 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.

**@⁠HLVM04** on GitHub · 2026-11-26 10:27 UTC · [original](https://github.com/fxceless/victory-fork/issues/1283#issuecomment-7189394042) · 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_RUNS` to 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.
Author
Owner

@⁠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: about 20 ms per frame on average, with some spikes of 90-900 ms.
  • P4: 0.

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.

**@⁠FluffyCyanNova** on GitHub · 2026-11-26 11:05 UTC · [original](https://github.com/fxceless/victory-fork/issues/1283#issuecomment-7190256907) 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: about 20 ms per frame on average, with some spikes of 90-900 ms. - P4: 0. 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.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#1283
No description provided.