feat(gpu/streamline): VICTORY_FRAMEGEN_OFF as a VICTORY_AB switch, to measure inside one run what frame generation costs the rendered frame (diagnostics) #333
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!333
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-333"
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?
@PiloteCode on GitHub · 2026-12-02 12:28 UTC · original
PiloteCode:pr/framegen-ab→main· +21 −0 · 1 files · 1 commits · openSummary
Frame generation's cost on the rendered frame is hard to measure across runs: the scene, the crowd and the camera differ from run to run by more than the effect. Named in
VICTORY_AB,VICTORY_FRAMEGEN_OFFturns frame generation (DLSS's or FSR 3's: both readframegen_wanted()) off in the phases where that switch is on and leaves it as asked in the others, so one run measures both, place for place. Nothing changes outsideVICTORY_ABor in release builds.Changes
crates/victory-gpu/src/streamline.rs:framegen_off_by_phase()(diagnostics only;falseotherwise), checked first inframegen_wanted(). 21 lines.What we measured with it (our fork, RTX 5090)
Run big-fg-1: Series X, 2560x1440 output, DLSS quality, DLSS frame generation 4x, a busy crowded street area;
VICTORY_AB=10,VICTORY_FRAMEGEN_OFF,VICTORY_SUBMIT_FRAMES, 46 phases of 10 s (24 pairs), drift fitted.So on that card 4x costs the rendered frame about 2 %: its ~12 ms present call on our submitting thread is mostly a wait that happens anyway (1-2 ms without FG). Same run, same method:
VICTORY_SUBMIT_FRAMES=2gave median -1.4 ms but p90 +9.3 +- 1.2 ms (left at 1).Rig Specs / Settings
Verification
main3230974; offline,--locked, toolchain 1.98.1-msvc):cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test(not run by us on this tree)cargo xtask policy(not run; 21 lines in one file)Limits
github-bot referenced this pull request2026-12-02 12:52:43 +00:00
@Androtim on GitHub · 2026-12-02 12:49 UTC · original
Read-only security & triage review on
34a8ac8a(external authorPiloteCode— awaiting manual owner approval per repository security allowlist policy; not built/executed locally and not auto-merged):crates/victory-gpu/src/streamline.rs(+21/-0); noCargo.toml,build.rs,.github/workflows/, binaries, shell/network calls, or clean-room violations.VICTORY_ABhelper (VICTORY_FRAMEGEN_OFF) with zero effect in plain--releasebuilds. Left open for manual owner approval.@Androtim on GitHub · 2026-12-02 13:06 UTC · original · edited 2026-12-02 14:08 UTC
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):passingReview Summary
Small, self-contained diagnostics addition (+21 lines in
crates/victory-gpu/src/streamline.rs) that hooksVICTORY_FRAMEGEN_OFFinto the existingVICTORY_ABA/B phase framework.Verification
framegen_off_by_phase()cachescrate::ab::bit("VICTORY_FRAMEGEN_OFF")in aOnceLock<Option<u32>>and queriescrate::ab::on, matching thepub(crate) fn bit(&str) -> Option<u32>andpub(crate) fn on(u32) -> boolsignatures incrates/victory-gpu/src/ab.rs(L38–L45).0fromframegen_wanted()feeds directly into the existing live-toggle path inpresent_begins(crates/victory-gpu/src/streamline.rsL1786–L1831), which callsset_optionswithDLSSG_RETAIN_RESOURCES_WHEN_OFFwhenon != calls.framegen_onand resetsFG_PERto1when off. Transition frames are naturally excluded from phase stats by the 1-second warmup inab::presented(ab.rsL88).falsewhenfeature = "diagnostics"is disabled, and is a no-op in diagnostics builds unlessVICTORY_FRAMEGEN_OFFis explicitly listed inVICTORY_AB.No issues found; looks ready as a merge candidate pending maintainer review.
Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-12-02 13:18 UTC · original
Allowlist & Architect Deep Review (
PiloteCodeis now on the trusted allowlist; CI46881394832is GREEN):+21/-0diagnostics-onlyVICTORY_ABhelper (VICTORY_FRAMEGEN_OFF); compiles tofalsewithout--features diagnostics(zero impact on plain--releasebuilds). Ready to merge once diagnostics smoke / merge wave is approved.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.