Comfort stack: FG prepare grace, submit-fast opt-in, Sariel 2060 SUPER profile #3863

Closed
github-bot wants to merge 7 commits from github-bot/gh-3863 into main AGit
Owner

@⁠sarielsaz on GitHub · 2026-11-30 09:36 UTC · original
sarielsaz:sariel/fps-root-track → main · +1258 −117 · 10 files · 7 commits · closed without merging

Summary

  • Keep FSR 3 frame generation armed for 1–2 presents after a missed depth/motion prepare (VICTORY_FG_PREPARE_GRACE, default 2) so fast camera pans on RTX 20 / CPU-bound submit do not fall back to base FPS; structured switched log fields for diagnosis.
  • Opt-in submit-thread speedups from the measured parts of #1925 (VICTORY_SUBMIT_FAST, SUBMIT_FAST_2, SWEEP_ASYNC, AHEAD_SEARCH); GUARDS_SHARD and picture-risk pieces left out. Later: SUBMIT_FAST_3 (list recycle + card_steps FillTo / plan_with slices).
  • Close 0x80070057 / #2237: cherry-pick of NVIDIA-fork #2305, then follow-up — move host list/epoch tracking clear into State::bind (not only prepare_for) so dispatches and indirect compute also re-bind root signatures/heaps on a fresh or reset host list. VICTORY_ROOT_CACHE stays on — no =0 dodge.
  • Add scripts/play-sariel.ps1 and docs/sariel-rig-fps.md for Ryzen 7 2700X + RTX 2060 SUPER 8 GB + 64 GB RAM (Series S / 540 / DLSS Perf / FSR ×2; room 72; POOL_SMALL; Reflex boost; CCX affinity).

Test plan

  • cargo clippy -p victory-gpu --all-targets -- -D warnings / cargo test -p victory-gpu --locked (or CI)
  • On 8 GB + FSR FG ×2: combat + three rapid 360° pans — FG stays on across short missed prepares; check log FSR 3 frame generation switched (grace_hold / prepared)
  • A/B VICTORY_POOL_SMALL=0 if foliage flashes; -NoSubmitFast2 / -NoSubmitFast3 if pan microstutters
  • Confirm ROOT_CACHE on: no command list did not close / Close 0x80070057 after list reset (draw and compute-heavy scenes)
  • Unset all new switches → stock behaviour unchanged
**@⁠sarielsaz** on GitHub · 2026-11-30 09:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3863) `sarielsaz:sariel/fps-root-track` → `main` · +1258 −117 · 10 files · 7 commits · closed without merging ## Summary - Keep FSR 3 frame generation armed for 1–2 presents after a missed depth/motion prepare (`VICTORY_FG_PREPARE_GRACE`, default 2) so fast camera pans on RTX 20 / CPU-bound submit do not fall back to base FPS; structured `switched` log fields for diagnosis. - Opt-in submit-thread speedups from the measured parts of #1925 (`VICTORY_SUBMIT_FAST`, `SUBMIT_FAST_2`, `SWEEP_ASYNC`, `AHEAD_SEARCH`); `GUARDS_SHARD` and picture-risk pieces left out. Later: `SUBMIT_FAST_3` (list recycle + card_steps FillTo / plan_with slices). - Close `0x80070057` / #2237: cherry-pick of NVIDIA-fork #2305, then **follow-up** — move host list/epoch tracking clear into `State::bind` (not only `prepare_for`) so **dispatches and indirect compute** also re-bind root signatures/heaps on a fresh or reset host list. `VICTORY_ROOT_CACHE` stays **on** — no `=0` dodge. - Add `scripts/play-sariel.ps1` and `docs/sariel-rig-fps.md` for Ryzen 7 2700X + RTX 2060 SUPER 8 GB + 64 GB RAM (Series S / 540 / DLSS Perf / FSR ×2; room 72; POOL_SMALL; Reflex boost; CCX affinity). ## Test plan - [ ] `cargo clippy -p victory-gpu --all-targets -- -D warnings` / `cargo test -p victory-gpu --locked` (or CI) - [ ] On 8 GB + FSR FG ×2: combat + three rapid 360° pans — FG stays on across short missed prepares; check log `FSR 3 frame generation switched` (`grace_hold` / `prepared`) - [ ] A/B `VICTORY_POOL_SMALL=0` if foliage flashes; `-NoSubmitFast2` / `-NoSubmitFast3` if pan microstutters - [ ] Confirm `ROOT_CACHE` on: no `command list did not close` / Close `0x80070057` after list reset (draw **and** compute-heavy scenes) - [ ] Unset all new switches → stock behaviour unchanged
The skip that keeps SetGraphicsRootSignature and friends off a host list
that already has what a pipeline needs tracked what the list had in
State::host_roots and host_pipeline. That tracking was valid for one
recording of one host list, but nothing cleared it when another host list
began a recording, or the same list was reset and began one: with 815f58c
sharing root signature objects between pipelines, a pipeline whose
signature the previous recording bound then skipped the set on a list
without one, and the driver refused the list at Close (0x80070057).

The tracking is now anchored to the host list and its epoch, which
HostList::reset renews for each new recording: a change clears it, and
the next draw sets the signature, heaps and pipeline again. The skip
stays for the recording it was made for, so pipelines that share a
signature still record one set between them.

Fixes #2237

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
Keep FSR FG armed across 1-2 missed prepares on camera pans, document the rig and switches in docs/sariel-rig-fps.md, and ship play-sariel.ps1 (room 76, POOL_SMALL, Reflex boost, SUBMIT_FAST*).

Co-authored-by: Cursor <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 09:40:23 +00:00
Batch list recycle and skip Refresh copies in card_steps behind VICTORY_SUBMIT_FAST_3; document Ruler A/B (Reflex/FG off first), create-time CCX affinity via cmd /AFFINITY FF, and keep Reflex boost for the final comfort pass only.

Co-authored-by: Cursor <[email protected]>
Capture the surgical #1298 checklist (plan_with, FillTo cache, record, slot batch) and explicitly skip bulk coalesce / HashSet already on tip.

Co-authored-by: Cursor <[email protected]>
FillTo cache (per does_of), plan_with early-outs, record last-raw; launch with FG x2, Reflex boost, create-time Affinity FF for the 2700X post-mission cliff.

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>

#2305 only re-anchored on draws; dispatches and indirect compute skipped Set*RootSignature on a fresh/reset list. ROOT_CACHE stays on — no dodge.
Author
Owner

@⁠sarielsaz on GitHub · 2026-11-30 11:24 UTC · original

Note for maintainers (Close 0x80070057 / #2237)

Commit bcb57f40 on this PR branch.

Problem: #2305 cleared stale host_roots / heaps / pipeline tracking only in State::prepare_for (draw / mesh path). Compute dispatch and indirect DISPATCH call bind directly, so after a new or reset host list they could still skip Set*RootSignature / SetDescriptorHeaps when VICTORY_ROOT_CACHE shared signatures made the skip fire across PSOs. Driver then refused the list at Close (0x80070057). Turning VICTORY_ROOT_CACHE=0 only dodges the bug.

Fix: re-anchor list address + HostList::epoch at the start of State::bind (shared by draws and dispatches). Also zero host_list / host_rests in State::reset and replay. Root cache stays default-on.

Where: crates/victory-gpu/src/draw.rs (bind, reset, replay). Docs note in docs/sariel-rig-fps.md.

Happy to trim the Sariel launcher/docs if you only want the GPU/runtime pieces.

**@⁠sarielsaz** on GitHub · 2026-11-30 11:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3863#issuecomment-7276977227) ### Note for maintainers (Close `0x80070057` / #2237) Commit `bcb57f40` on this PR branch. **Problem:** #2305 cleared stale `host_roots` / heaps / pipeline tracking only in `State::prepare_for` (draw / mesh path). Compute `dispatch` and indirect `DISPATCH` call `bind` directly, so after a new or reset host list they could still skip `Set*RootSignature` / `SetDescriptorHeaps` when `VICTORY_ROOT_CACHE` shared signatures made the skip fire across PSOs. Driver then refused the list at `Close` (`0x80070057`). Turning `VICTORY_ROOT_CACHE=0` only dodges the bug. **Fix:** re-anchor list address + `HostList::epoch` at the start of `State::bind` (shared by draws and dispatches). Also zero `host_list` / `host_rests` in `State::reset` and `replay`. Root cache stays default-on. **Where:** `crates/victory-gpu/src/draw.rs` (`bind`, `reset`, `replay`). Docs note in `docs/sariel-rig-fps.md`. Happy to trim the Sariel launcher/docs if you only want the GPU/runtime pieces.
github-bot closed this pull request 2026-12-01 18:51:07 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:48 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3863#issuecomment-7321569196) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3863
No description provided.