Repository navigation
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
Open
PiloteCode wants to merge 1 commit into
Conversation
… measure inside one run what frame generation costs the rendered frame (diagnostics)
Owner
|
Read-only security & triage review on
|
Owner
|
Automated triage for the maintainers (not an approval). Verdict: Review SummarySmall, self-contained diagnostics addition (+21 lines in Verification
No issues found; looks ready as a merge candidate pending maintainer review. Generated with Antigravity CLI ( |
Owner
|
Allowlist & Architect Deep Review (
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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