CPU-bound profile on Ryzen 5 8500G + RX 6750 XT (bm-v1, diagnostics build): submission-thread breakdown #219

Open
opened 2026-11-29 01:07:59 +00:00 by Habluer · 7 comments
Habluer commented 2026-11-29 01:07:59 +00:00 (Migrated from github.com)
Contributor

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

CPU Ryzen 5 8500G (6C/12T)
GPU RX 6750 XT 12 GB (dedicated; the iGPU doesn't render)
RAM / OS 32 GB / Windows 11
Base v26.11.6
On top PR #26, 4,096 shard locks, VICTORY_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). No VICTORY_THIN.
Run --console series-s, KLBF_BENCH=bm-v1, warm cache (25,717 shaders / 8,073 pipelines), only blocks with 0 pipelines being made

Baseline 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 diagnostics build 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:

Part ms/frame Notes
SPLIT[2] lists' steps 26.9 includes [6] refreshes 18.6, [7] copies/fills 3.7, [9] 1.8
SPLIT[3] take_snapshots 11.9 matches C::SnapshotUs (12.0)
SPLIT[4] card_before 4.4 CARD_SPLIT adds up to 4.1
SPLIT[0] ask_once 4.3 includes [8] 0.5
SPLIT[1] bytes under flights' writes 2.3
sending + card steps + heaps ([5], [12], [14]) 1.4
CPU work 51.1
SPLIT[15] wait for heap records 3.9
SPLIT[13] waiting for flights 18.9 settle cause logged as "title memory read" (18.6)
Waits 22.8
Outside submit() 3.5 title thread + present

preparing on 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 adding preparing + copying back + waiting for flights counts the same latency twice.

Findings

  • GPU looks solved by 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.
  • Refreshes are mostly no-ops, but not free. 10,460 refreshes per frame, 9,302 (88.9%) "known to copy nothing", 9,705 multi-threaded. The 18.6 ms in [6] is summed across threads, so it isn't all wall time. I haven't measured the no-op share yet (VICTORY_REFRESH_SPLIT=1 wasn't on).
  • take_snapshots copies ~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=1 did not move snapshots to the GPU. The CPU still copied 203–204 MB/frame, so the GPU path for snapshots was never really tested.
  • Skipping MS_VS_CascadeShadows_ / MSR_VS_CascadeShadows_ cut draws ~30% (~4,400 → ~3,100/frame) but preparing dropped only ~2 ms, and snapshots/copies didn't change.
  • waiting for flights is ~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)

Change Result Notes
PR #190 (VICTORY_LAZY_COPYBACK=1) 12.1–13.0 FPS 0.00 MB read back via VEH, copy-back still ~24 MB/frame, copies +7 to +11 ms
VICTORY_DSTORAGE_WORKERS=physical 12.9–13.9 FPS settles +8–12 ms
VICTORY_CARD_BUFFERS_MIN_MB=1 12.3 FPS snapshots stayed on the CPU
Skip cascade shadows 13.5–13.9 FPS see above
PR #184 inconclusive 37–56 pipelines being made during the run

Because the baseline is a single short window, none of these are proven worse, just not shown to be better.

Limitations

  • No replicate of the baseline, so run-to-run variance is unknown. Differences of 1–3 FPS may be noise.
  • Pipeline cache wasn't identical between runs (early_pipelines 3,267 on the baseline vs. 3,784–3,787 later, from chained runs).
  • The diagnostics build has a different build id and recompiled pipelines for most of the run, so only ~65 s were clean. Its BM-v1 summary (8.8 FPS) is contaminated by that and shouldn't be read as the build's performance. That summary also reported "0 pipelines compiled during the run" while the log showed hundreds being made, so the bench counter doesn't seem to cover host pipelines.
  • One scene (bm-v1, first ~5 min), VIctory log counters only, no PresentMon/WPR.

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:

  1. Is "title memory read" the expected cause behind waiting for flights, and is there anything worth trying there?
  2. Is take_snapshots meant to be parallel (I saw copy_jobs in the code but didn't confirm it's used here)?
  3. Is there a supported way to move snapshots to the GPU, given CARD_BUFFERS_MIN_MB=1 didn't?

Happy to run VICTORY_REFRESH_SPLIT=1 or a full baseline replicate if that helps.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:6673273404 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/219). Originally posted by [Habluer](https://github.com/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 | | | |---|---| | CPU | Ryzen 5 8500G (6C/12T) | | GPU | RX 6750 XT 12 GB (dedicated; the iGPU doesn't render) | | RAM / OS | 32 GB / Windows 11 | | Base | `v26.11.6` | | On top | PR #26, 4,096 shard locks, `VICTORY_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). No `VICTORY_THIN`. | | Run | `--console series-s`, `KLBF_BENCH=bm-v1`, warm cache (25,717 shaders / 8,073 pipelines), only blocks with 0 pipelines being made | Baseline 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 diagnostics` build 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**: | Part | ms/frame | Notes | |---|---:|---| | `SPLIT[2]` lists' steps | 26.9 | includes `[6]` refreshes 18.6, `[7]` copies/fills 3.7, `[9]` 1.8 | | `SPLIT[3]` `take_snapshots` | 11.9 | matches `C::SnapshotUs` (12.0) | | `SPLIT[4]` `card_before` | 4.4 | `CARD_SPLIT` adds up to 4.1 | | `SPLIT[0]` `ask_once` | 4.3 | includes `[8]` 0.5 | | `SPLIT[1]` bytes under flights' writes | 2.3 | | | sending + card steps + heaps (`[5]`, `[12]`, `[14]`) | 1.4 | | | **CPU work** | **51.1** | | | `SPLIT[15]` wait for heap records | 3.9 | | | `SPLIT[13]` waiting for flights | 18.9 | settle cause logged as "title memory read" (18.6) | | **Waits** | **22.8** | | | Outside `submit()` | 3.5 | title thread + present | `preparing` on 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 adding `preparing + copying back + waiting for flights` counts the same latency twice. ## Findings - **GPU looks solved by `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*. - **Refreshes are mostly no-ops, but not free.** 10,460 refreshes per frame, 9,302 (88.9%) "known to copy nothing", 9,705 multi-threaded. The 18.6 ms in `[6]` is summed across threads, so it isn't all wall time. I haven't measured the no-op share yet (`VICTORY_REFRESH_SPLIT=1` wasn't on). - **`take_snapshots` copies ~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=1` did not move snapshots to the GPU.** The CPU still copied 203–204 MB/frame, so the GPU path for snapshots was never really tested. - **Skipping `MS_VS_CascadeShadows_` / `MSR_VS_CascadeShadows_` cut draws ~30%** (~4,400 → ~3,100/frame) but `preparing` dropped only ~2 ms, and snapshots/copies didn't change. - **`waiting for flights` is ~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) | Change | Result | Notes | |---|---|---| | PR #190 (`VICTORY_LAZY_COPYBACK=1`) | 12.1–13.0 FPS | 0.00 MB read back via VEH, copy-back still ~24 MB/frame, `copies` +7 to +11 ms | | `VICTORY_DSTORAGE_WORKERS=physical` | 12.9–13.9 FPS | settles +8–12 ms | | `VICTORY_CARD_BUFFERS_MIN_MB=1` | 12.3 FPS | snapshots stayed on the CPU | | Skip cascade shadows | 13.5–13.9 FPS | see above | | PR #184 | inconclusive | 37–56 pipelines being made during the run | Because the baseline is a single short window, none of these are proven worse, just not shown to be better. ## Limitations - No replicate of the baseline, so run-to-run variance is unknown. Differences of 1–3 FPS may be noise. - Pipeline cache wasn't identical between runs (`early_pipelines` 3,267 on the baseline vs. 3,784–3,787 later, from chained runs). - The diagnostics build has a different build id and recompiled pipelines for most of the run, so only ~65 s were clean. Its BM-v1 summary (8.8 FPS) is contaminated by that and shouldn't be read as the build's performance. That summary also reported "0 pipelines compiled during the run" while the log showed hundreds being made, so the bench counter doesn't seem to cover host pipelines. - One scene (bm-v1, first ~5 min), VIctory log counters only, no PresentMon/WPR. ## 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: 1. Is "title memory read" the expected cause behind `waiting for flights`, and is there anything worth trying there? 2. Is `take_snapshots` meant to be parallel (I saw `copy_jobs` in the code but didn't confirm it's used here)? 3. Is there a supported way to move snapshots to the GPU, given `CARD_BUFFERS_MIN_MB=1` didn't? Happy to run `VICTORY_REFRESH_SPLIT=1` or a full baseline replicate if that helps.
HandshakeHackin commented 2026-11-29 01:26:47 +00:00 (Migrated from github.com)
Author
Contributor

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 1 to the JSON after one successful new pipeline, a cache hit and a failed creation. Closing during warmup wrote 0. The unmodified v26.11.9 exporter wrote 0 for 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.

  1. Waiting for flights. Yes, preparing a list can need title memory that an earlier GPU submission may still write. A pending GPU-side copy can also cause this wait. The copy/fill/texture counters cover individual paths, so their rounded zeros still leave other ways to reach “title memory read.” The diagnostics breakdown by what waited is the most direct way to identify the overlap. Wait decision · Per-operation accounting.
  2. Snapshots. With wide copy-back enabled, take_snapshots splits 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.
  3. Card buffers. VICTORY_CARD_BUFFERS_MIN_MB=1 changes 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 contains shader 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.
<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7248787326 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/219#issuecomment-7248787326). Originally posted by [HandshakeHackin](https://github.com/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 `1` to the JSON after one successful new pipeline, a cache hit and a failed creation. Closing during warmup wrote `0`. The unmodified v26.11.9 exporter wrote `0` for the same timed creation in the [baseline run](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46211597717/job/141186330569). All 22 existing benchmark tests passed with the fix. [Patch](https://github.com/HandshakeHackin/klbf-lab/commit/f68f5a60812e68fac92b384aa696026db148d174) · [Windows test and JSON readbacks](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46210688618/job/141183499550). I checked your three profiling questions against v26.11.6, the version in your report. 1. **Waiting for flights.** Yes, preparing a list can need title memory that an earlier GPU submission may still write. A pending GPU-side copy can also cause this wait. The copy/fill/texture counters cover individual paths, so their rounded zeros still leave other ways to reach “title memory read.” The diagnostics breakdown by what waited is the most direct way to identify the overlap. [Wait decision](https://github.com/PastiiJay/klbf-lab/blob/v26.11.6/crates/victory-gpu/src/host.rs#L3269) · [Per-operation accounting](https://github.com/PastiiJay/klbf-lab/blob/v26.11.6/crates/victory-gpu/src/host.rs#L3518). 2. **Snapshots.** With wide copy-back enabled, `take_snapshots` splits 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](https://github.com/PastiiJay/klbf-lab/blob/v26.11.6/crates/victory-gpu/src/shadow.rs#L1731) · [Worker count](https://github.com/PastiiJay/klbf-lab/blob/v26.11.6/crates/victory-gpu/src/shadow.rs#L1598). 3. **Card buffers.** `VICTORY_CARD_BUFFERS_MIN_MB=1` changes 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 contains `shader 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](https://github.com/PastiiJay/klbf-lab/blob/v26.11.6/crates/victory-gpu/src/shadow.rs#L416) · [Diagnostic fields](https://github.com/PastiiJay/klbf-lab/blob/v26.11.6/crates/victory-gpu/src/shadow.rs#L1901).
PastiiJay commented 2026-11-29 01:34:19 +00:00 (Migrated from github.com)
Author
Contributor

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

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7248870733 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/219#issuecomment-7248870733). Originally posted by [PastiiJay](https://github.com/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
Habluer commented 2026-11-29 01:48:00 +00:00 (Migrated from github.com)
Author
Contributor

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_snapshots didn't look parallel from the split.

@HandshakeHackin, following up on point 3, I checked the existing logs (no rerun needed):

1. card buffer limits at startup

Identical in both the diagnostics run and the VICTORY_CARD_BUFFERS_MIN_MB=1 run. VICTORY_CARD_BUFFERS_MIN_KB=64 was already set in the environment alongside MIN_MB=1:

victory_gpu::shadow: card buffer limits vram_budget_mb=11474 card_buffers_min_kb=64 card_buffers_max_mb=512

2. shader writes looked for on the CPU per frame

Steady-state blocks with 0 being made. 100% of the ~200 MB is in title buffers' copies, and 0.0 MB is in windows outside buffers:

# Diagnostics run (00:33:25.853Z):
victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 199.2 MB in 142 ranges of title buffers' copies (198.0 MB snapshotted), of them 184.4 MB in copies of 1 MiB or more (VICTORY_CARD_BUFFERS_MIN_MB=1 would have the card look there)

# VICTORY_CARD_BUFFERS_MIN_MB=1 run (00:04:32.070Z):
victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 207.9 MB in 150 ranges of title buffers' copies (204.1 MB snapshotted), of them 191.6 MB in copies of 1 MiB or more (VICTORY_CARD_BUFFERS_MIN_MB=1 would have the card look there)

3. copystat at the same diagnostics timestamp (00:33:25.879Z)

victory_gpu::copystat: memory: 21560 MB private (9025 MB of it in memory; the PC has 2426 MB free and 8133 MB left to commit); host copies of title memory: 4632 alive 4005 MB, of them 775 windows outside buffers 3200 MB; snapshot buffers kept: 68 reserving 50 MB; staging of textures: 104 alive 47 MB, 104 kept by their texture; host textures: 56904 alive 4837 MB, 56067 placed in title memory; made so far: 14752 upload buffers 11410 MB, 16876 shared buffers 6417 MB, 3015 card buffers 781 MB

So card_buffers_min_kb=64 was already active in both runs (64 KiB, well below 1 MiB), yet ~184–192 MB of >= 1 MiB title-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 higher card_buffers_max_mb or any v26.11.9+ CPU patch whenever ready!

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7249020341 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/219#issuecomment-7249020341). Originally posted by [Habluer](https://github.com/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_snapshots` didn't look parallel from the split. @HandshakeHackin, following up on point 3, I checked the existing logs (no rerun needed): **1. `card buffer limits` at startup** Identical in both the diagnostics run and the `VICTORY_CARD_BUFFERS_MIN_MB=1` run. `VICTORY_CARD_BUFFERS_MIN_KB=64` was already set in the environment alongside `MIN_MB=1`: ```text victory_gpu::shadow: card buffer limits vram_budget_mb=11474 card_buffers_min_kb=64 card_buffers_max_mb=512 ``` **2. `shader writes looked for on the CPU per frame`** Steady-state blocks with `0 being made`. **100% of the ~200 MB is in `title buffers' copies`, and `0.0 MB` is in `windows outside buffers`:** ```text # Diagnostics run (00:33:25.853Z): victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 199.2 MB in 142 ranges of title buffers' copies (198.0 MB snapshotted), of them 184.4 MB in copies of 1 MiB or more (VICTORY_CARD_BUFFERS_MIN_MB=1 would have the card look there) # VICTORY_CARD_BUFFERS_MIN_MB=1 run (00:04:32.070Z): victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 207.9 MB in 150 ranges of title buffers' copies (204.1 MB snapshotted), of them 191.6 MB in copies of 1 MiB or more (VICTORY_CARD_BUFFERS_MIN_MB=1 would have the card look there) ``` **3. `copystat` at the same diagnostics timestamp (00:33:25.879Z)** ```text victory_gpu::copystat: memory: 21560 MB private (9025 MB of it in memory; the PC has 2426 MB free and 8133 MB left to commit); host copies of title memory: 4632 alive 4005 MB, of them 775 windows outside buffers 3200 MB; snapshot buffers kept: 68 reserving 50 MB; staging of textures: 104 alive 47 MB, 104 kept by their texture; host textures: 56904 alive 4837 MB, 56067 placed in title memory; made so far: 14752 upload buffers 11410 MB, 16876 shared buffers 6417 MB, 3015 card buffers 781 MB ``` So `card_buffers_min_kb=64` was already active in both runs (64 KiB, well below 1 MiB), yet ~184–192 MB of `>= 1 MiB` title-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 higher `card_buffers_max_mb` or any v26.11.9+ CPU patch whenever ready!
HandshakeHackin commented 2026-11-29 02:02:15 +00:00 (Migrated from github.com)
Author
Contributor

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=512 and 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.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7249169799 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/219#issuecomment-7249169799). Originally posted by [HandshakeHackin](https://github.com/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](https://github.com/HandshakeHackin/klbf-lab/commit/72795122dea1c696b7aab368b1655b9c176e7b8c) · [Windows test](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46213187638/job/141191255332) For a comparable first run on your 6750 XT, keep `VICTORY_CARD_BUFFERS_MB=512` and 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](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46213187638/artifacts/15291005995). The stock build omits your local profiling changes.
PastiiJay commented 2026-11-29 08:24:58 +00:00 (Migrated from github.com)
Author
Contributor

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 plenty

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7253090438 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/219#issuecomment-7253090438). Originally posted by [PastiiJay](https://github.com/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 plenty
Habluer commented 2026-11-29 14:28:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from PastiiJay/klbf-lab. Originally posted by Habluer on 2026-11-29T14:28:50Z.


1. @HandshakeHackin — VICTORY_CARD_BUFFERS_MB=512 aggregate-cap diagnostic (72795122)

Thanks for the patch. I cherry-picked 72795122 into a separate --features diagnostics build on top of my profiling build (leaving the previous victory.exe untouched) and verified the raw log directly.

  • Setup: 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.exe SHA-256 C332FD7C536C556144EE69E7E09151B0830AA29DE29CAE42885F1F8795CF829B, save hash identical before/after.
  • Aggregate cap (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):
L6919: 2026-11-29T02:24:25.974619Z  INFO victory_gpu::shadow: title buffer copy declined at VICTORY_CARD_BUFFERS_MB cap requested_kib=12288 held_kib=521536 cap_kib=524288 refusals=1
L7707: ... requested_kib=64 held_kib=524288 cap_kib=524288 refusals=2048
  • Adapter budget watermark (the card has ...): 0 occurrences in the entire log (also 0 for no card copy). The end-of-run housekeeping line reports 9546 MB in use of an 11474 MB budget, confirming the refusals come strictly from the VICTORY_CARD_BUFFERS_MB=512 env cap, not the adapter VRAM budget.
  • Steady-state frame and CPU snapshot lines:
    • Steady-state frame block (line 31289): 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)
    • Final stats dump (line 31469):
2026-11-29T02:30:31.056902Z  INFO victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 190.4 MB in 144 ranges of title buffers' copies (187.6 MB snapshotted), of them 177.0 MB in copies of 1 MiB or more

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.10 pre-release (1d65878) warm-cache bm-v1 cards (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):

Run (v26.11.10) Card ID Avg Med 1% low Freezes Draws/f Peak RAM / VRAM Card busy
Default (warm) ee8602f4 12.2 13.7 1.9 69 4008 19.7 / 7.7 GB 69%
VICTORY_THIN=1 run 1 414c1891 11.3 13.7 1.1 111 4132 17.7 / 6.9 GB 62%
VICTORY_THIN=1 run 2 f497533f 11.6 14.0 1.4 134 4122 19.0 / 6.7 GB 63%

Summary 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 15464771

Observations:

  • v26.11.10 default (32 GB mode): 12.2 avg / 13.7 med / 1.9 1% low / 18.3 max / 74% >= 12 fps / 69 freezes / Memory: steady. My earlier v26.11.9 run (e21dc7cb: 8.7 avg / 11.7 med / 0.7 1% low / 164 freezes) is not directly comparable (it used Memory: Light 16 GB vs. 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 on avg (11.3 / 11.6 vs 12.2), 1% low (1.1 / 1.4 vs 1.9), card busy (62-63% vs 69%) and freezes (111 / 134 vs 69), 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 GB vs 7.7 GB).
  • Visual corruption (reproduced on both VICTORY_THIN=1 runs, 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 at 3:52 / 5:00 during 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.
  • (Small notes: all cards still showed dropped: not measured rather than a pipeline-made count. Card f497533f shows 1 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.)
image image image image
<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7257335049 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/219#issuecomment-7257335049). Originally posted by [Habluer](https://github.com/Habluer) on 2026-11-29T14:28:50Z. --- ### 1. @HandshakeHackin — `VICTORY_CARD_BUFFERS_MB=512` aggregate-cap diagnostic (`72795122`) Thanks for the patch. I cherry-picked `72795122` into a separate `--features diagnostics` build on top of my profiling build (leaving the previous `victory.exe` untouched) and verified the raw log directly. - **Setup:** `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.exe` SHA-256 `C332FD7C536C556144EE69E7E09151B0830AA29DE29CAE42885F1F8795CF829B`, save hash identical before/after. - **Aggregate cap (`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`): ```text L6919: 2026-11-29T02:24:25.974619Z INFO victory_gpu::shadow: title buffer copy declined at VICTORY_CARD_BUFFERS_MB cap requested_kib=12288 held_kib=521536 cap_kib=524288 refusals=1 L7707: ... requested_kib=64 held_kib=524288 cap_kib=524288 refusals=2048 ``` - **Adapter budget watermark (`the card has ...`):** `0` occurrences in the entire log (also `0` for `no card copy`). The end-of-run housekeeping line reports `9546 MB` in use of an `11474 MB` budget, confirming the refusals come strictly from the `VICTORY_CARD_BUFFERS_MB=512` env cap, not the adapter VRAM budget. - **Steady-state frame and CPU snapshot lines:** - Steady-state frame block (line 31289): `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)` - Final stats dump (line 31469): ```text 2026-11-29T02:30:31.056902Z INFO victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 190.4 MB in 144 ranges of title buffers' copies (187.6 MB snapshotted), of them 177.0 MB in copies of 1 MiB or more ``` 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.10` pre-release (`1d65878`) warm-cache `bm-v1` cards (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`): | Run (`v26.11.10`) | Card ID | Avg | Med | 1% low | Freezes | Draws/f | Peak RAM / VRAM | Card busy | |---|---|---:|---:|---:|---:|---:|---|---:| | **Default (warm)** | `ee8602f4` | **12.2** | 13.7 | **1.9** | **69** | 4008 | 19.7 / 7.7 GB | **69%** | | **`VICTORY_THIN=1` run 1** | `414c1891` | 11.3 | 13.7 | 1.1 | 111 | 4132 | 17.7 / 6.9 GB | 62% | | **`VICTORY_THIN=1` run 2** | `f497533f` | 11.6 | **14.0** | 1.4 | 134 | 4122 | 19.0 / 6.7 GB | 63% | Summary 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 15464771` **Observations:** - **`v26.11.10` default (32 GB mode):** `12.2 avg / 13.7 med / 1.9 1% low / 18.3 max / 74% >= 12 fps / 69 freezes / Memory: steady`. My earlier `v26.11.9` run (`e21dc7cb`: `8.7 avg / 11.7 med / 0.7 1% low / 164 freezes`) is **not directly comparable** (it used `Memory: Light 16 GB` vs. 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 on `avg` (`11.3` / `11.6` vs `12.2`), `1% low` (`1.1` / `1.4` vs `1.9`), `card busy` (`62-63%` vs `69%`) and freezes (`111` / `134` vs `69`), 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 GB` vs `7.7 GB`). - **Visual corruption (reproduced on both `VICTORY_THIN=1` runs, 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 at `3:52 / 5:00` during 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. - *(Small notes: all cards still showed `dropped: not measured` rather than a pipeline-made count. Card `f497533f` shows `1 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.)* <img width="1280" height="820" alt="image" src="https://github.com/user-attachments/assets/d7c506b2-3f53-4b26-b291-1833d23ed2cd" /> <img width="1280" height="820" alt="image" src="https://github.com/user-attachments/assets/13088047-9b1c-4e28-957f-011cccbee19b" /> <img width="1280" height="820" alt="image" src="https://github.com/user-attachments/assets/06fcc74e-d991-4269-b939-9be8d5fbb970" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/613c3181-a6ef-4ad1-8ca1-911d566c5681" />
PastiiJay commented 2026-11-29 15:38:21 +00:00 (Migrated from github.com)
Author
Contributor

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=512 aggregate-cap diagnostic (72795122)

Thanks for the patch. I cherry-picked 72795122 into a separate --features diagnostics build on top of my profiling build (leaving the previous victory.exe untouched) and verified the raw log directly.

  • Setup: 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.exe SHA-256 C332FD7C536C556144EE69E7E09151B0830AA29DE29CAE42885F1F8795CF829B, save hash identical before/after.
  • Aggregate cap (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):
L6919: 2026-11-29T02:24:25.974619Z  INFO victory_gpu::shadow: title buffer copy declined at VICTORY_CARD_BUFFERS_MB cap requested_kib=12288 held_kib=521536 cap_kib=524288 refusals=1
L7707: ... requested_kib=64 held_kib=524288 cap_kib=524288 refusals=2048
  • Adapter budget watermark (the card has ...): 0 occurrences in the entire log (also 0 for no card copy). The end-of-run housekeeping line reports 9546 MB in use of an 11474 MB budget, confirming the refusals come strictly from the VICTORY_CARD_BUFFERS_MB=512 env cap, not the adapter VRAM budget.
  • Steady-state frame and CPU snapshot lines:
    • Steady-state frame block (line 31289): 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)
    • Final stats dump (line 31469):
2026-11-29T02:30:31.056902Z  INFO victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 190.4 MB in 144 ranges of title buffers' copies (187.6 MB snapshotted), of them 177.0 MB in copies of 1 MiB or more

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.10 pre-release (1d65878) warm-cache bm-v1 cards (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):

Run (v26.11.10) Card ID Avg Med 1% low Freezes Draws/f Peak RAM / VRAM Card busy
Default (warm) ee8602f4 12.2 13.7 1.9 69 4008 19.7 / 7.7 GB 69%
VICTORY_THIN=1 run 1 414c1891 11.3 13.7 1.1 111 4132 17.7 / 6.9 GB 62%
VICTORY_THIN=1 run 2 f497533f 11.6 14.0 1.4 134 4122 19.0 / 6.7 GB 63%

Summary 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 15464771

Observations:

  • v26.11.10 default (32 GB mode): 12.2 avg / 13.7 med / 1.9 1% low / 18.3 max / 74% >= 12 fps / 69 freezes / Memory: steady. My earlier v26.11.9 run (e21dc7cb: 8.7 avg / 11.7 med / 0.7 1% low / 164 freezes) is not directly comparable (it used Memory: Light 16 GB vs. 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 on avg (11.3 / 11.6 vs 12.2), 1% low (1.1 / 1.4 vs 1.9), card busy (62-63% vs 69%) and freezes (111 / 134 vs 69), 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 GB vs 7.7 GB).
  • Visual corruption (reproduced on both VICTORY_THIN=1 runs, 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 at 3:52 / 5:00 during 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.
  • (Small notes: all cards still showed dropped: not measured rather than a pipeline-made count. Card f497533f shows 1 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.)
image image image
<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7258248236 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/issues/219#issuecomment-7258248236). Originally posted by [PastiiJay](https://github.com/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=512` aggregate-cap diagnostic (`72795122`) Thanks for the patch. I cherry-picked `72795122` into a separate `--features diagnostics` build on top of my profiling build (leaving the previous `victory.exe` untouched) and verified the raw log directly. - **Setup:** `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.exe` SHA-256 `C332FD7C536C556144EE69E7E09151B0830AA29DE29CAE42885F1F8795CF829B`, save hash identical before/after. - **Aggregate cap (`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`): ```text L6919: 2026-11-29T02:24:25.974619Z INFO victory_gpu::shadow: title buffer copy declined at VICTORY_CARD_BUFFERS_MB cap requested_kib=12288 held_kib=521536 cap_kib=524288 refusals=1 L7707: ... requested_kib=64 held_kib=524288 cap_kib=524288 refusals=2048 ``` - **Adapter budget watermark (`the card has ...`):** `0` occurrences in the entire log (also `0` for `no card copy`). The end-of-run housekeeping line reports `9546 MB` in use of an `11474 MB` budget, confirming the refusals come strictly from the `VICTORY_CARD_BUFFERS_MB=512` env cap, not the adapter VRAM budget. - **Steady-state frame and CPU snapshot lines:** - Steady-state frame block (line 31289): `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)` - Final stats dump (line 31469): ```text 2026-11-29T02:30:31.056902Z INFO victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 190.4 MB in 144 ranges of title buffers' copies (187.6 MB snapshotted), of them 177.0 MB in copies of 1 MiB or more ``` 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.10` pre-release (`1d65878`) warm-cache `bm-v1` cards (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`): | Run (`v26.11.10`) | Card ID | Avg | Med | 1% low | Freezes | Draws/f | Peak RAM / VRAM | Card busy | |---|---|---:|---:|---:|---:|---:|---|---:| | **Default (warm)** | `ee8602f4` | **12.2** | 13.7 | **1.9** | **69** | 4008 | 19.7 / 7.7 GB | **69%** | | **`VICTORY_THIN=1` run 1** | `414c1891` | 11.3 | 13.7 | 1.1 | 111 | 4132 | 17.7 / 6.9 GB | 62% | | **`VICTORY_THIN=1` run 2** | `f497533f` | 11.6 | **14.0** | 1.4 | 134 | 4122 | 19.0 / 6.7 GB | 63% | Summary 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 15464771` **Observations:** - **`v26.11.10` default (32 GB mode):** `12.2 avg / 13.7 med / 1.9 1% low / 18.3 max / 74% >= 12 fps / 69 freezes / Memory: steady`. My earlier `v26.11.9` run (`e21dc7cb`: `8.7 avg / 11.7 med / 0.7 1% low / 164 freezes`) is **not directly comparable** (it used `Memory: Light 16 GB` vs. 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 on `avg` (`11.3` / `11.6` vs `12.2`), `1% low` (`1.1` / `1.4` vs `1.9`), `card busy` (`62-63%` vs `69%`) and freezes (`111` / `134` vs `69`), 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 GB` vs `7.7 GB`). - **Visual corruption (reproduced on both `VICTORY_THIN=1` runs, 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 at `3:52 / 5:00` during 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. - *(Small notes: all cards still showed `dropped: not measured` rather than a pipeline-made count. Card `f497533f` shows `1 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.)* <img width="1280" height="820" alt="image" src="https://github.com/user-attachments/assets/d7c506b2-3f53-4b26-b291-1833d23ed2cd" /> <img width="1280" height="820" alt="image" src="https://github.com/user-attachments/assets/13088047-9b1c-4e28-957f-011cccbee19b" /> <img width="1280" height="820" alt="image" src="https://github.com/user-attachments/assets/06fcc74e-d991-4269-b939-9be8d5fbb970" />
Sign in to join this conversation.
No labels
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.

Reference
PastiiJay/klbf-lab#219
No description provided.