feat(menu): Frame generation by and the FPS counter name who makes the frames #2788
Closed
github-sync
wants to merge 4 commits from
github/pr/2788 into main
pull from: github/pr/2788
merge into: MagicBeanDev:main
MagicBeanDev:main
MagicBeanDev:github/pr/2893
MagicBeanDev:github/pr/2890
MagicBeanDev:github/pr/2887
MagicBeanDev:github/pr/2878
MagicBeanDev:github/pr/2875
MagicBeanDev:github/pr/2874
MagicBeanDev:github/pr/2873
MagicBeanDev:github/pr/2871
MagicBeanDev:github/pr/2756
MagicBeanDev:github/pr/2897
MagicBeanDev:github/pr/2896
MagicBeanDev:github/pr/2718
MagicBeanDev:github/pr/2842
MagicBeanDev:github/pr/2691
MagicBeanDev:github/pr/2895
MagicBeanDev:github/pr/2743
MagicBeanDev:github/pr/2765
MagicBeanDev:github/pr/2708
MagicBeanDev:github/pr/2732
MagicBeanDev:github/pr/2755
MagicBeanDev:github/pr/2817
MagicBeanDev:github/pr/2876
MagicBeanDev:release-please--branches--main
MagicBeanDev:release-please--branches--main--release-notes
MagicBeanDev:github/pr/2778
MagicBeanDev:github/pr/2888
MagicBeanDev:github/pr/2866
MagicBeanDev:github/pr/2877
MagicBeanDev:github/pr/2800
MagicBeanDev:github/pr/2829
MagicBeanDev:github/pr/2850
MagicBeanDev:github/pr/2889
MagicBeanDev:github/pr/2882
MagicBeanDev:github/pr/2860
MagicBeanDev:github/pr/2849
MagicBeanDev:github/pr/2886
MagicBeanDev:github/pr/2794
MagicBeanDev:github/pr/2840
MagicBeanDev:github/pr/2830
MagicBeanDev:github/pr/2834
MagicBeanDev:github/pr/2719
MagicBeanDev:github/pr/2742
MagicBeanDev:github/pr/2741
MagicBeanDev:github/pr/2820
MagicBeanDev:github/pr/2771
MagicBeanDev:github/pr/2859
MagicBeanDev:github/pr/2858
MagicBeanDev:github/pr/2823
MagicBeanDev:github/pr/2757
MagicBeanDev:github/pr/2769
MagicBeanDev:github/pr/2844
MagicBeanDev:github/pr/2843
MagicBeanDev:github/pr/2673
MagicBeanDev:github/pr/2855
MagicBeanDev:github/pr/2739
MagicBeanDev:github/pr/2807
MagicBeanDev:github/pr/2851
MagicBeanDev:github/pr/2789
MagicBeanDev:github/pr/2814
MagicBeanDev:github/pr/2818
MagicBeanDev:github/pr/2774
MagicBeanDev:github/pr/2772
MagicBeanDev:github/pr/2750
MagicBeanDev:github/pr/2786
MagicBeanDev:github/pr/2785
MagicBeanDev:github/pr/2782
MagicBeanDev:github/pr/2779
MagicBeanDev:github/pr/2775
MagicBeanDev:github/pr/2706
MagicBeanDev:github/pr/2766
MagicBeanDev:github/pr/2747
MagicBeanDev:github/pr/2759
MagicBeanDev:github/pr/2745
MagicBeanDev:github/pr/2740
MagicBeanDev:github/pr/2733
MagicBeanDev:github/pr/2725
MagicBeanDev:github/pr/2727
MagicBeanDev:github/pr/2728
MagicBeanDev:github/pr/2729
MagicBeanDev:github/pr/2721
MagicBeanDev:github/pr/2722
MagicBeanDev:github/pr/2715
MagicBeanDev:github/pr/2714
MagicBeanDev:github/pr/2707
MagicBeanDev:github/pr/2703
MagicBeanDev:github/pr/2705
MagicBeanDev:github/pr/2697
MagicBeanDev:github/pr/2679
MagicBeanDev:github/pr/2676
MagicBeanDev:github/pr/2669
MagicBeanDev:docs/what-hookshot-connects-to
MagicBeanDev:fix/hdr-encode-test
MagicBeanDev:fix/main-tests
MagicBeanDev:fix/play-cache-files
MagicBeanDev:perf/game-barrier-order
MagicBeanDev:feat/heap-lazy
MagicBeanDev:feat/texture-detail
MagicBeanDev:perf/astc-opaque-bc1
MagicBeanDev:fix/fs-dir-lock
MagicBeanDev:fix/framegen-native-kept
MagicBeanDev:fix/update-no-downgrade
MagicBeanDev:port/k10-gcn-f16-mirrors
MagicBeanDev:fix/framegen-mult-cap
MagicBeanDev:chore/release-as-2.1.1
MagicBeanDev:perf/pcache-load-switch
MagicBeanDev:fix/prepare-progress-log
MagicBeanDev:fix/update-closes-stale-game
MagicBeanDev:fix/hdr-scaled-sampled
MagicBeanDev:perf/first-start-preset
MagicBeanDev:perf/zero-upload
MagicBeanDev:fix/vcore-escape-2s
MagicBeanDev:test/fake-gh-atomic
MagicBeanDev:perf/batch-idle-flush
MagicBeanDev:test/finish-stub-a
MagicBeanDev:chore/record-2.1.0
MagicBeanDev:fix/main-red-tests
MagicBeanDev:fix/test-display-startup-driver-cache
MagicBeanDev:feat/mesh-shader-mode
MagicBeanDev:fix/menu-probes-at-startup
MagicBeanDev:fix/fps-counter-classic
MagicBeanDev:fix/test-log-batch-flake
MagicBeanDev:fix/narrow-screen-hud
MagicBeanDev:ci/prereleases
MagicBeanDev:release/v2.0.15
MagicBeanDev:hotfix/v2.0.15
MagicBeanDev:fix/present-ahead-replay
MagicBeanDev:release/v2.0.13
MagicBeanDev:fix/bracket-paths-2013
MagicBeanDev:fix/hdr-overlays-2013
MagicBeanDev:fix/fps-counter-scale-2013
MagicBeanDev:fix/stick-seen-at-rest
MagicBeanDev:hotfix/menu-fits-screen
MagicBeanDev:fix/f1-always-opens-menu
MagicBeanDev:fix/ini-keep-lines
MagicBeanDev:claude/cranky-pike-7cf247
MagicBeanDev:perf/texture-answer-flat
MagicBeanDev:fix/stamp-test-modules
MagicBeanDev:fix/appimage-fonts
MagicBeanDev:fix/display-awake
MagicBeanDev:release/v2.0.12
MagicBeanDev:fix/discord-windows
MagicBeanDev:rc/v2.0.12-tests
MagicBeanDev:fix/dlss-keep-feature
MagicBeanDev:rc/v2.0.12
MagicBeanDev:button-icons
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
autorelease: pending
autorelease: tagged
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
github_actions
Pull requests that update GitHub Actions code
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
question
Further information is requested
testing wanted
wontfix
This will not be worked on
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
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
MagicBeanDev/Hookshot!2788
Loading…
Reference in a new issue
No description provided.
Delete branch "github/pr/2788"
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?
With Frame generation by at Auto, nothing on screen said whether NVIDIA DLSS Frame Generation or the built-in interpolation made the frames. It falls back to the built-in one silently: without
nvngx_dlssg.dll(v2.1.0 and the current nightly copy only DLSS's runtime), without a temporal Upscaler, in the game's own menus, or at Frame generation's Auto. A player on an RTX 5060 Ti couldn't tell DLSS FG wasn't running until the log saidnot available (0xbad00004).What it shows
Auto: DLSS FG,Auto: Built-in FGorAuto: FSR 3.1 FG(the FSR 3.1 interpolation at 2x). The choice itself is nowBuilt-in FG. Off:Auto, as before.Not DLSS FG now: DLSS Frame Generation makes a fixed 2x to 8x, not Frame generation's Auto., or no picture from a temporal Upscaler (also the game's menus),nvngx_dlssg.dll/ an RTX 40 missing, more frames than its runtime makes, NGX refusing. Every line it can have is a variant, so the help box keeps its height.game 60; nowBase 60, DLSS FG(orFSR 3.1 FG,Built-in FG). "Base" for the game's own rate, the name frame generation tools use.One name per engine, " FG", on the row and the counter. When #2665 adds FSR 4 as a frame generator,
FSR 4 FGfits the same way (FgMakerandframegen_maker_name).How
vk_framegen.cpp:framegen_maker(). Eachframegen_recordnotes who made its set (DLSS-G'sdlss_fg_frames,fsr3fi_frame, the renderer's own passes, or none) in a ring of the last 64 sets; the menu's thread reads the counts and takes the most. Nothing noted for half a second (Off): none.vk_dlss.cpp:dlss_fg_skip(), the reason as a code (FgSkipinvk_dlss.h). Each return ofdlss_fg_framesthat leaves the set to the renderer's own names its reason (skip(FG_SKIP_...)); a set DLSS-G makes clears it; a set with nothing to blend from (a loading hitch) leaves it as it was. The build without the NGX SDK says so.vk_menu.cpp:tx_framegen_by,hn_framegen_by(the reasons' texts inframegen_skip_text, so they can be translated) and the FPS counter's line.menu_i18n.h: every new text in all 13 languages (Auto: %s,Base %.0f,Base %.0f, %s,Built-in FG,Not DLSS FG now: %sand each reason);Built-inandgame %.0f, no longer written, let go. Product names (DLSS FG,FSR 3.1 FG,Upscaler) stay as the tables already keep them.i18n::tr: it draws with its ownTab, pastui::'s translation, so main'sgame %.0fwas never shown translated. Its buffer is 96 bytes, for UTF-8.readme.md: the row and the counter.test_dlssg_runtimefollowed the new returns and now checks that the reasons are named and cleared;present_source_crop_testchecks the maker noted for FSR 3.1's set and for the built-in fallback.Screenshots
3440x1440, Fire Temple. Frame generation 2x: the row and the counter say DLSS FG.
Frame generation Auto: the built-in one makes the frames, and the line says why.
In Polish (top, 2x) and Russian (bottom, Frame generation Auto): the counter's line and the row's line translated.
Testing
In game, native Windows 11, RTX 5060 Ti 16 GB, driver 617.42, a build of this branch on main (
51da046) with NVIDIA's SDK andnvngx_dlssg.dll310.9.16, DLSS Quality, a save in the Fire Temple. The row's text read through the control bridge (option get frame_generation_by), the screenshots of the window:Auto: DLSS FGBase 63, DLSS FG, 126-129 FPSAuto: DLSS FGAuto: Built-in FG+ whyBase 71, Built-in FG, 240 FPSAuto: Built-in FGAuto: Built-in FGBuilt-in FGAutoNo fault through 6x, 4x, 2x, Auto and Off. Menu language Polish:
Auto: Wbudowany FG,Bazowe 63, DLSS FG,Teraz bez DLSS FG: ...; Russian:База 69, Встроенный FGand its line. The log agrees:of the last 600 presents 600 made by DLSS-Gat 2x.Tests:
test_menu_i18npasses (it failed on the first push: the tables still hadBuilt-inandgame %.0f). The checks that readvk_menu.cpp,vk_dlss.cpp,vk_framegen.cpp,menu_i18n.hor the readme, run here: all pass but one;test_input_backgroundfails the same on main on this PC (it was in my earlier PRs' list of machine-only failures). A row for the run is indocs/tested-configurations.md.Not covered: FSR 3.1 FG on screen (no AMD GPU here; its maker is checked in
present_source_crop_test), the reasons for an RTX 30 card or a missing runtime on screen (read from the code paths, and the missing runtime from this PC's earlier log). The race when stepping the multiplier up is #2658's, not touched here.🤖 Generated with Claude Code
I merged this into current main and ran every check that reads vk_menu.cpp, vk_dlss.cpp, vk_framegen.cpp or menu_i18n.h (33 checks, test_menu_i18n, test_dlssg_runtime and present_source_crop_test among them). All pass, and CI is green.
The threading is fine. note_maker only runs on the recording thread, at vk_framegen.cpp:898 and in the Auto branch. The ring itself isn't shared, and the menu thread only reads the relaxed maker_count atomics and the timestamp. Each early return of dlss_fg_frames now names its reason, and the !blend and closed returns deliberately leave the old one, which matches the description. The screenshots and the table of cases on an RTX 5060 Ti cover what a player sees.
One heads-up for the maintainers: this conflicts with #2665 (FSR 4 / FSR 3.1 as Frame generation by choices) in vk_framegen.cpp, vk_menu.cpp, readme.md and tests/test_framegen_preset.py. Whichever lands second needs a rebase. FgMaker and framegen_maker_name are already shaped for an "FSR 4 FG" entry, so it should be mechanical. It merges cleanly with #2658.