Repository navigation
perf(gpu): coalesce card-step staging reads behind an opt-in - #1137
Tigranchick wants to merge 1 commit into
Conversation
Group adjacent staging reads within one shadow and dependency level. Keep coalescing disabled by default. Ported-from: readmet3xt-lab/foxhound@7c53527
|
I ran the requested in-game A/B on an i5-14600KF and RTX 5070 Ti 16 GB with driver 621.24. This is I added a local diagnostics-only switch to alternate the gap within one process every 12 s. At the same camera on the daytime porch, I retained nine adjacent pairs with zero pending pipelines and matched draw counts within 6%. I excluded phases affected by D-pad input used to dismiss the idle camera.
The median staging copies per 1,000 fills were 306.9 and 307.4. Removing the single largest frame-time difference gives 53.31 ms at gap 0 and 53.36 ms at gap 4096. The captures show the same scene contents. This single scene gives no convincing performance signal. I also ran |
Summary
Port the staging-read coalescing from Foxhound
v0.2.0-pre.5. It combines adjacent reads within the same shadow buffer and dependency level, preserves 256-byte CBV alignment and records the number of staging reads per frame. The layout test packs 40 nearby reads into one copy. Original change by readmet3xt-labCoalescing is disabled by default. To try it, append
--set VICTORY_CARD_STEPS_JOIN=4096tovictory play. Use0to compare with individual reads.Validation
git diff --checkpassed.cargo xtask policypassed on 294 files.host::card_steps::testssuite passed 15 tests. The separate D3D12 ordering test passed with the gap set to0and4096. In each run, 48 of 48 logical copies went through the GPU path.63b902fwith Windows 11, RTX 4070, i7-12700KF and 32 GB RAM. Both runs used copies of the same save and prewarmed cache, with DLSS and frame generation off. Both exited at the Player screen after about 17–18 seconds with0x80000003at title offset+0x4dcbc9d. Gameplay frame time and rendering artifacts are unmeasured.Could someone with a working Series S run compare both settings in the same warmed scene and report staging copy counts, median and p95 frame times, and any visual differences?