Allow sub-MiB VRAM buffer thresholds and rank CPU snapshots #200

Closed
github-bot wants to merge 1 commit from gh-pr/200/head into gh-pr/200/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-24 22:32 UTC · original
Kamiloj9:codex/sub-mib-card-buffers → main · +175 −15 · 1 files · 1 commits · closed without merging

Changes

  • Add the opt-in VICTORY_CARD_BUFFERS_MIN_KB threshold for VRAM-backed shadow buffers. A valid KiB override takes precedence over the existing MiB setting. The default threshold and VRAM budget are unchanged.
  • Add an opt-in CPU snapshot ranking in diagnostics builds with VICTORY_SNAPSHOT_RANK=1. It attributes declared snapshot ranges to live buffers and records their VRAM admission outcomes.

Verification

  • 22 shadow tests passed with diagnostics and 21 passed without diagnostics on the PR base. Asset policy passed. Clippy passed on the integrated checkout.
  • On an RTX 4080 SUPER with the range-lock changes from #175, the same checkpoint and a 1 MiB admission threshold, raising the card-buffer budget from 512 to 1024 MiB brought the three sampled 3D present medians from 582/733/558 ms to 395/401/303 ms.
  • At 1024 MiB, a separate 640 KiB trial reduced late CPU snapshot volume from roughly 28 to 17 MB per frame. Both runs reached 3D without a logged device loss. Present medians improved in two of three windows, the worst sampled hitch increased, and 3D appeared later. The 640 KiB configuration remains experimental.
**@⁠Kamiloj9** on GitHub · 2026-11-24 22:32 UTC · [original](https://github.com/fxceless/victory-fork/pull/200) `Kamiloj9:codex/sub-mib-card-buffers` → `main` · +175 −15 · 1 files · 1 commits · closed without merging ## Changes - Add the opt-in `VICTORY_CARD_BUFFERS_MIN_KB` threshold for VRAM-backed shadow buffers. A valid KiB override takes precedence over the existing MiB setting. The default threshold and VRAM budget are unchanged. - Add an opt-in CPU snapshot ranking in diagnostics builds with `VICTORY_SNAPSHOT_RANK=1`. It attributes declared snapshot ranges to live buffers and records their VRAM admission outcomes. ## Verification - 22 shadow tests passed with diagnostics and 21 passed without diagnostics on the PR base. Asset policy passed. Clippy passed on the integrated checkout. - On an RTX 4080 SUPER with the range-lock changes from #175, the same checkpoint and a 1 MiB admission threshold, raising the card-buffer budget from 512 to 1024 MiB brought the three sampled 3D present medians from 582/733/558 ms to 395/401/303 ms. - At 1024 MiB, a separate 640 KiB trial reduced late CPU snapshot volume from roughly 28 to 17 MB per frame. Both runs reached 3D without a logged device loss. Present medians improved in two of three windows, the worst sampled hitch increased, and 3D appeared later. The 640 KiB configuration remains experimental.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:38:08 +00:00
github-bot closed this pull request 2026-11-26 03:38:08 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.