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

Closed
Kamiloj9 wants to merge 1 commit from upstream-pr/200 into main
Kamiloj9 commented 2026-11-24 22:32:13 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Kamiloj9 on 2026-11-24T22:32:13Z.


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.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6592733125 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/200). Originally posted by [Kamiloj9](https://github.com/Kamiloj9) on 2026-11-24T22:32:13Z. --- ## 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.
upstream-sync closed this pull request 2026-11-26 01:05:52 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
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
fxceless/victory-fork!200
No description provided.