CPU-bound profile on Ryzen 5 8500G + RX 6750 XT (bm-v1, diagnostics build): submission-thread breakdown #219
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?
Imported from PastiiJay/klbf-lab. Originally posted by Habluer on 2026-11-29T01:07:59Z.
I spent a few days trying to get a sustained 30 FPS base (no frame generation) on a 6-core CPU, and wanted to share the measurements in case they're useful. Short version: the GPU is no longer the limit, and the submission thread takes ~95% of the frame.
Setup
v26.11.6VICTORY_ABSENT_CACHE=1, Port 2 (VICTORY_PORT_DESCRIPTORS=1, 6/6 stores patched, 0 view records missed),VICTORY_LEAN_MATH=247, skip filter for 8 heavy GPU pass prefixes (RT, reflections, Strands). NoVICTORY_THIN.--console series-s,KLBF_BENCH=bm-v1, warm cache (25,717 shaders / 8,073 pipelines), only blocks with 0 pipelines being madeBaseline with this config: ~13–15 FPS (65–77 ms/frame). The best window was 14.4–15.4 FPS / 65.0–69.2 ms, but that's only ~20 s of stable frames from a run that stopped at ~98 s (log 183222) and was never repeated, so I'm treating the wider range as the honest number.
Where the frame goes
From a
--features diagnosticsbuild of the same config (no code changes), averaged over 62 one-second blocks with 0 pipelines being made. Frame time there was 77.3 ms (12.9 FPS, includes telemetry overhead).The submission thread accounts for 73.8 of 77.3 ms:
SPLIT[2]lists' steps[6]refreshes 18.6,[7]copies/fills 3.7,[9]1.8SPLIT[3]take_snapshotsC::SnapshotUs(12.0)SPLIT[4]card_beforeCARD_SPLITadds up to 4.1SPLIT[0]ask_once[8]0.5SPLIT[1]bytes under flights' writes[5],[12],[14])SPLIT[15]wait for heap recordsSPLIT[13]waiting for flightssubmit()preparingon the frame line equals[0]+[1]+[2]+[3]+[4]+[15](53.7 vs. 53.5 logged), so the split closes.One thing I got wrong at first:
copying back(~18.9 ms) runs on the relay thread in parallel. It only reaches the critical path through[13], so addingpreparing + copying back + waiting for flightscounts the same latency twice.Findings
LEAN_MATH=247+ the pass filter. GPU time in bm-v1 is 4.3–8.7 ms. The remaining "on the GPU" wait behaves more like sync latency than GPU load: when I skipped 30% of the draws (below), it went up.[6]is summed across threads, so it isn't all wall time. I haven't measured the no-op share yet (VICTORY_REFRESH_SPLIT=1wasn't on).take_snapshotscopies ~200 MB/frame on the CPU (195–199 MB across runs, mostly copies ≥ 1 MiB), ~12 ms. I didn't verify whether that phase actually runs in parallel.VICTORY_CARD_BUFFERS_MIN_MB=1did not move snapshots to the GPU. The CPU still copied 203–204 MB/frame, so the GPU path for snapshots was never really tested.MS_VS_CascadeShadows_/MSR_VS_CascadeShadows_cut draws ~30% (~4,400 → ~3,100/frame) butpreparingdropped only ~2 ms, and snapshots/copies didn't change.waiting for flightsis ~18.9 ms on average (14.3–22.6), attributed to "title memory read"; the buffer copy / fill / texture subcauses are all 0.0.Other A/B runs (same scene, vs. the baseline above)
VICTORY_LAZY_COPYBACK=1)copies+7 to +11 msVICTORY_DSTORAGE_WORKERS=physicalVICTORY_CARD_BUFFERS_MIN_MB=1Because the baseline is a single short window, none of these are proven worse, just not shown to be better.
Limitations
early_pipelines3,267 on the baseline vs. 3,784–3,787 later, from chained runs).Where that leaves 30 FPS
Getting to ≤ 33.3 ms means cutting 34–44 ms/frame (50–57%). No single part is bigger than ~27 ms, and my rough optimistic guess for the untested targets lands around ~61 ms (~16 FPS). So for the current layer, on this hardware and in this scene, I don't see a path to 30 FPS base. That's not a claim it's impossible elsewhere or after a redesign.
A few questions, if anyone has context:
waiting for flights, and is there anything worth trying there?take_snapshotsmeant to be parallel (I sawcopy_jobsin the code but didn't confirm it's used here)?CARD_BUFFERS_MIN_MB=1didn't?Happy to run
VICTORY_REFRESH_SPLIT=1or a full baseline replicate if that helps.Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-29T01:26:47Z.
I reproduced the benchmark-counter problem from your diagnostics run. On v26.11.9 the BM-v1 exporter still supplies a literal zero for host pipelines. I wired it to successful host pipeline creations and sampled it at the beginning and end of the timed window. On Windows WARP the timed run wrote
1to the JSON after one successful new pipeline, a cache hit and a failed creation. Closing during warmup wrote0. The unmodified v26.11.9 exporter wrote0for the same timed creation in the baseline run. All 22 existing benchmark tests passed with the fix. Patch · Windows test and JSON readbacks.I checked your three profiling questions against v26.11.6, the version in your report.
take_snapshotssplits copies into roughly 1 MiB jobs. The submitting thread helps a persistent worker pool and waits for completion. Twelve logical processors visible to the process give three helpers. The ~12 ms can therefore include both parallel copying and time waiting for the last jobs. Snapshot path · Worker count.VICTORY_CARD_BUFFERS_MIN_MB=1changes the size threshold for eligible title-buffer shadows. The allocation cap, VRAM budget and device readiness still apply, and other memory windows have their own path. If your existing diagnostics log containsshader writes looked for on the CPU per frame, the two “MB snapshotted” numbers on that line separate windows outside buffers from title-buffer copies. Those numbers alongside the card-buffer limits would tell us where most of your 200 MB went before asking you to rerun. Allocation checks · Diagnostic fields.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T01:34:19Z.
this is exactly the kind of breakdown we needed, thank you. the submission thread taking ~95% of the frame matches what we see on our side, and it's now first on tomorrow's list (CPU cost per frame). @HandshakeHackin thanks for the pipeline counter fix in the bench too, we'll take it with credit
Imported from PastiiJay/klbf-lab. Originally posted by Habluer on 2026-11-29T01:48:00Z.
Thanks a lot @PastiiJay and @HandshakeHackin! Really glad the breakdown helped put submission-thread CPU cost first on tomorrow's list and caught the BM-v1 pipeline counter bug.
The explanations on flights and snapshots make sense too. The worker pool waiting for the last jobs explains why
take_snapshotsdidn't look parallel from the split.@HandshakeHackin, following up on point 3, I checked the existing logs (no rerun needed):
1.
card buffer limitsat startupIdentical in both the diagnostics run and the
VICTORY_CARD_BUFFERS_MIN_MB=1run.VICTORY_CARD_BUFFERS_MIN_KB=64was already set in the environment alongsideMIN_MB=1:2.
shader writes looked for on the CPU per frameSteady-state blocks with
0 being made. 100% of the ~200 MB is intitle buffers' copies, and0.0 MBis inwindows outside buffers:3.
copystatat the same diagnostics timestamp (00:33:25.879Z)So
card_buffers_min_kb=64was already active in both runs (64 KiB, well below 1 MiB), yet ~184–192 MB of>= 1 MiBtitle-buffer copies still stayed on the CPU snapshot path. Given what you mentioned about the allocation cap still applying,card_buffers_max_mb=512(or another eligibility check) looks like the main suspect. Happy to test a highercard_buffers_max_mbor any v26.11.9+ CPU patch whenever ready!Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-29T02:02:15Z.
@Habluer, those lines settle the threshold question. Both runs already used 64 KiB. The 198.0 and 204.1 MB snapshotted were all title-buffer copies. “Made so far: 3015 card buffers 781 MB” counts allocations over the life of the process, so it can exceed 512 MB even if the live cap was never hit.
I added a diagnostic on the previously silent aggregate-cap rejection. It records the requested bytes, bytes already held, configured cap and rejection count. On Windows WARP, two separate processes with 0 MiB and 2 MiB caps each forced five rejections. Counts 1, 2 and 4 were logged, and the independent VRAM-watermark counter stayed at zero. The patch leaves allocation policy unchanged. Patch · Windows test
For a comparable first run on your 6750 XT, keep
VICTORY_CARD_BUFFERS_MB=512and your current settings. The patch applies cleanly to stock v26.11.6, so you can cherry-pick it into your profiling build. The first aggregate-cap rejection, any separate “the card has …” watermark line, and a steady-state snapshot line would tell us whether the cap is involved before changing it. If using a separate copy of stock v26.11.9, there is also a ready-built diagnostics executable and SHA-256. The stock build omits your local profiling changes.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T08:24:58Z.
@HandshakeHackin your pipeline counter fix shipped in the v26.11.10 pre-release, so the card now counts pipelines made during the run, credited to you. the cap rejection diagnostic is noted for the next round.
@Habluer the CPU work this profile pointed at went into that pre-release too, most of it behind switches. could you run bm-v1 on it with your usual settings, then once with
VICTORY_THIN=1(multi-core list recording, off by default), and post both cards? one warm-cache run each is plentyImported from PastiiJay/klbf-lab. Originally posted by Habluer on 2026-11-29T14:28:50Z.
1. @HandshakeHackin —
VICTORY_CARD_BUFFERS_MB=512aggregate-cap diagnostic (72795122)Thanks for the patch. I cherry-picked
72795122into a separate--features diagnosticsbuild on top of my profiling build (leaving the previousvictory.exeuntouched) and verified the raw log directly.bm-v1(short),VICTORY_CARD_BUFFERS_MB=512,VICTORY_CARD_BUFFERS_MIN_KB=64, warm cache (shaders_files=25717 | early_pipelines=3797 | warm_done=8073),victory-a7.exeSHA-256C332FD7C536C556144EE69E7E09151B0830AA29DE29CAE42885F1F8795CF829B, save hash identical before/after.512 MiB) saturates during load, before the first world frame: 12 power-of-2 refusal lines were logged between lines 6919 and 7707 (so at least 2048 refusals total), all before the first world frame at line 8740 (02:24:31):the card has ...):0occurrences in the entire log (also0forno card copy). The end-of-run housekeeping line reports9546 MBin use of an11474 MBbudget, confirming the refusals come strictly from theVICTORY_CARD_BUFFERS_MB=512env cap, not the adapter VRAM budget.12.6 fps, 79.5 ms/frame (55.5 preparing: copies 21.3 ms 92.8 MB, textures 1.0 ms 23.4 MB; 20.1 on the GPU; 18.3 copying back 24.5 MB), 4270 draws/frame, dropped 414 without a host pipeline (0 being made)So the 512 MiB cap saturates early while ~188 MB of title-buffer snapshots remain compared on the CPU per frame. I haven't tested a higher cap in this run, so I can't claim yet how much of that would move. Happy to run a matched A/B if useful.
2. @PastiiJay —
v26.11.10pre-release (1d65878) warm-cachebm-v1cards (default vs.VICTORY_THIN=1)Tested in a fresh folder (
v26.11.10 @ 1d65878) on Ryzen 5 8500G + RX 6750 XT 12 GB + 32 GB RAM (Win 11 Pro 25H2),Profile S, 32 GB memory mode (not Memory Light),FSR 3.1 Quality (720p -> 1080p),Frame generation: Off,save #1(15464771),5:00 complete.After
Prepare shaders+ one full 5-minute warmup run (044796d7:11.2 avg / 13.7 med / 1.2 1% low / 125 freezes / Memory: steady), here are the warm-cache runs (comparable scene load:4008-4132 draws/frame):v26.11.10)ee8602f4VICTORY_THIN=1run 1414c1891VICTORY_THIN=1run 2f497533fSummary lines:
[KLBF Lab Bench BM-v1] PastiiJay/klbf-lab@1d65878 | Radeon RX 6750 XT | Ryzen 5 8500G w/ Radeon 740M Graphics | avg 12.2 fps, 1% low 1.9 | CERTIFIED | ee8602f4 | where: U3a v10 default warm | save ID 15464771[KLBF Lab Bench BM-v1] PastiiJay/klbf-lab@1d65878 | Radeon RX 6750 XT | Ryzen 5 8500G w/ Radeon 740M Graphics | avg 11.3 fps, 1% low 1.1 | CERTIFIED | 414c1891 | where: U3b v10 thin=1 | save ID 15464771[KLBF Lab Bench BM-v1] PastiiJay/klbf-lab@1d65878 | Radeon RX 6750 XT | Ryzen 5 8500G w/ Radeon 740M Graphics | avg 11.6 fps, 1% low 1.4 | CERTIFIED | f497533f | where: U3b v10 thin=1 v2 | save ID 15464771Observations:
v26.11.10default (32 GB mode):12.2 avg / 13.7 med / 1.9 1% low / 18.3 max / 74% >= 12 fps / 69 freezes / Memory: steady. My earlierv26.11.9run (e21dc7cb:8.7 avg / 11.7 med / 0.7 1% low / 164 freezes) is not directly comparable (it usedMemory: Light 16 GBvs. 32 GB mode here); the 32 GB memory mode may account for part of the difference.VICTORY_THIN=1(two runs): both landed below the default warm run onavg(11.3/11.6vs12.2),1% low(1.1/1.4vs1.9),card busy(62-63%vs69%) and freezes (111/134vs69), although run 2 had a slightly higher median/max (14.0/19.3). Note that my warmup run (11.2 / 1.2 / 125 freezes) is in the same range as the THIN runs, so some of this may be run-to-run variance. Peak VRAM was consistently lower with THIN (6.7-6.9 GBvs7.7 GB).VICTORY_THIN=1runs, never on warmup or default): what look like intermediate render targets/buffers (cyan depth/normal-like image top-left, red top-center, green bottom-center) leak onto the screen around a squeezed middle strip of the scene. Screenshot attached, captured at3:52 / 5:00during run 2 (f497533f) by a background capture script. That script ran only on run 2; run 1 had no script, so it is not needed to trigger the corruption.dropped: not measuredrather than a pipeline-made count. Cardf497533fshows1 inputs blocked: I pressed F8 once during that run trying to take a screenshot manually (it didn't capture; the attached image came from the background script), so it is not a fully "no input" run, and it was the only run with the capture script active. The other two cards had no input and no script.)Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T15:38:21Z.
Reposted from @Habluer (15:28) without one in-game screenshot. no worries, we just keep content from any game out of this repo (bench cards are fine), thanks for understanding!
1. @HandshakeHackin —
VICTORY_CARD_BUFFERS_MB=512aggregate-cap diagnostic (72795122)Thanks for the patch. I cherry-picked
72795122into a separate--features diagnosticsbuild on top of my profiling build (leaving the previousvictory.exeuntouched) and verified the raw log directly.bm-v1(short),VICTORY_CARD_BUFFERS_MB=512,VICTORY_CARD_BUFFERS_MIN_KB=64, warm cache (shaders_files=25717 | early_pipelines=3797 | warm_done=8073),victory-a7.exeSHA-256C332FD7C536C556144EE69E7E09151B0830AA29DE29CAE42885F1F8795CF829B, save hash identical before/after.512 MiB) saturates during load, before the first world frame: 12 power-of-2 refusal lines were logged between lines 6919 and 7707 (so at least 2048 refusals total), all before the first world frame at line 8740 (02:24:31):the card has ...):0occurrences in the entire log (also0forno card copy). The end-of-run housekeeping line reports9546 MBin use of an11474 MBbudget, confirming the refusals come strictly from theVICTORY_CARD_BUFFERS_MB=512env cap, not the adapter VRAM budget.12.6 fps, 79.5 ms/frame (55.5 preparing: copies 21.3 ms 92.8 MB, textures 1.0 ms 23.4 MB; 20.1 on the GPU; 18.3 copying back 24.5 MB), 4270 draws/frame, dropped 414 without a host pipeline (0 being made)So the 512 MiB cap saturates early while ~188 MB of title-buffer snapshots remain compared on the CPU per frame. I haven't tested a higher cap in this run, so I can't claim yet how much of that would move. Happy to run a matched A/B if useful.
2. @PastiiJay —
v26.11.10pre-release (1d65878) warm-cachebm-v1cards (default vs.VICTORY_THIN=1)Tested in a fresh folder (
v26.11.10 @ 1d65878) on Ryzen 5 8500G + RX 6750 XT 12 GB + 32 GB RAM (Win 11 Pro 25H2),Profile S, 32 GB memory mode (not Memory Light),FSR 3.1 Quality (720p -> 1080p),Frame generation: Off,save #1(15464771),5:00 complete.After
Prepare shaders+ one full 5-minute warmup run (044796d7:11.2 avg / 13.7 med / 1.2 1% low / 125 freezes / Memory: steady), here are the warm-cache runs (comparable scene load:4008-4132 draws/frame):v26.11.10)ee8602f4VICTORY_THIN=1run 1414c1891VICTORY_THIN=1run 2f497533fSummary lines:
[KLBF Lab Bench BM-v1] PastiiJay/klbf-lab@1d65878 | Radeon RX 6750 XT | Ryzen 5 8500G w/ Radeon 740M Graphics | avg 12.2 fps, 1% low 1.9 | CERTIFIED | ee8602f4 | where: U3a v10 default warm | save ID 15464771[KLBF Lab Bench BM-v1] PastiiJay/klbf-lab@1d65878 | Radeon RX 6750 XT | Ryzen 5 8500G w/ Radeon 740M Graphics | avg 11.3 fps, 1% low 1.1 | CERTIFIED | 414c1891 | where: U3b v10 thin=1 | save ID 15464771[KLBF Lab Bench BM-v1] PastiiJay/klbf-lab@1d65878 | Radeon RX 6750 XT | Ryzen 5 8500G w/ Radeon 740M Graphics | avg 11.6 fps, 1% low 1.4 | CERTIFIED | f497533f | where: U3b v10 thin=1 v2 | save ID 15464771Observations:
v26.11.10default (32 GB mode):12.2 avg / 13.7 med / 1.9 1% low / 18.3 max / 74% >= 12 fps / 69 freezes / Memory: steady. My earlierv26.11.9run (e21dc7cb:8.7 avg / 11.7 med / 0.7 1% low / 164 freezes) is not directly comparable (it usedMemory: Light 16 GBvs. 32 GB mode here); the 32 GB memory mode may account for part of the difference.VICTORY_THIN=1(two runs): both landed below the default warm run onavg(11.3/11.6vs12.2),1% low(1.1/1.4vs1.9),card busy(62-63%vs69%) and freezes (111/134vs69), although run 2 had a slightly higher median/max (14.0/19.3). Note that my warmup run (11.2 / 1.2 / 125 freezes) is in the same range as the THIN runs, so some of this may be run-to-run variance. Peak VRAM was consistently lower with THIN (6.7-6.9 GBvs7.7 GB).VICTORY_THIN=1runs, never on warmup or default): what look like intermediate render targets/buffers (cyan depth/normal-like image top-left, red top-center, green bottom-center) leak onto the screen around a squeezed middle strip of the scene. Screenshot attached, captured at3:52 / 5:00during run 2 (f497533f) by a background capture script. That script ran only on run 2; run 1 had no script, so it is not needed to trigger the corruption.dropped: not measuredrather than a pipeline-made count. Cardf497533fshows1 inputs blocked: I pressed F8 once during that run trying to take a screenshot manually (it didn't capture; the attached image came from the background script), so it is not a fully "no input" run, and it was the only run with the capture script active. The other two cards had no input and no script.)