Frame generation asks the base-frame pace guard before it runs #1357
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1357
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1357"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@HailLucifer666 on GitHub · 2026-11-28 17:57 UTC · original
HailLucifer666:port/fg-base-pace-guard→main· +3230 −24 · 21 files · 7 commits · openFrame generation is a presentation multiplier on a base that already runs. On a base whose median frame is past 50 ms (under 20 fps) generated frames halve an already-too-slow one, triple input staleness, and spend card memory the run needs — #775 ("low base FPS causing slomo effect") and #788's full-card state are this class. The design (thresholds, hysteresis, the state matrix, the false-positive controls) is
docs/plan-victory-nvidia-fg-guard.mdon the Marvisak line; this PR lands its decision core.The mechanism (
crates/victory-gpu/src/streamline/pace.rs):docs/findings.md) is why, and a mean would refuse on one long loading frame inside a healthy run.VICTORY_FRAMEGEN_FORCE=1is the documented escape: it answers yes always and still observes, so releasing it leaves a correct median behind rather than an empty ring.before_present's configuration: it can only say no — every other switch-off arm (no fresh upscaling, size or format change, focus, the submission line) is theirs, untouched. That is the false-positive control: the guard never forces anything on, and the first refusal while the menu wants frame generation is logged once.Tests and probes (
streamline::pace::tests, 7 tests): the unmeasurable ring permits; 60 ms medians refuse; 20 ms medians permit through the ring wrap; the hysteresis band holds and recovers; force overrides and still observes; median-not-mean (ten 100 ms frames among twenty 10 ms ones leave the median fast); non-monotonic stamps feed nothing. Two mutation probes ran red and were restored, recorded in the test file: the median replaced by a mean; the hysteresis band removed.Scope: FSR 3 / Streamline frame generation only — the DLSS-side configuration and the MFG unlocker path are theirs. The guard says nothing about which multiplier: that is the driver's and the menu's. The behavior claim that stays unproven until a title run (no machine here runs it): that the base-pace thresholds are right for real scenes — they are the design doc's, changeable by env-reviewed constants, and the escape switch is one variable.
Stacks on #1290 → #1294 → #1326 → #1328 → #1348 for CI. Locally: victory-gpu pace tests 7/7, both clippy
-D warningsvariants clean (including--all-features— my first draft of the wiring carried its ownlet_and_return, which is the exact lint class #1290 fixes; caught before any push).THE BUG. Three classes, all found on main today: (1) the GPU tests silently report as passed on any machine without a WARP adapter -- WarpHarness::new() returns an Option and every acquire site does `let Some(...) = ... else { return }` (indirect.rs around 894, 970, 1025 and more), so the suite's green says nothing about whether the GPU tests executed; (2) cargo reports a filter that matched no test as exit 0, so a narrowed command reads as a pass; (3) a workflow file GitHub cannot load produces no run at all, and nothing in CI reads ci.yml itself before GitHub does. The pre-commit hook was also committed 100644, which makes every POSIX clone skip it in silence (found with git ls-tree; the same defect the Marvisak line shipped and fixed). THE FIX. Port the checks our Marvisak PR #2854 lineage shipped there: `cargo xtask test-gate` counts what each test binary announced (running N tests) against what it reported (test result: ...), refuses a run that executed nothing, refuses reports it cannot attribute to a binary cargo named, and parses CI's colored output; `cargo xtask workflows` shape-checks every file under .github/workflows, including duplicate keys (yaml-rust2 keeps the later value; GitHub refuses the document outright) and typechanged entries; policy --staged now fails closed on a staged entry the index cannot serve (a gitlink, an unspellable name) instead of skipping it; the hook runs both checks and its skip message names both; the hook is committed 100755; CI builds first and runs the gated binaries after, so a red run cannot hide behind a compile. WHY NOT HYPOTHETICAL. Main is red right now (issue #1267) precisely because the suite's own account was unreadable; on our Marvisak twin the same tooling refused a green-but-empty run in CI and caught a lost hook mode a green run missed. SCOPE. The WARP skip is made loud in a follow-up, not here: turning skips into panics before we know whether CI's runner has a WARP adapter could turn CI red on machines that were honestly skipping. The first CI run of this PR answers that question. The gate parses cargo's output shapes as they exist today; a --format json run is refused rather than guessed at. PROVENANCE. Ported from our Marvisak/VIctory PR #2854 branch (staging-bounds and pipeline-library fixes from the same line landed upstream as #1658/#1660); carries that branch's second-review fixes: policy --staged fails closed like its sibling, duplicate keys are refused, typechanged staged entries are listed, and the hook's skip message names both checks.d41deda763to2fc2de2b25View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.