feat(vk): Frame generation's Auto runs DLSS FG at the most frames the display shows at the game's cap #2795

Open
Jiro113 wants to merge 19 commits from Jiro113/Longshot:fix/auto-framegen-dlssg into main
Contributor

Summary

On an RTX 40 or 50 with Frame generation at Auto and Frame generation by at DLSS FG, main never lets NVIDIA DLSS
Frame Generation make Auto's frames: DLSS-G only makes fixed multipliers, so Auto falls back to the renderer's own (a
frame for each refresh, by FSR 3.1 or the built-in one) and the row says "Auto (FSR 3.1 FG)". A player who picked DLSS FG
gets FSR 3.1's frames unless they also pick a Fixed multiplier by hand.

To see it on main: RTX 40, a 240 Hz display, DLSS on, Frame generation Auto, by DLSS FG, frame rate cap 60. The row reads
"Auto (FSR 3.1 FG)", the log says fsr3fi: of the last 600 presents 600 made by FSR 3.1 and the swapchain is mailbox.

This changes Auto, at DLSS FG and once NGX has answered (dlss_fg_most > 0), to run DLSS-G at a fixed multiplier: the
highest M from 2 to the runtime's most + 1 with cap × M ≤ refresh × 1.005 (2x at 60 fps from 120 Hz; on an RTX 50, 3x
from 180 Hz and 4x from 240 Hz; Uncapped takes 2x from 120 Hz). Where 2x does not fit (a 60 Hz display, or cap 144 at
240 Hz), Auto stays the renderer's own, as today, and the Frame generation by row says why. A new value is taken once it
has held for 2 s, so a refresh rate that comes and goes does not remake the sets and the swapchain each time. At that
multiplier Auto is a fixed multiplier everywhere that counts: framegen_now() gives it, so the sets, the pacing, DLSS-G's
depth and motion (dlss_fg_inputs) and V-Sync Auto's FIFO are a Fixed one's. The row reads "Auto (DLSS FG)". NVIDIA
Streamline is unchanged: it starts only for a Fixed multiplier saved, and Auto chosen while it runs turns it off until
the next start, as on main. In a build with Streamline, Auto saved runs NGX's DLSS-G as above (Auto through Streamline
is a later pull request).
While Auto is the renderer's own because DLSS FG's 2x does not fit, DLSS-G's feature stays made for the way back, so a
change of the cap or the display between the two makes no NGX feature on the frame's thread (BeanBot's L2), once Auto
itself has run DLSS-G since it was chosen; Off, a Fixed multiplier, a Fixed one's feature when Auto comes at 1 and DLSS
FG making no frames let it go as before. Auto reads the frame rate cap the menu publishes under its lock, not the row
(L1), and the display's refresh is read for Auto alone.
RX_VK_FG_AUTO_DLSS=0 keeps main's Auto.

On main 462919343, where #2738 and
#2183 are merged. See
#1687.

Read first: gpu/vk/framegen_rows.h (auto_dlss_multiplier, auto_settle), gpu/vk/vk_framegen.cpp
(framegen_now, framegen_auto_dlss_update, framegen_auto_dlss_keeps), gpu/vk/vk_replay.cpp (do_present's
dlss_fg_idle line), then gpu/vk/menu/framegen.cpp.

Testing

Tested: Windows 11, RTX 4090, NVIDIA 621.24, a 5120x1440 240 Hz VRR display, SDR; a pack on the shared base with
NGX (LONGSHOT_NGX_SDK), through the PC's job queue, the control bridge, the kokiri-start save.

  • DLSS on, Frame generation Auto, by DLSS FG, cap 60: the row reads "Auto (DLSS FG)"; the log says NVIDIA DLSS: NGX started, vk: frame generation: Auto by DLSS FG at 2x (240.00 Hz, cap 60), vk: V-Sync Auto with DLSS Frame Generation at 2x: FIFO, the swapchain is FIFO with 6 images, and of the last 600 presents 600 made by DLSS-G.
  • Cap 60 → 144 → 120 → Uncapped → 60, in the game: at 144 Auto by the renderer's own (DLSS FG's 2x does not fit 240.00 Hz at cap 144), the feature let go, mailbox, the row "Auto (FSR 3.1 FG)"; at 120 back to 2x and FIFO; Uncapped and 60
    stay at 2x (no line, as expected). Each change follows 2 s after the cap's.
  • A game menu (PLUS) open: 303 of 600 presents without DLSS's input (no 3D drawn), as with a Fixed 2x.
  • RX_VK_FG_AUTO_DLSS=0: "Auto (FSR 3.1 FG)" at every cap, main's log (mailbox, no "Auto by DLSS FG" line).
  • Streamline (a pack built with LONGSHOT_SL_SDK, Streamline v2.14.16's files beside longshot.exe), cap 60, on a
    2560x1440 120 Hz display (the log's screen 2560x1440 at 120 Hz), one run of each:
    • Fixed 2x by DLSS FG saved: vk: Streamline started for DLSS Frame Generation, then Streamline DLSS Frame Generation: on, 2x. Auto set in the game: Streamline DLSS Frame Generation: off (the Frame generation rows do not ask for it), the row reads "Auto" (not "Auto (DLSS FG)"), no Auto by DLSS FG line, and no frame generation until
      the next start (3960 presents, 60.0 fps). With RX_VK_FG_AUTO_DLSS=0, the same lines: main's.
    • Auto saved: Streamline is not started, Auto by DLSS FG at 2x (120.00 Hz, cap 60), FIFO with 6 images, and of the last 600 presents 600 made by DLSS-G (NGX's). With RX_VK_FG_AUTO_DLSS=0: FSR 3.1 in mailbox, main's.
    • After the Streamline files were taken away and the pack rebuilt with NGX only: Auto at 2x by NGX again, 600 of 600.
  • The screen, full screen on the 240 Hz display with the game in front, through PresentMon: 141 runs, of which 70 ran
    DLSS-G (Auto and Fixed 2x), all Hardware: Independent Flip (Measurements, "The frames on the screen").
    • At 240 Hz VRR the intervals of Auto and of the Fixed 2x are off the 4.17 ms grid (G-SYNC paces them).
    • With the refresh fixed (240 Hz at cap 90, 120 Hz at cap 60), Auto keeps DLSS-G at 2x and FIFO.
  • After the rebase onto #2738 (head 0bc29b961, the log's longshot v3.2.0-199-g0bc29b961; a pack on the shared base
    22d0d200 with NGX), on a 2560x1440 120 Hz virtual display (the log's screen 2560x1440 at 120 Hz), full screen, the kokiri-start save teleported to Hyrule Field, Frame generation
    Auto, by DLSS FG, cap 60, one run: NVIDIA DLSS: NGX started, vk: frame generation: Auto by DLSS FG at 2x (120.00 Hz, cap 60), vk: V-Sync Auto with DLSS Frame Generation at 2x: FIFO, the swapchain FIFO with 6 images, of the last 600 presents 600 made by DLSS-G, and a clean exit.
  • The screenshots (in #2795 (comment)): the Insert menu's Graphics tab on the same virtual display, full screen, from
    kokiri-start, DLSS, Frame generation Auto, by DLSS FG, cap 60, the menu opened and walked by RX_VK_MENU_SCRIPT and
    the display grabbed between two presses. main is the shared base's runtime, 22d0d200 (main's commits since then add
    rows to the Gameplay and Audio tabs, none to Graphics): Frame generation reads "Auto (FSR 3.1 FG)" and its log says
    of the last 600 presents 600 made by FSR 3.1. Here (0bc29b961): "Auto (DLSS FG)" with its help line, Frame
    generation by says DLSS FG makes the frames, and the log says Auto by DLSS FG at 2x (120.00 Hz, cap 60) and of the last 600 presents 600 made by DLSS-G. Both runs exited cleanly.
  • After BeanBot's review, with L1 and L2's fixes and the cold review's, rebased onto main cb0a27630 (head 87357e9b3,
    the log's longshot v3.2.0-171-g87357e9b3; a pack on the shared base a425fa2a with NGX), on the 2560x1440 120 Hz
    virtual display, full screen, sound off, Hyrule Field, Frame generation Auto, by DLSS FG, cap 60 → 144 → 60 → 144 → 60
    → 144 (10 s each), then quit at 144, one run (not a measurement): NVIDIA DLSS: NGX started, DLSS-G's feature made
    once (feature made for 2560x1440 from 1707x960 inputs) and let go only for the exit (DLSS Frame Gen (NGX): let go for the exit, while Auto was the renderer's own), of the last 600 presents 599 made by DLSS-G after the returns to
    2x, the longest frame within 6 s of each change 21.7 to 33.5 ms, no Vulkan error and a clean exit (code 0). The same
    run at 272f5f906, before the cold review's fixes: 19.5 to 29.6 ms.
  • Rebased since onto main 462919343 (head f5af8ffd1): every code commit is the same in the range-diff, the guide's
    record alone conflicted, and this head's renderer builds through the queue; the run above was not repeated.
  • L2 before the rebase, the same run with 3 changes each way: at 04159c082 the longest frame within 6 s of each change
    20 to 38 ms, at 0bc29b961 (the same base) 123 to 138 ms into DLSS-G and 64 to 78 ms out.
  • mise run test (tests/run_all.py --changed origin/main, Windows, llvm-mingw) at this head (f5af8ffd1): 252
    passed, 15 failed, 12 skipped. The 15 fail on main 462919343 too, run alone there with the same checks:
    test_bug_report, test_crash_record, test_crt_options, test_dev_ab, test_framegen_resources and
    test_present_source_crop (drain_framegen_sets not declared in their fixtures), test_input_background,
    test_input_movie, test_keyboard_menu_option, test_keyboard_option, test_linux_pressure, test_menu_keys,
    test_option_ids, test_switch_table and test_upscaler_round_trip. Every other frame generation and DLSS check
    passes. The 12 skipped need Linux or a tool this PC lacks (spirv-val, glslang).
  • test_framegen_auto_dlss compiles and runs the rule, the 2 s hold, the update and the row's reason, with
    RX_VK_FG_AUTO_DLSS unset, 1 and 0; it fails with the slack widened to 1.006 and with the update moved after
    do_present's first framegen_record (both tried). The three places that read Auto's multiplier (framegen_record's
    rate, init's log line, dlss_fg_inputs' guard) are text checks, not run. Since the review it also compiles the real
    fps_cap_now, publish_fps_cap and menu_fps_cap with a row that counts the reads made without menu_mu (L1), and
    do_present's own dlss_fg_idle line with framegen_auto_dlss_keeps (L2): each failed at the commit before its fix
    and passes with it, with clang++ (llvm-mingw's g++ is clang too: GCC is left to CI); with L2's key line broken it
    fails again. After a cold review of those fixes it also checks that a Fixed multiplier's feature is not kept at Auto's
    1, that Off and Fixed read no refresh, and that the control bridge's setting publishes the cap: it failed at the commit
    before and passes since, and each of the three fixes broken alone fails it again.

Still to test:

  • Windows, RTX 50, 240 Hz: cap 60, expecting Auto by DLSS FG at 4x and the row "Auto (DLSS FG)"; cap 120, expecting
    2x after 2 s; at 144 Hz cap 60, expecting 2x (@Beanstalk)
  • Windows, RTX 30: Frame generation Auto, expecting it to stay "Auto (FSR 3.1 FG)" as on main, with no "Auto by DLSS FG"
    line (@Beanstalk)
  • Windows, AMD and Intel: Frame generation Auto, expecting main's log and row (@Beanstalk)
  • Linux, RTX 40 (NGX): Frame generation Auto, by DLSS FG, cap 60 at 120 Hz or more, expecting Auto by DLSS FG at 2x and
    DLSS-G making the presents (@Beanstalk, or dazemc by hand)
  • Windows, RTX 40, a 60 Hz display: Auto, expecting "Auto (FSR 3.1 FG)" and the row's line that DLSS FG's 2x does not fit
    60 Hz at cap 60 (by hand)
  • Windows, RTX 40: the game lost the GPU (VK_ERROR_DEVICE_LOST) at its exit in 2 of 61 Auto by DLSS FG runs above,
    after DLSS Frame Gen (NGX): let go for the exit (Measurements, "The frames on the screen"); a Fixed 2x by DLSS FG
    on main, quit the same way 30 times, expecting no loss, or the same rate (by hand)
  • Windows, RTX 40: the latency on the screen (PresentMon's display times joined to the hand-over), Auto against a Fixed
    2x and main's Auto (by hand, from the captures above)
  • Windows, RTX 40, the refresh fixed (240 Hz at cap 90, 120 Hz at cap 60), full screen: Auto against a Fixed 2x by DLSS
    FG through PresentMon, expecting the same spread, as at 240 Hz VRR (by hand)
  • Windows, RTX 40, 144 Hz fixed (no VRR), cap 60, full screen: Auto against a Fixed 2x by DLSS FG through PresentMon,
    expecting 120 frames a second and the same spread (by hand)
  • Windows, RTX 40: main's Auto (FSR 3.1, mailbox) with Frame generation Off, expecting PresentMon to say whether a
    mailbox swapchain is composed (Composed: Copy with GPU GDI) on this driver without frame generation too (by hand)

Measurements

Verdict: at DLSS FG's 2x, Auto runs as a Fixed 2x does: every number within the spread of a Fixed 2x by DLSS FG, in a
light and a crowded area. Against main's Auto (FSR 3.1 at 4x), 120 presents a second instead of about 238, a steadier
call cadence, about 1.5 ms less wait before each present, 0.6 to 0.8 ms less GPU time, and about 0.5 to 0.6 GB more
video memory (DLSS-G's). On the screen (below), Auto's presents are flipped by the driver (Independent Flip) and paced
by G-SYNC, as a Fixed 2x's are, and their intervals spread as a Fixed 2x's do. main's Auto is composed by Windows on the
refresh grid, a different path to the screen, so its spread is given as information, not as the bar.

Setup: Windows 11, RTX 4090, NVIDIA 621.24, 5120x1440 at 240 Hz (VRR), SDR. A pack of this head (8658e99e9) on the shared
base (main 22d0d200 + #2183), NGX. DLSS, Render resolution 67 %,
Frame generation Auto, by DLSS FG, cap 60, V-Sync Auto, Reflex off. Each run one --mode timing job, from the
kokiri-start save teleported to the scene, warmed up until no frame waits for a pipeline, then 60 s measured; three
arms interleaved (order reversed every other round), 5 runs each, the median. "Before" is main's Auto, by
RX_VK_FG_AUTO_DLSS=0 in the same pack (its log is main's); "Fixed 2x" is RX_VK_FRAMEGEN_MULT=2, what Auto must match.
Base fps, 1 % low and p99 from the frame trace; GPU time from the log's vk: GPU time lines (the game's own passes,
DLSS-G's work not in them); the wait and the cadence from RX_VK_FG_LATENCY_LOG (at the present call, not on the
screen); video memory from the log's last vk: budget: VRAM line (by the driver, DLSS-G included). Every run logged
NVIDIA DLSS: NGX started, and in the measured stretch 600 of 600 presents made by DLSS-G (Auto, Fixed 2x) or by FSR 3.1
(main's Auto); no compile or encode ran beside them.

Rebased onto main 01d6878b3 and #2738 since: none of main's 25
commits since 22d0d200 touches frame generation, DLSS-G or the present path (vk_replay.cpp reads two audio options
atomically, a Pause in background row off by default adds one call a frame, a Quadro M2000M workaround is Linux only);
#2183's code is the same line for line, and #2738 changes the menu's text, so the numbers above still hold. 8658e99e9,
the head measured, is this change before that rebase: the rebase moved its menu commit onto #2738's wording (the menu's
text and lines only), and the commits since change only tests, docs and the guide's records. Rebased again onto
main 450e63b82 (#2738 and #2183 merged): the range-diff is the same for every code commit (only three docs commits
differ, by their conflicts), and main's 17 commits since touch neither vk_framegen.cpp nor vk_dlss.cpp; in
vk_replay.cpp they change the simulated turf's submits, not do_present, and in vk_dlssg.cpp comments only. Then
onto main cb0a27630 (#2821, #2819), with no conflict: the range-diff is the same for every commit, and those two
change AMD's texture and device paths and the measure skill's docs. Then onto main 462919343 (#2183 merged, #2833):
only the guide's record conflicted, and every code commit is the same in the range-diff; #2183's changes to
vk_replay.cpp and vk_dlssg.cpp retire the present probe at the window's close and at NVIDIA Streamline's, not the
NGX DLSS-G path this change touches, and #2833 is the builder's.

Baseline: main's Auto is this head with RX_VK_FG_AUTO_DLSS=0, whose log is main's (FSR 3.1, mailbox): the same pack, so only the switch differs. The Fixed 2x column (RX_VK_FRAMEGEN_MULT=2) is what Auto must match.

Hyrule Field (light):

Before: main's Auto @ 8658e99e9 After: this PR, Fixed 2x @ 8658e99e9 After: this PR @ 8658e99e9
Who makes the frames FSR 3.1, 4x DLSS-G, 2x DLSS-G, 2x
Base fps 60.00 60.00 60.00
1 % low (fps) 51.95 52.11 51.89
p99 frame (ms) 19.25 19.19 19.27
GPU time (ms) 9.25 8.60 8.70
Wait from hand-over to present call, median / p99 (ms) 16.645 / 17.000 15.165 / 16.705 15.240 / 17.139
Present calls a second 239.1 120.0 120.0
Call interval's standard deviation (ms) 0.393 0.241 0.251
Video memory by the driver (MB) 10060 10521 10649

Market (crowded):

Before: main's Auto @ 8658e99e9 After: this PR, Fixed 2x @ 8658e99e9 After: this PR @ 8658e99e9
Who makes the frames FSR 3.1, 4x DLSS-G, 2x DLSS-G, 2x
Base fps 60.00 60.00 60.00
1 % low (fps) 48.92 49.19 48.73
p99 frame (ms) 20.44 20.33 20.52
GPU time (ms) 8.80 8.05 8.00
Wait from hand-over to present call, median / p99 (ms) 16.616 / 17.131 15.160 / 18.886 15.130 / 17.726
Present calls a second 237.1 120.0 120.0
Call interval's standard deviation (ms) 0.557 0.354 0.354
Video memory by the driver (MB) 9563 10121 10069

Auto against Fixed 2x: within 2 % on every number but two, both inside the runs' spread and of opposite signs from one
area to the other: the wait's p99 (+2.6 % in Hyrule Field, −6.1 % in Market) and the call interval's deviation (+4.0 %,
runs from 0.206 to 0.349 ms against 0.213 to 0.266; −0.03 % in Market). Auto made no change during any run, and ran the
same present mode, images and sets as the Fixed 2x; the one difference is before the measurement, at the start, where
Auto makes a mailbox swapchain and then a FIFO one once its value is taken.

Base fps is 60.00 everywhere (the cap): it does not tell the arms apart.

A change of Auto's multiplier, Hyrule Field, the same setup: five cycles of each change, each value held 10 s, one
--mode timing job for each arm; the longest frame of the frame trace in the 6 s after each change, against the 6 s
before.

Change Longest frame after (5 changes) Before Frames ≥ 50 ms
Auto, cap 60 → 144 (DLSS-G 2x and FIFO → the renderer's own and mailbox) 59.5 to 82.6 ms 19 to 21 ms 1 a change
Auto, cap 144 → 60 (the renderer's own → DLSS-G 2x) 121.5 to 159.1 ms 14 to 16 ms 1 a change
Fixed 2x by DLSS FG → Off, in the menu (what a player does today) 58.8 to 79.8 ms 20 to 22 ms 1 a change
Off → Fixed 2x by DLSS FG 121.2 to 155.6 ms 19 to 23 ms 1 a change
main's Auto (RX_VK_FG_AUTO_DLSS=0), cap 60 ↔ 144: the cap alone 18.0 to 23.4 ms 14 to 25 ms 0
Fixed 2x ↔ 4x by FSR 3.1 (the swapchain made again, 6 ↔ 8 images) 19.4 to 22.2 ms 19 to 23 ms 0

In Auto the long frame falls 2.1 to 2.4 s after the cap's change, when Auto takes the new value (its vk: frame generation: Auto ... line each time). A change of Auto's multiplier costs one long frame, what a Fixed 2x by DLSS FG
costs today when it is turned on or off by hand; neither the cap alone nor a swapchain made again without DLSS-G costs
one, so the cost is DLSS-G's (its feature made or let go, its sets) and FIFO ↔ mailbox.

A change of Auto's multiplier with DLSS-G's feature kept (BeanBot's L2): the table above is before that fix. The
long frame was NGX making DLSS-G's feature on the replay's thread (139 to 246 ms, a Tracy capture on the virtual display)
and letting it go (39 to 69 ms); since the fix, Auto keeps the feature while it is the renderer's own. The same five
changes each way, on the 240 Hz VRR display (RTX 4090, 621.24, 5120x1440, Hyrule Field, cap 60 ↔ 144, 10 s each), one
--mode timing job per run, before and after interleaved (ABBA), the queue's noise at zero for all four, NVIDIA DLSS: NGX started in each log. A driver-level setting is not the same as in the runs above: value 0, the PC started on
2026-11-29 at 15:23; before and after ran in the same state, and the before column matches the table above but for one
exit at 127.9 ms. After is 04159c082, this fix before the rebases: the same code as 71769b9de. The cold
review's fixes since do not change this run's path: it starts in Auto at cap 60, so Auto has run DLSS-G before each 144,
and the cap the bridge sets is published at once, not at the next menu_tick, under a frame earlier.

Change Before: this PR @ 0bc29b961 After: this PR @ 04159c082
Auto, cap 60 → 144 (out of DLSS-G) 60.5, 66.9, 75.8, 76.3, 127.9 ms 19.4, 19.5, 20.1, 24.3, 25.2 ms
Auto, cap 144 → 60 (into DLSS-G) 124.3, 128.5, 133.0, 135.6, 138.3 ms 22.9, 23.6, 24.8, 25.4, 27.5 ms
Frames ≥ 50 ms after a change 1 a change none
The 6 s before each change 14.5 to 24.1 ms 14.5 to 25.2 ms
Video memory by the driver at cap 144 (MB) 10314 to 10596 10989 to 11197

Not covered: a run that starts at cap 144 and reaches DLSS-G in play, which makes the feature once (as a Fixed 2x by DLSS
FG turned on by hand).

The frames on the screen. The capture used PresentMon 2.6.0, with --qpc_time and a session of its own started
before the game. It ran with the same pack and settings, the game full screen on the display above and in front, and
measured 60 s after the warm-up. Each arm ran 5 times, interleaved, and the table gives the median.

A second series fixed the refresh for longshot.exe alone (a driver profile, taken away afterwards and checked gone)
to measure the display without VRR: 240 Hz at cap 90 (2x fits there, though 180 does not divide 240) and 120 Hz at cap
60.

"sd" is the standard deviation of MsBetweenDisplayChange in the measured stretch. "On the grid" is the share of
intervals within 0.25 ms of a multiple of the refresh period.

Display, cap Area Arm Base fps 1 % low Frames shown a second sd (ms) Independent Flip On the grid
240 Hz VRR, 60 Hyrule Field main's Auto 60.00 52.5 231.3 0.79 0 % 100 %
Fixed 2x 60.00 52.7 120.0 1.97 100 % 1.2 %
this PR 60.00 52.5 120.0 1.95 100 % 1.5 %
Market main's Auto 60.00 49.1 224.7 1.05 0 % 100 %
Fixed 2x 60.00 49.7 120.0 1.18 100 % 28.5 %
this PR 60.00 49.5 120.0 1.21 100 % 24.1 %
240 Hz fixed, 90 Hyrule Field main's Auto 58.30 46.8 200.4 1.71 0 % 97.8 %
this PR 90.00 74.2 180.0 1.99 100 % 100 %
Market main's Auto 62.60 46.7 220.2 1.25 0 % 98.8 %
this PR 79.50 62.3 159.0 2.68 100 % 99.9 %
120 Hz fixed, 60 Hyrule Field main's Auto 60.00 52.8 120.0 0.14 0 % 93.9 %
this PR 60.00 54.5 120.0 0.12 100 % 99.9 %
Market main's Auto 60.00 49.7 120.0 0.12 0 % 97.6 %
this PR 60.00 50.1 120.0 0.14 100 % 99.9 %
  • Auto against a Fixed 2x on the screen, the bar: a Fixed 2x by DLSS FG takes the same path to the screen, so it is
    what Auto's spread is measured against. They are the same within the spread.

    • The sd is −1.4 % in Hyrule Field (runs from 1.86 to 2.01 ms against 1.93 to 2.11) and +2.6 % in Market (1.12 to
      1.60 ms against 1.04 to 1.37, and one Fixed 2x run at 2.13).
    • Frames shown, base fps and GPU time are the same, and the 1 % low is within 0.4 %.
    • With the refresh fixed, only Auto and main's Auto ran: there Auto runs DLSS-G at 2x and FIFO, a Fixed 2x's sets
      and swapchain, but no Fixed 2x ran beside it (Still to test).
  • How the presents reach the screen:

    • main's Auto is Composed: Copy with GPU GDI in all 60 of its runs, in a window or full screen, with the game in
      front: Windows composes it on the refresh grid, and G-SYNC does not pace it.
    • Auto's and the Fixed 2x's presents are Hardware: Independent Flip in all 70 runs.
  • Against main's Auto, as information: main's Auto is composed on the refresh grid and Auto is flipped and paced by
    G-SYNC, so the two spreads do not measure the same thing. Auto's intervals spread more in 5 of the 6 cases:

    Display, cap Hyrule Field Market
    240 Hz VRR, 60 +146 % +15 %
    240 Hz fixed, 90 +17 % +114 %
    120 Hz fixed, 60 −9 % +17 % (0.02 ms)
    • At 240 Hz VRR, main's Auto shows about 230 frames a second (4x), composed on the 4.17 ms grid; this PR shows 120
      (2x), paced by G-SYNC. Relative to the mean interval, the spread is +27 % in Hyrule Field and −39 % in Market.
    • At 240 Hz fixed, this PR holds the cap (90 and 79.5 fps against 58.3 and 62.6), with a higher 1 % low (74 and 62
      against 47).
  • Latency: the latency on the screen is not read here (Still to test); the wait at the present call is in the
    tables above.

  • GPU lost at the exit: 2 of 61 runs of Auto by DLSS FG lost the GPU when the game quit, after the measured stretch.
    None of the 20 Fixed 2x runs and none of the 60 runs of main's Auto did.

    • The log reads control: quit asked by a client, then DLSS Frame Gen (NGX): let go for the exit, slow submits and
      a capture's wait for write-back ... timed out, then VK_ERROR_DEVICE_LOST.
    • This change does not touch the exit path (dlss_fg_close), but since L2's fix a game quit while Auto is the
      renderer's own lets DLSS-G's feature go there, where before it was already let go. The cause is not known (Still
      to test).

Risks

  • Who it reaches: RTX 40 and 50 with DLSS and Frame generation by at DLSS FG, Frame generation at Auto, on NGX (not
    Streamline), where 2x fits the display at the cap. Their Auto changes from FSR 3.1's frames, one for each refresh, to
    DLSS-G's at a fixed multiplier, and V-Sync Auto from mailbox to FIFO, as a Fixed multiplier by DLSS FG does today.
    Everyone else's Auto is main's. Turn it off with RX_VK_FG_AUTO_DLSS=0; a revert is enough. Nothing in saves or
    longshot_options.ini changes.
  • Cost: about 0.5 to 0.6 GB more video memory than main's Auto at 5120x1440 (DLSS-G's, measured above; a Fixed 2x by
    DLSS FG takes the same). Auto now presents at the base rate × M instead of one frame for each refresh, so at cap 60 on
    240 Hz an RTX 40 shows 120 frames a second instead of 240, and on a 144 or 165 Hz display 120 instead of 144 or 165. A
    game below its cap shows the base rate × M too (45 fps gives 90), as a Fixed 2x does. A refresh that is not a multiple
    of the frames shown was measured fixed at 240 Hz, cap 90 (180 on 240, Measurements); 144 and 165 Hz are not (Still to
    test).
  • A change of the refresh, the cap or DLSS FG's answer makes the sets and the swapchain again, as changing a Fixed
    multiplier in the menu does today; it waits 2 s first, so a value that comes and goes is not followed. With DLSS-G's
    feature kept, the longest frame around such a change is 19 to 28 ms on the 240 Hz display (Measurements, "with DLSS-G's feature
    kept"), against 60 to 128 ms leaving DLSS-G and 124 to 138 ms entering it before. The first time Auto reaches DLSS-G
    in play still makes the feature once: one frame of about 120 to 160 ms, as a Fixed 2x by DLSS FG turned on by hand.
  • Video memory kept: while Auto shows the renderer's frames because 2x does not fit, DLSS-G's feature stays made:
    0.5 to 0.6 GB of video memory at 5120x1440 stays taken (the driver's figure at cap 144 on the 240 Hz display: 10.3 to 10.6 GB
    before, 11.0 to 11.2 GB after), once Auto has run DLSS-G since it was chosen. Off, a Fixed multiplier, a Fixed one's
    feature when Auto comes at 1 and DLSS FG making no frames let it go.
  • The 1 → 2 change (from the renderer's own to DLSS-G) takes DLSS-G's sets as a Fixed 2x does from Off; the first
    frames after it are a Fixed one's start.
  • Uncapped takes 2x from 120 Hz: a game that runs far above half the refresh then shows frames past the display's,
    as a Fixed 2x does Uncapped today.
  • Game queue priority (#2183): that PR's rule reads the saved
    Frame generation row, so Auto by DLSS FG counts as Auto. With the row at Low and NVIDIA's driver on Windows, the game's
    queue keeps the driver's priority at Auto by DLSS FG where a Fixed 2x by DLSS FG takes Low, and going between Auto and
    Off asks for no restart. Auto by DLSS FG with the row at Low is not measured.
  • The help box's height: the box takes the height of the tallest help of all the rows (measure_help), and Frame
    generation's new Auto line is one of them. Estimated in English at the box's 476 pt width: about 176 pt for Frame
    generation's help with that line, against 332 pt for the tallest, so the box keeps its height; not measured for every
    language. In the screenshots at 2560x1440 the box is the same height on main and here. The guide's Graphics image is
    kept without a new capture (its inputs recorded in docs/user/images/guide/manifest.json).
  • The help line hn_pace still says that pacing applies to "fixed multipliers"; it is also true of Auto by DLSS FG, but
    the line is in 13 languages and is left for the wording pull request.
  • On the screen, Auto's presents take a Fixed 2x by DLSS FG's path (Independent Flip, FIFO) and spread as a Fixed
    2x's do. Against main's Auto, composed by Windows on the refresh grid, their intervals spread more in 5 of the 6 cases
    measured, with the cap held better at 240 Hz fixed (Measurements). Auto keeps FIFO: a player who turns it on gets what
    a Fixed 2x by DLSS FG gives today.
  • The exit: 2 of 61 Auto runs lost the GPU when the game quit, after DLSS-G was let go; the cause is not known, and
    a Fixed 2x by DLSS FG on main takes the same exit path (Still to test). Since L2's fix, more exits let the feature
    go there: a game quit while Auto is the renderer's own too.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). (The 15 failures also fail on main, named in Testing.)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: this head's renderer built here
    through the queue, in the pack Testing ran; Linux by CI, whose run of this head waits for a maintainer.)
  • Screenshots of the same spot on main and here, for a change that shows on screen. (The Insert menu's Frame
    generation and Frame generation by rows, in #2795 (comment); Testing says how they were taken.)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary On an RTX 40 or 50 with Frame generation at **Auto** and Frame generation by at **DLSS FG**, main never lets NVIDIA DLSS Frame Generation make Auto's frames: DLSS-G only makes fixed multipliers, so Auto falls back to the renderer's own (a frame for each refresh, by FSR 3.1 or the built-in one) and the row says "Auto (FSR 3.1 FG)". A player who picked DLSS FG gets FSR 3.1's frames unless they also pick a Fixed multiplier by hand. To see it on main: RTX 40, a 240 Hz display, DLSS on, Frame generation Auto, by DLSS FG, frame rate cap 60. The row reads "Auto (FSR 3.1 FG)", the log says `fsr3fi: of the last 600 presents 600 made by FSR 3.1` and the swapchain is mailbox. This changes Auto, at DLSS FG and once NGX has answered (`dlss_fg_most` > 0), to run DLSS-G at a fixed multiplier: the highest M from 2 to the runtime's most + 1 with cap × M ≤ refresh × 1.005 (2x at 60 fps from 120 Hz; on an RTX 50, 3x from 180 Hz and 4x from 240 Hz; Uncapped takes 2x from 120 Hz). Where 2x does not fit (a 60 Hz display, or cap 144 at 240 Hz), Auto stays the renderer's own, as today, and the Frame generation by row says why. A new value is taken once it has held for 2 s, so a refresh rate that comes and goes does not remake the sets and the swapchain each time. At that multiplier Auto is a fixed multiplier everywhere that counts: `framegen_now()` gives it, so the sets, the pacing, DLSS-G's depth and motion (`dlss_fg_inputs`) and V-Sync Auto's FIFO are a Fixed one's. The row reads "Auto (DLSS FG)". NVIDIA Streamline is unchanged: it starts only for a Fixed multiplier saved, and Auto chosen while it runs turns it off until the next start, as on main. In a build with Streamline, Auto saved runs NGX's DLSS-G as above (Auto through Streamline is a later pull request). While Auto is the renderer's own because DLSS FG's 2x does not fit, DLSS-G's feature stays made for the way back, so a change of the cap or the display between the two makes no NGX feature on the frame's thread (BeanBot's L2), once Auto itself has run DLSS-G since it was chosen; Off, a Fixed multiplier, a Fixed one's feature when Auto comes at 1 and DLSS FG making no frames let it go as before. Auto reads the frame rate cap the menu publishes under its lock, not the row (L1), and the display's refresh is read for Auto alone. `RX_VK_FG_AUTO_DLSS=0` keeps main's Auto. On `main` 462919343, where https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2738 and https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2183 are merged. See https://git.magicbean.dev/MagicBeanDev/Longshot/issues/1687. Read first: `gpu/vk/framegen_rows.h` (`auto_dlss_multiplier`, `auto_settle`), `gpu/vk/vk_framegen.cpp` (`framegen_now`, `framegen_auto_dlss_update`, `framegen_auto_dlss_keeps`), `gpu/vk/vk_replay.cpp` (`do_present`'s `dlss_fg_idle` line), then `gpu/vk/menu/framegen.cpp`. ## Testing **Tested:** Windows 11, RTX 4090, NVIDIA 621.24, a 5120x1440 240 Hz VRR display, SDR; a pack on the shared base with NGX (`LONGSHOT_NGX_SDK`), through the PC's job queue, the control bridge, the `kokiri-start` save. - DLSS on, Frame generation Auto, by DLSS FG, cap 60: the row reads "Auto (DLSS FG)"; the log says `NVIDIA DLSS: NGX started`, `vk: frame generation: Auto by DLSS FG at 2x (240.00 Hz, cap 60)`, `vk: V-Sync Auto with DLSS Frame Generation at 2x: FIFO`, the swapchain is FIFO with 6 images, and `of the last 600 presents 600 made by DLSS-G`. - Cap 60 → 144 → 120 → Uncapped → 60, in the game: at 144 `Auto by the renderer's own (DLSS FG's 2x does not fit 240.00 Hz at cap 144)`, the feature let go, mailbox, the row "Auto (FSR 3.1 FG)"; at 120 back to 2x and FIFO; Uncapped and 60 stay at 2x (no line, as expected). Each change follows 2 s after the cap's. - A game menu (PLUS) open: 303 of 600 presents without DLSS's input (no 3D drawn), as with a Fixed 2x. - `RX_VK_FG_AUTO_DLSS=0`: "Auto (FSR 3.1 FG)" at every cap, main's log (mailbox, no "Auto by DLSS FG" line). - Streamline (a pack built with `LONGSHOT_SL_SDK`, Streamline v2.14.16's files beside `longshot.exe`), cap 60, on a 2560x1440 120 Hz display (the log's `screen 2560x1440 at 120 Hz`), one run of each: - Fixed 2x by DLSS FG saved: `vk: Streamline started for DLSS Frame Generation`, then `Streamline DLSS Frame Generation: on, 2x`. Auto set in the game: `Streamline DLSS Frame Generation: off (the Frame generation rows do not ask for it)`, the row reads "Auto" (not "Auto (DLSS FG)"), no `Auto by DLSS FG` line, and no frame generation until the next start (`3960 presents, 60.0 fps`). With `RX_VK_FG_AUTO_DLSS=0`, the same lines: main's. - Auto saved: Streamline is not started, `Auto by DLSS FG at 2x (120.00 Hz, cap 60)`, FIFO with 6 images, and `of the last 600 presents 600 made by DLSS-G` (NGX's). With `RX_VK_FG_AUTO_DLSS=0`: FSR 3.1 in mailbox, main's. - After the Streamline files were taken away and the pack rebuilt with NGX only: Auto at 2x by NGX again, 600 of 600. - The screen, full screen on the 240 Hz display with the game in front, through PresentMon: 141 runs, of which 70 ran DLSS-G (Auto and Fixed 2x), all `Hardware: Independent Flip` (Measurements, "The frames on the screen"). - At 240 Hz VRR the intervals of Auto and of the Fixed 2x are off the 4.17 ms grid (G-SYNC paces them). - With the refresh fixed (240 Hz at cap 90, 120 Hz at cap 60), Auto keeps DLSS-G at 2x and FIFO. - After the rebase onto #2738 (head 0bc29b961, the log's `longshot v3.2.0-199-g0bc29b961`; a pack on the shared base 22d0d200 with NGX), on a 2560x1440 120 Hz virtual display (the log's `screen 2560x1440 at 120 Hz`), full screen, the `kokiri-start` save teleported to Hyrule Field, Frame generation Auto, by DLSS FG, cap 60, one run: `NVIDIA DLSS: NGX started`, `vk: frame generation: Auto by DLSS FG at 2x (120.00 Hz, cap 60)`, `vk: V-Sync Auto with DLSS Frame Generation at 2x: FIFO`, the swapchain FIFO with 6 images, `of the last 600 presents 600 made by DLSS-G`, and a clean exit. - The screenshots (in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2795#issuecomment-89799): the Insert menu's Graphics tab on the same virtual display, full screen, from `kokiri-start`, DLSS, Frame generation Auto, by DLSS FG, cap 60, the menu opened and walked by `RX_VK_MENU_SCRIPT` and the display grabbed between two presses. `main` is the shared base's runtime, 22d0d200 (main's commits since then add rows to the Gameplay and Audio tabs, none to Graphics): Frame generation reads "Auto (FSR 3.1 FG)" and its log says `of the last 600 presents 600 made by FSR 3.1`. Here (0bc29b961): "Auto (DLSS FG)" with its help line, Frame generation by says DLSS FG makes the frames, and the log says `Auto by DLSS FG at 2x (120.00 Hz, cap 60)` and `of the last 600 presents 600 made by DLSS-G`. Both runs exited cleanly. - After BeanBot's review, with L1 and L2's fixes and the cold review's, rebased onto `main` cb0a27630 (head 87357e9b3, the log's `longshot v3.2.0-171-g87357e9b3`; a pack on the shared base a425fa2a with NGX), on the 2560x1440 120 Hz virtual display, full screen, sound off, Hyrule Field, Frame generation Auto, by DLSS FG, cap 60 → 144 → 60 → 144 → 60 → 144 (10 s each), then quit at 144, one run (not a measurement): `NVIDIA DLSS: NGX started`, DLSS-G's feature made once (`feature made for 2560x1440 from 1707x960 inputs`) and let go only for the exit (`DLSS Frame Gen (NGX): let go for the exit`, while Auto was the renderer's own), `of the last 600 presents 599 made by DLSS-G` after the returns to 2x, the longest frame within 6 s of each change 21.7 to 33.5 ms, no Vulkan error and a clean exit (code 0). The same run at 272f5f906, before the cold review's fixes: 19.5 to 29.6 ms. - Rebased since onto `main` 462919343 (head f5af8ffd1): every code commit is the same in the range-diff, the guide's record alone conflicted, and this head's renderer builds through the queue; the run above was not repeated. - L2 before the rebase, the same run with 3 changes each way: at 04159c082 the longest frame within 6 s of each change 20 to 38 ms, at 0bc29b961 (the same base) 123 to 138 ms into DLSS-G and 64 to 78 ms out. - `mise run test` (`tests/run_all.py --changed origin/main`, Windows, llvm-mingw) at this head (f5af8ffd1): 252 passed, 15 failed, 12 skipped. The 15 fail on `main` 462919343 too, run alone there with the same checks: `test_bug_report`, `test_crash_record`, `test_crt_options`, `test_dev_ab`, `test_framegen_resources` and `test_present_source_crop` (`drain_framegen_sets` not declared in their fixtures), `test_input_background`, `test_input_movie`, `test_keyboard_menu_option`, `test_keyboard_option`, `test_linux_pressure`, `test_menu_keys`, `test_option_ids`, `test_switch_table` and `test_upscaler_round_trip`. Every other frame generation and DLSS check passes. The 12 skipped need Linux or a tool this PC lacks (spirv-val, glslang). - `test_framegen_auto_dlss` compiles and runs the rule, the 2 s hold, the update and the row's reason, with `RX_VK_FG_AUTO_DLSS` unset, 1 and 0; it fails with the slack widened to 1.006 and with the update moved after `do_present`'s first `framegen_record` (both tried). The three places that read Auto's multiplier (`framegen_record`'s rate, `init`'s log line, `dlss_fg_inputs`' guard) are text checks, not run. Since the review it also compiles the real `fps_cap_now`, `publish_fps_cap` and `menu_fps_cap` with a row that counts the reads made without `menu_mu` (L1), and `do_present`'s own `dlss_fg_idle` line with `framegen_auto_dlss_keeps` (L2): each failed at the commit before its fix and passes with it, with clang++ (llvm-mingw's `g++` is clang too: GCC is left to CI); with L2's key line broken it fails again. After a cold review of those fixes it also checks that a Fixed multiplier's feature is not kept at Auto's 1, that Off and Fixed read no refresh, and that the control bridge's setting publishes the cap: it failed at the commit before and passes since, and each of the three fixes broken alone fails it again. **Still to test:** - Windows, RTX 50, 240 Hz: cap 60, expecting `Auto by DLSS FG at 4x` and the row "Auto (DLSS FG)"; cap 120, expecting 2x after 2 s; at 144 Hz cap 60, expecting 2x (@Beanstalk) - Windows, RTX 30: Frame generation Auto, expecting it to stay "Auto (FSR 3.1 FG)" as on main, with no "Auto by DLSS FG" line (@Beanstalk) - Windows, AMD and Intel: Frame generation Auto, expecting main's log and row (@Beanstalk) - Linux, RTX 40 (NGX): Frame generation Auto, by DLSS FG, cap 60 at 120 Hz or more, expecting `Auto by DLSS FG at 2x` and DLSS-G making the presents (@Beanstalk, or dazemc by hand) - Windows, RTX 40, a 60 Hz display: Auto, expecting "Auto (FSR 3.1 FG)" and the row's line that DLSS FG's 2x does not fit 60 Hz at cap 60 (by hand) - Windows, RTX 40: the game lost the GPU (`VK_ERROR_DEVICE_LOST`) at its exit in 2 of 61 Auto by DLSS FG runs above, after `DLSS Frame Gen (NGX): let go for the exit` (Measurements, "The frames on the screen"); a Fixed 2x by DLSS FG on `main`, quit the same way 30 times, expecting no loss, or the same rate (by hand) - Windows, RTX 40: the latency on the screen (PresentMon's display times joined to the hand-over), Auto against a Fixed 2x and main's Auto (by hand, from the captures above) - Windows, RTX 40, the refresh fixed (240 Hz at cap 90, 120 Hz at cap 60), full screen: Auto against a Fixed 2x by DLSS FG through PresentMon, expecting the same spread, as at 240 Hz VRR (by hand) - Windows, RTX 40, 144 Hz fixed (no VRR), cap 60, full screen: Auto against a Fixed 2x by DLSS FG through PresentMon, expecting 120 frames a second and the same spread (by hand) - Windows, RTX 40: main's Auto (FSR 3.1, mailbox) with Frame generation Off, expecting PresentMon to say whether a mailbox swapchain is composed (`Composed: Copy with GPU GDI`) on this driver without frame generation too (by hand) ## Measurements **Verdict:** at DLSS FG's 2x, Auto runs as a Fixed 2x does: every number within the spread of a Fixed 2x by DLSS FG, in a light and a crowded area. Against main's Auto (FSR 3.1 at 4x), 120 presents a second instead of about 238, a steadier call cadence, about 1.5 ms less wait before each present, 0.6 to 0.8 ms less GPU time, and about 0.5 to 0.6 GB more video memory (DLSS-G's). On the screen (below), Auto's presents are flipped by the driver (Independent Flip) and paced by G-SYNC, as a Fixed 2x's are, and their intervals spread as a Fixed 2x's do. main's Auto is composed by Windows on the refresh grid, a different path to the screen, so its spread is given as information, not as the bar. Setup: Windows 11, RTX 4090, NVIDIA 621.24, 5120x1440 at 240 Hz (VRR), SDR. A pack of this head (8658e99e9) on the shared base (main 22d0d200 + https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2183), NGX. DLSS, Render resolution 67 %, Frame generation Auto, by DLSS FG, cap 60, V-Sync Auto, Reflex off. Each run one `--mode timing` job, from the `kokiri-start` save teleported to the scene, warmed up until no frame waits for a pipeline, then 60 s measured; three arms interleaved (order reversed every other round), 5 runs each, the median. "Before" is main's Auto, by `RX_VK_FG_AUTO_DLSS=0` in the same pack (its log is main's); "Fixed 2x" is `RX_VK_FRAMEGEN_MULT=2`, what Auto must match. Base fps, 1 % low and p99 from the frame trace; GPU time from the log's `vk: GPU time` lines (the game's own passes, DLSS-G's work not in them); the wait and the cadence from `RX_VK_FG_LATENCY_LOG` (at the present call, not on the screen); video memory from the log's last `vk: budget: VRAM` line (by the driver, DLSS-G included). Every run logged `NVIDIA DLSS: NGX started`, and in the measured stretch 600 of 600 presents made by DLSS-G (Auto, Fixed 2x) or by FSR 3.1 (main's Auto); no compile or encode ran beside them. Rebased onto main 01d6878b3 and https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2738 since: none of main's 25 commits since 22d0d200 touches frame generation, DLSS-G or the present path (`vk_replay.cpp` reads two audio options atomically, a Pause in background row off by default adds one call a frame, a Quadro M2000M workaround is Linux only); #2183's code is the same line for line, and #2738 changes the menu's text, so the numbers above still hold. 8658e99e9, the head measured, is this change before that rebase: the rebase moved its menu commit onto #2738's wording (the menu's text and lines only), and the commits since change only tests, docs and the guide's records. Rebased again onto `main` 450e63b82 (#2738 and #2183 merged): the range-diff is the same for every code commit (only three docs commits differ, by their conflicts), and `main`'s 17 commits since touch neither `vk_framegen.cpp` nor `vk_dlss.cpp`; in `vk_replay.cpp` they change the simulated turf's submits, not `do_present`, and in `vk_dlssg.cpp` comments only. Then onto `main` cb0a27630 (#2821, #2819), with no conflict: the range-diff is the same for every commit, and those two change AMD's texture and device paths and the measure skill's docs. Then onto `main` 462919343 (#2183 merged, #2833): only the guide's record conflicted, and every code commit is the same in the range-diff; #2183's changes to `vk_replay.cpp` and `vk_dlssg.cpp` retire the present probe at the window's close and at NVIDIA Streamline's, not the NGX DLSS-G path this change touches, and #2833 is the builder's. Baseline: main's Auto is this head with `RX_VK_FG_AUTO_DLSS=0`, whose log is main's (FSR 3.1, mailbox): the same pack, so only the switch differs. The Fixed 2x column (`RX_VK_FRAMEGEN_MULT=2`) is what Auto must match. Hyrule Field (light): | | Before: main's Auto @ 8658e99e9 | After: this PR, Fixed 2x @ 8658e99e9 | After: this PR @ 8658e99e9 | |---|---|---|---| | Who makes the frames | FSR 3.1, 4x | DLSS-G, 2x | DLSS-G, 2x | | Base fps | 60.00 | 60.00 | 60.00 | | 1 % low (fps) | 51.95 | 52.11 | 51.89 | | p99 frame (ms) | 19.25 | 19.19 | 19.27 | | GPU time (ms) | 9.25 | 8.60 | 8.70 | | Wait from hand-over to present call, median / p99 (ms) | 16.645 / 17.000 | 15.165 / 16.705 | 15.240 / 17.139 | | Present calls a second | 239.1 | 120.0 | 120.0 | | Call interval's standard deviation (ms) | 0.393 | 0.241 | 0.251 | | Video memory by the driver (MB) | 10060 | 10521 | 10649 | Market (crowded): | | Before: main's Auto @ 8658e99e9 | After: this PR, Fixed 2x @ 8658e99e9 | After: this PR @ 8658e99e9 | |---|---|---|---| | Who makes the frames | FSR 3.1, 4x | DLSS-G, 2x | DLSS-G, 2x | | Base fps | 60.00 | 60.00 | 60.00 | | 1 % low (fps) | 48.92 | 49.19 | 48.73 | | p99 frame (ms) | 20.44 | 20.33 | 20.52 | | GPU time (ms) | 8.80 | 8.05 | 8.00 | | Wait from hand-over to present call, median / p99 (ms) | 16.616 / 17.131 | 15.160 / 18.886 | 15.130 / 17.726 | | Present calls a second | 237.1 | 120.0 | 120.0 | | Call interval's standard deviation (ms) | 0.557 | 0.354 | 0.354 | | Video memory by the driver (MB) | 9563 | 10121 | 10069 | Auto against Fixed 2x: within 2 % on every number but two, both inside the runs' spread and of opposite signs from one area to the other: the wait's p99 (+2.6 % in Hyrule Field, −6.1 % in Market) and the call interval's deviation (+4.0 %, runs from 0.206 to 0.349 ms against 0.213 to 0.266; −0.03 % in Market). Auto made no change during any run, and ran the same present mode, images and sets as the Fixed 2x; the one difference is before the measurement, at the start, where Auto makes a mailbox swapchain and then a FIFO one once its value is taken. Base fps is 60.00 everywhere (the cap): it does not tell the arms apart. **A change of Auto's multiplier**, Hyrule Field, the same setup: five cycles of each change, each value held 10 s, one `--mode timing` job for each arm; the longest frame of the frame trace in the 6 s after each change, against the 6 s before. | Change | Longest frame after (5 changes) | Before | Frames ≥ 50 ms | |---|---|---|---| | Auto, cap 60 → 144 (DLSS-G 2x and FIFO → the renderer's own and mailbox) | 59.5 to 82.6 ms | 19 to 21 ms | 1 a change | | Auto, cap 144 → 60 (the renderer's own → DLSS-G 2x) | 121.5 to 159.1 ms | 14 to 16 ms | 1 a change | | Fixed 2x by DLSS FG → Off, in the menu (what a player does today) | 58.8 to 79.8 ms | 20 to 22 ms | 1 a change | | Off → Fixed 2x by DLSS FG | 121.2 to 155.6 ms | 19 to 23 ms | 1 a change | | main's Auto (`RX_VK_FG_AUTO_DLSS=0`), cap 60 ↔ 144: the cap alone | 18.0 to 23.4 ms | 14 to 25 ms | 0 | | Fixed 2x ↔ 4x by FSR 3.1 (the swapchain made again, 6 ↔ 8 images) | 19.4 to 22.2 ms | 19 to 23 ms | 0 | In Auto the long frame falls 2.1 to 2.4 s after the cap's change, when Auto takes the new value (its `vk: frame generation: Auto ...` line each time). A change of Auto's multiplier costs one long frame, what a Fixed 2x by DLSS FG costs today when it is turned on or off by hand; neither the cap alone nor a swapchain made again without DLSS-G costs one, so the cost is DLSS-G's (its feature made or let go, its sets) and FIFO ↔ mailbox. **A change of Auto's multiplier with DLSS-G's feature kept** (BeanBot's L2): the table above is before that fix. The long frame was NGX making DLSS-G's feature on the replay's thread (139 to 246 ms, a Tracy capture on the virtual display) and letting it go (39 to 69 ms); since the fix, Auto keeps the feature while it is the renderer's own. The same five changes each way, on the 240 Hz VRR display (RTX 4090, 621.24, 5120x1440, Hyrule Field, cap 60 ↔ 144, 10 s each), one `--mode timing` job per run, before and after interleaved (ABBA), the queue's noise at zero for all four, `NVIDIA DLSS: NGX started` in each log. A driver-level setting is not the same as in the runs above: value 0, the PC started on 2026-11-29 at 15:23; before and after ran in the same state, and the before column matches the table above but for one exit at 127.9 ms. After is 04159c082, this fix before the rebases: the same code as 71769b9de. The cold review's fixes since do not change this run's path: it starts in Auto at cap 60, so Auto has run DLSS-G before each 144, and the cap the bridge sets is published at once, not at the next `menu_tick`, under a frame earlier. | Change | Before: this PR @ 0bc29b961 | After: this PR @ 04159c082 | |---|---|---| | Auto, cap 60 → 144 (out of DLSS-G) | 60.5, 66.9, 75.8, 76.3, 127.9 ms | 19.4, 19.5, 20.1, 24.3, 25.2 ms | | Auto, cap 144 → 60 (into DLSS-G) | 124.3, 128.5, 133.0, 135.6, 138.3 ms | 22.9, 23.6, 24.8, 25.4, 27.5 ms | | Frames ≥ 50 ms after a change | 1 a change | none | | The 6 s before each change | 14.5 to 24.1 ms | 14.5 to 25.2 ms | | Video memory by the driver at cap 144 (MB) | 10314 to 10596 | 10989 to 11197 | Not covered: a run that starts at cap 144 and reaches DLSS-G in play, which makes the feature once (as a Fixed 2x by DLSS FG turned on by hand). **The frames on the screen.** The capture used PresentMon 2.6.0, with `--qpc_time` and a session of its own started before the game. It ran with the same pack and settings, the game full screen on the display above and in front, and measured 60 s after the warm-up. Each arm ran 5 times, interleaved, and the table gives the median. A second series fixed the refresh for `longshot.exe` alone (a driver profile, taken away afterwards and checked gone) to measure the display without VRR: 240 Hz at cap 90 (2x fits there, though 180 does not divide 240) and 120 Hz at cap 60. "sd" is the standard deviation of `MsBetweenDisplayChange` in the measured stretch. "On the grid" is the share of intervals within 0.25 ms of a multiple of the refresh period. | Display, cap | Area | Arm | Base fps | 1 % low | Frames shown a second | sd (ms) | Independent Flip | On the grid | |---|---|---|---|---|---|---|---|---| | 240 Hz VRR, 60 | Hyrule Field | main's Auto | 60.00 | 52.5 | 231.3 | 0.79 | 0 % | 100 % | | | | Fixed 2x | 60.00 | 52.7 | 120.0 | 1.97 | 100 % | 1.2 % | | | | this PR | 60.00 | 52.5 | 120.0 | 1.95 | 100 % | 1.5 % | | | Market | main's Auto | 60.00 | 49.1 | 224.7 | 1.05 | 0 % | 100 % | | | | Fixed 2x | 60.00 | 49.7 | 120.0 | 1.18 | 100 % | 28.5 % | | | | this PR | 60.00 | 49.5 | 120.0 | 1.21 | 100 % | 24.1 % | | 240 Hz fixed, 90 | Hyrule Field | main's Auto | 58.30 | 46.8 | 200.4 | 1.71 | 0 % | 97.8 % | | | | this PR | 90.00 | 74.2 | 180.0 | 1.99 | 100 % | 100 % | | | Market | main's Auto | 62.60 | 46.7 | 220.2 | 1.25 | 0 % | 98.8 % | | | | this PR | 79.50 | 62.3 | 159.0 | 2.68 | 100 % | 99.9 % | | 120 Hz fixed, 60 | Hyrule Field | main's Auto | 60.00 | 52.8 | 120.0 | 0.14 | 0 % | 93.9 % | | | | this PR | 60.00 | 54.5 | 120.0 | 0.12 | 100 % | 99.9 % | | | Market | main's Auto | 60.00 | 49.7 | 120.0 | 0.12 | 0 % | 97.6 % | | | | this PR | 60.00 | 50.1 | 120.0 | 0.14 | 100 % | 99.9 % | - **Auto against a Fixed 2x on the screen, the bar:** a Fixed 2x by DLSS FG takes the same path to the screen, so it is what Auto's spread is measured against. They are the same within the spread. - The sd is −1.4 % in Hyrule Field (runs from 1.86 to 2.01 ms against 1.93 to 2.11) and +2.6 % in Market (1.12 to 1.60 ms against 1.04 to 1.37, and one Fixed 2x run at 2.13). - Frames shown, base fps and GPU time are the same, and the 1 % low is within 0.4 %. - With the refresh fixed, only Auto and main's Auto ran: there Auto runs DLSS-G at 2x and FIFO, a Fixed 2x's sets and swapchain, but no Fixed 2x ran beside it (Still to test). - **How the presents reach the screen:** - main's Auto is `Composed: Copy with GPU GDI` in all 60 of its runs, in a window or full screen, with the game in front: Windows composes it on the refresh grid, and G-SYNC does not pace it. - Auto's and the Fixed 2x's presents are `Hardware: Independent Flip` in all 70 runs. - **Against main's Auto, as information:** main's Auto is composed on the refresh grid and Auto is flipped and paced by G-SYNC, so the two spreads do not measure the same thing. Auto's intervals spread more in 5 of the 6 cases: | Display, cap | Hyrule Field | Market | |---|---|---| | 240 Hz VRR, 60 | +146 % | +15 % | | 240 Hz fixed, 90 | +17 % | +114 % | | 120 Hz fixed, 60 | −9 % | +17 % (0.02 ms) | - At 240 Hz VRR, main's Auto shows about 230 frames a second (4x), composed on the 4.17 ms grid; this PR shows 120 (2x), paced by G-SYNC. Relative to the mean interval, the spread is +27 % in Hyrule Field and −39 % in Market. - At 240 Hz fixed, this PR holds the cap (90 and 79.5 fps against 58.3 and 62.6), with a higher 1 % low (74 and 62 against 47). - **Latency:** the latency on the screen is not read here (Still to test); the wait at the present call is in the tables above. - **GPU lost at the exit:** 2 of 61 runs of Auto by DLSS FG lost the GPU when the game quit, after the measured stretch. None of the 20 Fixed 2x runs and none of the 60 runs of main's Auto did. - The log reads `control: quit asked by a client`, then `DLSS Frame Gen (NGX): let go for the exit`, slow submits and `a capture's wait for write-back ... timed out`, then `VK_ERROR_DEVICE_LOST`. - This change does not touch the exit path (`dlss_fg_close`), but since L2's fix a game quit while Auto is the renderer's own lets DLSS-G's feature go there, where before it was already let go. The cause is not known (Still to test). ## Risks - **Who it reaches:** RTX 40 and 50 with DLSS and Frame generation by at DLSS FG, Frame generation at Auto, on NGX (not Streamline), where 2x fits the display at the cap. Their Auto changes from FSR 3.1's frames, one for each refresh, to DLSS-G's at a fixed multiplier, and V-Sync Auto from mailbox to FIFO, as a Fixed multiplier by DLSS FG does today. Everyone else's Auto is main's. Turn it off with `RX_VK_FG_AUTO_DLSS=0`; a revert is enough. Nothing in saves or `longshot_options.ini` changes. - **Cost:** about 0.5 to 0.6 GB more video memory than main's Auto at 5120x1440 (DLSS-G's, measured above; a Fixed 2x by DLSS FG takes the same). Auto now presents at the base rate × M instead of one frame for each refresh, so at cap 60 on 240 Hz an RTX 40 shows 120 frames a second instead of 240, and on a 144 or 165 Hz display 120 instead of 144 or 165. A game below its cap shows the base rate × M too (45 fps gives 90), as a Fixed 2x does. A refresh that is not a multiple of the frames shown was measured fixed at 240 Hz, cap 90 (180 on 240, Measurements); 144 and 165 Hz are not (Still to test). - **A change of the refresh, the cap or DLSS FG's answer** makes the sets and the swapchain again, as changing a Fixed multiplier in the menu does today; it waits 2 s first, so a value that comes and goes is not followed. With DLSS-G's feature kept, the longest frame around such a change is 19 to 28 ms on the 240 Hz display (Measurements, "with DLSS-G's feature kept"), against 60 to 128 ms leaving DLSS-G and 124 to 138 ms entering it before. The first time Auto reaches DLSS-G in play still makes the feature once: one frame of about 120 to 160 ms, as a Fixed 2x by DLSS FG turned on by hand. - **Video memory kept:** while Auto shows the renderer's frames because 2x does not fit, DLSS-G's feature stays made: 0.5 to 0.6 GB of video memory at 5120x1440 stays taken (the driver's figure at cap 144 on the 240 Hz display: 10.3 to 10.6 GB before, 11.0 to 11.2 GB after), once Auto has run DLSS-G since it was chosen. Off, a Fixed multiplier, a Fixed one's feature when Auto comes at 1 and DLSS FG making no frames let it go. - **The 1 → 2 change** (from the renderer's own to DLSS-G) takes DLSS-G's sets as a Fixed 2x does from Off; the first frames after it are a Fixed one's start. - **Uncapped** takes 2x from 120 Hz: a game that runs far above half the refresh then shows frames past the display's, as a Fixed 2x does Uncapped today. - **Game queue priority** (https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2183): that PR's rule reads the saved Frame generation row, so Auto by DLSS FG counts as Auto. With the row at Low and NVIDIA's driver on Windows, the game's queue keeps the driver's priority at Auto by DLSS FG where a Fixed 2x by DLSS FG takes Low, and going between Auto and Off asks for no restart. Auto by DLSS FG with the row at Low is not measured. - **The help box's height:** the box takes the height of the tallest help of all the rows (`measure_help`), and Frame generation's new Auto line is one of them. Estimated in English at the box's 476 pt width: about 176 pt for Frame generation's help with that line, against 332 pt for the tallest, so the box keeps its height; not measured for every language. In the screenshots at 2560x1440 the box is the same height on `main` and here. The guide's Graphics image is kept without a new capture (its inputs recorded in `docs/user/images/guide/manifest.json`). - The help line `hn_pace` still says that pacing applies to "fixed multipliers"; it is also true of Auto by DLSS FG, but the line is in 13 languages and is left for the wording pull request. - **On the screen**, Auto's presents take a Fixed 2x by DLSS FG's path (Independent Flip, FIFO) and spread as a Fixed 2x's do. Against main's Auto, composed by Windows on the refresh grid, their intervals spread more in 5 of the 6 cases measured, with the cap held better at 240 Hz fixed (Measurements). Auto keeps FIFO: a player who turns it on gets what a Fixed 2x by DLSS FG gives today. - **The exit:** 2 of 61 Auto runs lost the GPU when the game quit, after DLSS-G was let go; the cause is not known, and a Fixed 2x by DLSS FG on `main` takes the same exit path (Still to test). Since L2's fix, more exits let the feature go there: a game quit while Auto is the renderer's own too. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). (The 15 failures also fail on `main`, named in Testing.) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: this head's renderer built here through the queue, in the pack Testing ran; Linux by CI, whose run of this head waits for a maintainer.) - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. (The Insert menu's Frame generation and Frame generation by rows, in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2795#issuecomment-89799; Testing says how they were taken.) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With DLSS Frame Gen 2x at 60 fps under FIFO on a 240 Hz VRR display the
game frame's present waited for the replay's work while the generated
frame's did not (RTX 4090, 621.24). The replay's queue at the global
priority low (RX_VK_QUEUE_PRIORITY=low) took the game frame's GPU work
done after its present's start from 2.91 to 1.25 ms at the median
(PresentMon) and the frames on screen within 0.5 ms of 8.33 ms from 5.7% to
33.2% (one full-screen capture each, the presents on the replay's queue as
by default). Without frame generation there is no generated frame for the
game frame to fall behind (inferred, not measured); Auto was not measured.

tests/test_device_policy.py gives DeviceFacts frame generation as the run
starts (0 off, 1 Auto, 2 to 8 fixed) and expects, on each of its 24 PCs at
0, 1, 2 and 8, the replay's queue's priority low (128) with NVIDIA's driver
on Windows at 2x and up, none (0) elsewhere and with Auto. Nine cases put
RX_VK_QUEUE_PRIORITY over it: 0 asks none with frame generation on (the
witness), low and medium ask theirs without it, a word not a level leaves
the default; each marked as its switch's or not, the facts' line saying
the level of frame generation and the policy's block the priority's name.
The policy's environment case "low" now expects the level it asks. The
text checks look for create_device putting frame generation in the facts
before the policy is made, and, once the device is made, making the menu's
Frame generation row take a restart (the device keeps the level it is made
with).

tests/test_menu_modules.py expects that row to compare 2x and up against
Off and Auto (restart_value: 0, 1 -> 0; 2, 3, 8 -> 1) without taking a
restart itself: the row takes one only where the level follows it.

On this commit's parent there is no default and no frame generation in the
facts, and the row has no restart_value: both tests fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With frame generation the game frame's present waited for the replay's
work and the generated frame's did not, so the frames reached the screen
unevenly (DLSS FG 2x at 60 fps, FIFO, a 240 Hz VRR display, RTX 4090,
621.24). The replay's queue at the global priority low (VK_KHR, else
VK_EXT, global_priority), asked through RX_VK_QUEUE_PRIORITY on a build of
the diagnosis, took the game frame's GPU work done after its present's
start from 2.91 to 1.25 ms at the median (PresentMon) and the frames within
0.5 ms of 8.33 ms on the screen from 5.7% to 33.2% (one full-screen capture
each, the presents on the replay's queue as by default). Its cost with
frame generation: -4.2% fps uncapped, nothing at a 60 fps cap; beside
another program's GPU work at its own priority the replay gives the GPU up
(a compute load at 8 of 10: 42.7 -> 25.0 fps at a 60 fps cap, one pair).

DeviceFacts::framegen is frame generation as the run starts (the menu's
row, RX_VK_FRAMEGEN_MULT over it, 0 with RX_VK_FRAMEGEN=0), and
DevicePolicy::replay_queue_priority is low with NVIDIA's driver on Windows
at 2x and up, else none (policy_rule::replay_queue_priority). Auto was not
measured and asks none; without frame generation there is no generated
frame for the game frame to fall behind (inferred, not measured).
RX_VK_QUEUE_PRIORITY, a diagnosis switch until now, becomes a hw switch
read by device_policy_env: low, medium, high or realtime (any case) asks
that level whatever frame generation is, 0 or off none, anything else is
ignored and said so. The facts' line says frame generation at the start,
the policy's block replay_queue_priority.

create_device asks the policy's level where the queue's family lists it,
as the diagnosis did, and sets the policy's level to 0 where none was
asked or the device was not made with it. The device keeps the level it is
made with, so where this PC's default follows frame generation (the switch
unset, RX_VK_FRAMEGEN not 0) and the family lists low, the menu's Frame
generation row takes a restart from then on (menu_row_takes_restart, a slot
of the menu's restart state, its start value the run's): turning it on or
off says After restart and Restart needed, as the menu's other such rows
do. Its restart_value compares 2x and up against Off and Auto, so changing
between 2x and 8x, or Off and Auto, asks none; the frames themselves still
change at once.

RX_VK_PRESENT_QUEUE_PRIORITY (diagnosis) is read as before, by
device_policy.h's parse_queue_priority. create_device read both switches
before the policy was made; the block moves after it and keeps #2182's
family gate (queue_priority_listed), its line for a family whose list is
not given or could not be read, and its refusal said only for the spec's
refusals (queue_priority_refused). Its line names the level and what chose
it (its switch, or this PC's default) instead of the switch's text, and the
device's line names the replay's level.

tests/test_queue_priority.py follows. Its source check reads
RX_VK_QUEUE_PRIORITY in device_policy_env into the policy, the presents'
switch and the gate in create_device. Its made-up driver runs the moved
block with the policy made by device_policy and device_policy_env, so
#2182's three cases of a list not given or unread expect the new line
("global priority low for the replay's queue (family N, by its switch)");
its other cases are as they were, and each now also prints the policy's
level and whether the row takes a restart once the device is made. New
cases run this PC's default on NVIDIA's Windows driver: low asked at 2x and
the row's restart; refused, the device made again without it, the level
none and no restart; off at the start, low looked for and not asked, with
a list and without; a family without low, the switch off, RX_VK_FRAMEGEN=0
and AMD's driver asking nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
What create_device asks of each queue's global priority, and when the
menu's Frame generation row takes a restart, were worked out inline, so
the policy test could only read their text: dropping the unasked level's
"continue" (FG Off or Auto then running at low while the log and the
policy said none), the menu's RX_VK_FRAMEGEN=0, or the restart's
condition all passed it.

device_policy.h's policy_rule now has them:
- framegen_at_start: the menu's multiplier, 0 where RX_VK_FRAMEGEN=0;
- replay_priority_follows_framegen: the replay's level follows frame
  generation (its default differs with it, its switch unset,
  RX_VK_FRAMEGEN not 0);
- queue_priority_look, _chained and _restart: the level looked for,
  whether it is only looked for, then, with the family's list read,
  whether it is asked and whether the row takes a restart.
create_device calls them, and the test runs them (queue_step's cases)
and checks create_device calls them in their order, the replay's queue
alone following frame generation. Each of nine mutations of the rules or
their calls fails the test.

The family's gate stays queue_priority_listed (#2182's), and
tests/test_queue_priority.py follows: its source check has the level
chained where queue_priority_chained lets it, and its made-up driver's
cases the new wording below, Auto at the start among them.

With Auto at the start the log line said "frame generation is off at the
start"; it says "not at a fixed multiplier (2x or more)", with the family's
list or without one. Nothing else
the game does changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
menu_row_takes_restart (vk_menu.cpp), which vk_main.cpp's create_device
calls for the Frame generation row where the replay's queue's global
priority follows it, had no check of what it does. The real
restart_init, row_restart_value, restart_changed and
menu_row_takes_restart, with menu_restart.h's State and framegen.cpp's
framegen_restart_value, run over a few rows of the check's own, one run
a case:
- the row's slot and name; its start value by its restart_value, so the
  multiplier the game started with and any other that runs with the
  same priority say nothing, while Off or Auto against 2x and up says
  Restart needed;
- asked again, the same slot; asked for a value no row has, nothing;
- the last slot left taken; with none left, no slot, the log saying so.

It fails on the last: with every slot of kMax taken the row still says
it takes a restart (Row::restart, what the control bridge reports as the
setting's restart), though no slot follows its value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
menu_row_takes_restart set Row::restart before asking menu_restart.h's
State for a slot. With every slot of kMax taken (15 of 16 are now: the
modules' 13 rows that take a restart, the Mods tab's, and Frame
generation's where the replay's queue's global priority follows it), the
row got none, so nothing compared its value with the start's, yet it
said it takes a restart: the control bridge reported the setting's
restart. The row now takes one only with its slot; with none it stays a
row that changes at once, and the log says there was no room.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test_menu_restart_slots.py counted only vk_menu.cpp's own rows[] table,
which since the rows moved to gpu/vk/menu/ has none that take a restart:
it said "0 rows take a restart, 16 slots" while 15 of the 16 were taken.
It now counts the modules' rows with .restart = true, the Mods tab's slot
(restart_init's mods_slot) and the rows made to take one while the game
runs (menu_row_takes_restart's callers: Frame generation's, vk_main.cpp),
and names them when they pass kMax. menu_restart.h's comment said the menu
had ten.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Frame generation row takes a restart where the replay's queue's global priority follows frame generation at the
start (NVIDIA's driver on Windows), but turned from a fixed multiplier to Off or Auto, or back, the frames changed at
once, at the priority made for the other. The real framegen_now and framegen_on, the start's line of create_device and
the row's restart value, compiled with stand-ins: fails on main for 4 of 7 cases (the multiplier and on/off that run
follow the menu at once); with no restart or no slot left, each change runs at once, as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Where the replay's queue's global priority follows frame generation at the start (NVIDIA's driver on Windows), the
Frame generation row said Restart needed between a fixed multiplier and Off or Auto, but the frames changed at once: 2x
turned Off ran without frame generation at the priority made for it, and Off turned to 2x made frames at the driver's
own priority, the uneven pacing the low one fixes.

create_device now holds frame generation's kind once the row has its slot (menu_row_takes_restart returns whether it
did; framegen_hold). framegen_running is what the renderer reads: the setting while it stays of the start's kind (a
fixed multiplier, or Off and Auto), else the last value of that kind, until the restart. framegen_now, framegen_on,
DLSS FG's inputs, FSR 3.1's frame interpolation, the FPS counter, the frame rate target, the auto-tune's guard, the
maker's name and the present trace read it. The row, the options file, the bridge and the restart still read the
setting, as do the pipeline list's values (Save my pipeline list: as the menu has them). Off and Auto change at once,
as do 2x to 8x, and with no restart or no slot each change runs at once, as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The player's page (Frame generation's row) and the control bridge's option_set: where the replay's queue's global
priority follows frame generation at the start, turning it on or off waits for the next start, and Off to Auto or one
multiplier to another applies at once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Frame generation runs in a window only (vk_framegen.cpp framegen_on), but create_device read the menu's saved
multiplier as frame generation at the start, and whether the replay's queue's level follows it, from the menu and
RX_VK_FRAMEGEN alone. A run with no window (HOS_HEADLESS: scripted and A/B runs) and 2x saved asked global priority
low for the replay's queue with NVIDIA's driver on Windows, which main does not, with no frame generated, and the
Frame generation row took a restart with nothing to wait for.

The check cuts create_device's two lines out of vk_main.cpp and compiles them with the real device_policy.h and
longshot_env.h; each case runs with its own environment. On this commit the three cases with no window fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Frame generation runs in a window only (vk_framegen.cpp framegen_on), so a run with no window (HOS_HEADLESS, read as
the host reads it) is frame generation off at the start, as RX_VK_FRAMEGEN=0 is: device_policy.h framegen_at_start and
replay_priority_follows_framegen take whether the run has a window. Scripted and A/B runs with no window and a fixed
multiplier saved no longer ask global priority low for the replay's queue with NVIDIA's driver on Windows, and the
Frame generation row takes no restart there.

tests/test_device_policy.py: the rules' cases with the new argument, and no-window cases; its source checks read the
new calls. tests/test_queue_priority.py's made-up driver: with HOS_HEADLESS nothing is asked or said, and the row takes no
restart. switches.def and the control bridge's page say it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The branch where vkCreateDevice refuses the level, or fails otherwise with it asked, and the device is made again without
it: the replay's queue then has the driver's own level, so frame generation's row must not take a restart (none would
have the level). No driver here refuses it: tests/test_queue_priority.py's made-up driver runs the branch with this PC's
default, refused (default_fg_refused) and failing out of host memory (default_fg_failed), and test_device_policy checks
create_device's text, the two lines after both logs and before the device made again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The guide's Graphics capture reviews the menu's sources, and this work changes six of them
(scripts/check_guide_screenshots.py --review-sources). The row takes a restart only where a device
is made with the replay's queue's priority following frame generation; the capture makes no device
and shows the compiled defaults, so the image is retained. The README records the review, as
earlier source reviews there do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Where the replay's queue's global priority follows frame generation at the start, the row takes a restart only with a
slot in the menu to follow its value (menu_row_takes_restart). With none left, frame generation turns on or off at once
while the device keeps the level it was made with, until the next start: the low level can stay with frame generation off,
or be missing once it is turned on. Nothing said so; the log now does, with the level kept. 15 of the menu's 16 slots are
taken today, so no run reaches it yet. tests/test_framegen_hold.py checks the line follows the restart's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The replay's queue asked for global priority low by default with NVIDIA's driver on Windows and a fixed frame
generation multiplier at the start. Measured under another program's GPU load, low costs much more than its pacing gain
is worth as a default (60.0 -> 19.4 fps at a 60 fps cap with a compute load at 8 of 10), so the default goes back to
main's: none asked, on every PC, and frame generation's row takes no restart. Low becomes a saved row of the Debug
tab's Developer section, Game queue priority (Off by default, Low), applied at the next start, with the measured gate
kept and RX_VK_QUEUE_PRIORITY over it either way.

- test_queue_priority: create_device's cases with the row at Off (default_*: nothing asked, nothing said, no restart;
  default_switch_low: the switch's low over it, no restart) and at Low (low_*: the former default's cases, and where
  Low asks nothing the log says why: its switch set, not NVIDIA's driver on Windows, frame generation kept off).
- test_device_policy: every PC at each frame generation level with the row at Off and at Low; the switch over the row
  both ways; replay_priority_follows_framegen with the row; game_queue_low_unused's reasons; the facts' line names the
  row; create_device fills the row into the facts before the policy.
- test_framegen_windowless_start: the row at Off asks nothing and follows nothing, in a window or not.
- test_menu_modules: the row after Present queue, Off or Low, its restart, out of the presets, held by the switch.
- test_menu_ini_keys: its key, game_queue_priority, in FROZEN.
- test_menu_env_overrides: RX_VK_QUEUE_PRIORITY holds the row for the run, the options file keeping the player's.

Each fails on this branch's head: the default asks low, and there is no row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The replay's queue's global priority low cost far more than its pacing gain as a default while another program uses
the GPU (60.0 -> 19.4 fps at a 60 fps cap with a compute load at 8 of 10, 3 pairs; 59.6 -> 36.6 at 5 of 10, 6 pairs).
So none is asked by default, on every PC, as on main, and Frame generation's row takes no restart.

- Game queue priority, a saved row of the Debug tab's Developer section right after Present queue (menu/threads.cpp,
  key game_queue_priority): Off by default or Low, applied at the next start, left alone by the presets. Low asks low
  for the replay's queue with NVIDIA's driver on Windows and a fixed frame generation multiplier (2x and up) at the
  start, the gate measured before (device_policy.h replay_queue_priority, now with the row); elsewhere it asks
  nothing and the log says why, once (game_queue_low_unused: RX_VK_QUEUE_PRIORITY set, not NVIDIA's driver on Windows,
  frame generation kept off for the run).
- framegen_hold, Frame generation's restart, the no-slot line and the reset after a refused priority follow from
  replay_priority_follows_framegen, which now needs the row at Low: with it at Off frame generation behaves as on main.
- RX_VK_QUEUE_PRIORITY still chooses over the row (any level, or an off word): menu_init holds the row for the run (a
  level shown as Low, an off word as Off; the options file keeps the player's), the row is locked and its line names
  the switch. Both read it by device_policy.h's queue_priority_switch_row, by parse_queue_priority, so the switch has
  one rule. Its switches.def row becomes player, following game_queue_priority=.
- The policy's facts line names the row (Low or Off). menu_restart.h kMax goes from 16 to 20: 16 rows take a restart.
- test_menu_env_overrides: its save() stand-in gains the row (a module's, saved under its key) and its env stand-in
  queue_priority_switch_row, cut from device_policy.h.
- Docs: the settings table's Debug line and Frame generation's (its restart wording no longer says "after a restart",
  which the website's table/menu check refused for a row that takes none by its own setting), the frame generation
  paragraph, control-bridge.md's restart, switches.md's settings for one run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The guide's Graphics capture reviews the menu's sources (scripts/check_guide_screenshots.py --review-sources), and the
row changes seven of them. It is on the Debug tab, Off by default, and Frame generation's row takes a restart only with
it at Low; the capture shows the Graphics tab with the compiled defaults, so the image is retained. The README records
the review, as the earlier source reviews there do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two mutations of the change went uncaught: queue_priority_switch_row taking a value device_policy_env ignores ("bogus",
"lowest") as Low or Off, and menu/threads.cpp's queue_priority_env never reading the switch in the game's build.

- test_menu_env_overrides: queue_priority_switch_row's reading, the stand-in cut from device_policy.h: a level (any case,
  medium to realtime too) Low, an off word Off, and an empty, unknown or unset value nothing, the row staying the
  player's.
- test_menu_modules: the menu model is built with MENU_LAYOUT_ONLY, without device_policy.h, so the game's branch of
  queue_priority_env is checked in menu/threads.cpp's text: queue_priority_switch_row(...) >= 0.

Both pass at 950e0d227's source. A third mutation, create_device's frame generation level read without the row, stays
uncaught because nothing can see it: queue_priority_look reads that level only where the level follows frame
generation, which needs the row at Low already.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
scripts/check_guide_screenshots.py --review-sources (the Guide screenshots check, on every pull request) reported seven
REVIEW REQUIRED inputs for settings-graphics.png on this branch (its base, the previous pull request, has none left),
and none on main: the two "Source review against <commit>" paragraphs of the guide README said the review was done, but
reviewed_source in manifest.json still held the old hashes. Frame generation's pictured label, values and help are
unchanged and the new row is on the Debug tab, so the image is kept: reviewed_source.files, its content-derived
revision and review.notes are updated, and source-review-36693701.md says what each of the seven inputs is. The two
README paragraphs (they named commits that were rebased away) become one line pointing at the review pages.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The menu and its Frame generation module read the frame generation that runs (framegen_running, vk_framegen.cpp, since
b7906ee3c) where they read the setting. scripts/screenshots/capture_menu.py compiles them and links them to
scripts/screenshots/menu.cpp's stand-ins for the renderer, which had none for it: the capture's program no longer linked.

The stand-in gives the row's value: the fixture has no device, so the row waits for no restart and what runs is what is
set, as the fixture drew it before. The image is not captured again. manifest.json's fixture_files takes menu.cpp's new
hash, and source-review-36693701.md, which said the fixture was unchanged, says what changed.

Not linked here: the capture needs Linux with SDL2 and libpng (scripts/screenshots/check_menu_capture.py is its check,
and no workflow runs it). On this Windows PC the menu's 40 files were compiled to objects with the capture's flags, on
main and here: framegen_running is the only symbol the objects ask for here and not on main, and the line compiles
against vk_framegen.h's declaration.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The rebase onto main fd68f82c met main's own reviews of settings-graphics.png (#2411's game rows, #2503 and #2513's
DLSS 5 rows) in docs/user/images/guide/manifest.json. Each side keeps its fingerprints; the inputs both sides changed
(gpu/vk/vk_internal.h, gpu/vk/vk_menu.cpp, gpu/vk/vk_menu.h and the fixture's scripts/screenshots/menu.cpp) are
recorded at the rebase, the content-derived revision covers main's 146 entries, and source-review-2183-fd68f82c.md
says why, as main's source-review-2503-fb724339.md did for a merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebase onto main 9b7aaea4 met main's own reviews of settings-graphics.png (#2582's DLSS 5 preset and model rows,
fingerprints; the inputs both sides changed (gpu/vk/device_policy.h and gpu/vk/vk_menu.cpp) are recorded at the
rebase, and source-review-2183-9b7aaea4.md says why, as source-review-2183-fd68f82c.md did at the previous rebase.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebase onto main 20bedc6d met main's #2705 (depth layouts), #1999 (FSR 4's compact builds flag in
gpu/vk/device_policy.h) and #2708 (the bug report's folder in gpu/vk/vk_menu.cpp) in
docs/user/images/guide/manifest.json. The inputs both sides changed (device_policy.h, vk_menu.cpp) are recorded at the
rebase, with vk_menu.h, whose fingerprint was that of #2183's file over main 68ab0bc7 and stale since main fc917e0b
(#1349); source-review-2183-20bedc6d.md says why, as the previous rebases' records did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebase onto main a845154d met main's #2439 (the mixed dot product flags in gpu/vk/device_policy.h and
gpu/vk/vk_internal.h), #2704 (the Anti-Lag row's value shared with the presentation threads, in gpu/vk/menu/framegen.cpp,
gpu/vk/vk_menu.cpp and gpu/vk/vk_menu.h) and #2184 (framegen_record's game present times in gpu/vk/vk_framegen.h) in
docs/user/images/guide/manifest.json. None changes a pictured row; the inputs both sides changed are recorded at the
rebase, and source-review-2183-a845154d.md says why, as the previous rebases' records did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebase onto main 9a23e32e met main's #2637 (the custom output size message in gpu/vk/vk_menu.cpp's
output_field_apply) in docs/user/images/guide/manifest.json. It does not change a pictured row; the input both sides
changed is recorded at the rebase, and source-review-2183-9a23e32e.md says why, as the previous rebases' records did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
main's #2456 made framegen_now and framegen_on (gpu/vk/vk_framegen.cpp) read dlssg_active(); test_framegen_hold.py's
fixture cuts both and had no stand-in for it, so it no longer compiled after the rebase onto main 22d0d200. Its stand-in
says Streamline makes no frames, as without it; the cases are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the Debug tab's Game queue priority row at Low and NVIDIA's driver on Windows, frame generation turned on or off waits
for the restart (framegen_hold, framegen_running) and its row says Restart needed. Under NVIDIA Streamline (#2456) the
frames are Streamline's, read from the row as it is (vk_dlssg.cpp rows_now): Fixed to Off stops them at once and takes no
restart there. The hold still kept framegen_running at the fixed multiplier, so the menu's lines and the FPS counter said
frame generation ran, and the row's restart was pending.

test_framegen_hold.py's stand-in for dlssg_active now makes the frames for the steps a case gives, and its menu slot
records the row's restart_value in the game's build (gpu/vk/menu/framegen.cpp). Steps with five numbers also check
framegen_running and whether the restart is pending. New cases: 2x at the start with Streamline (Off, Auto, 4x at once,
nothing pending), Streamline giving up during the run (the hold back from what ran), and the hold without Streamline
(pending while it holds, as before). On this head the two Streamline cases fail: as it runs 2, restart pending 1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the Debug tab's Game queue priority row at Low and NVIDIA's driver on Windows, turning frame generation on or off
waits for the next start (framegen_hold), as the replay's queue keeps the global priority it was made with. While NVIDIA
Streamline makes DLSS FG's frames (vk_dlssg.h dlssg_active, #2456), they follow the row as it is (vk_dlssg.cpp rows_now):
Fixed to Off stops them at once and asks for no restart. The hold went on regardless: framegen_running stayed at the
fixed multiplier, so the menu's lines and the FPS counter still said frame generation ran, and the row said Restart
needed.

- framegen_running holds nothing while dlssg_active(): each change runs at once, and the value it ran at is kept, so
  should Streamline give up during the run (on the GPU, or the Upscaler's engine not running here) the hold comes back
  from there, as without Streamline.
- framegen_restart_now, the row's restart_value in the game (menu/framegen.cpp framegen_row_restart): the start's kind
  while Streamline makes the frames after framegen_hold, so the row's restart is not pending for the queue. The layout-only
  build keeps framegen_restart_value (no Streamline there). The slot is still taken at the start, so the hold and its
  restart are there once Streamline gives up.
- Without Streamline (AMD FSR 3.1's frame interpolation, the built-in one, NGX's DLSS-G) nothing changes.

The replay's queue keeps its level until the next start under Streamline too; Streamline's own restart (Frame generation
by, dlssg_restart_needed: Fixed to Auto, Off or Auto to Fixed) is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The player's page (Frame generation's row and the frame generation paragraph) and the control bridge's restart: with the
Game queue priority row at Low and NVIDIA's driver on Windows, turning frame generation on or off waits for the next
start, except while Streamline makes DLSS FG's frames, where Fixed to Off changes at once and the row asks for no restart
for the replay's queue, which keeps its level until the next start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebase onto main 22d0d200 met #2456 (DLSS FG through NVIDIA Streamline), #2414 and #2182's squash in six of the
Graphics capture's inputs both sides changed (device_policy.h, menu/framegen.cpp, menu_restart.h, vk_framegen.h,
vk_menu.cpp, the fixture's menu.cpp); the change for Streamline then touched menu/framegen.cpp and vk_framegen.h again.
None changes a pictured row (the capture has Frame generation Off, and the layout-only build keeps
framegen_restart_value), so the image is kept: their fingerprints and the content-derived revision are recorded, and
source-review-2183-22d0d200.md says why. The twelve REVIEW REQUIRED inputs left are among main's fourteen, none changed
here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's #2724 recaptured settings-graphics.png from b31dccae and removed the README's
"Source review against 34f862d2" paragraph, which reviewed the image before it. The rebase
onto main 3c95873f had brought it back with the branch's own source-review paragraphs;
the README now keeps only the branch's line that points at its review pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebase onto main e203e04b met #2730 (the Maxwell BC4 pass split) in device_policy.h, one of the Graphics capture's
inputs both sides changed. It adds a policy field and its log line, no menu row, so the image is kept: the file's
fingerprint and the content-derived revision are recorded, and source-review-2183-e203e04b.md says why. No REVIEW
REQUIRED input is left for this image; main e203e04b reports this one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs(guide): record the Graphics image's inputs at the rebase onto main 01d6878b
Some checks failed
PR description / Title and description (pull_request_target) Successful in 9s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
d23091e69b
The rebase onto main 01d6878b met #2786 (Pause in background) in vk_menu.cpp and vk_menu.h, two of the Graphics
capture's inputs both sides changed. It adds an option and the value it publishes for the Gameplay tab's row, no Graphics
row, so the image is kept: the files' fingerprints and the content-derived revision are recorded, and
source-review-2183-01d6878b.md says why. The one REVIEW REQUIRED input left for this image, game/oot_cheat_items.h, is
main 01d6878b's own (#2785), reported there too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Game-free checks, failing before the change: the Frame generation by row's choice and the FPS counter read DLSS FG
(Streamline) while NVIDIA Streamline makes the frames, the row's line says so, and says that DLSS or DLAA brings it in
where the Upscaler row alone keeps it out (dlssg_rules.h upscaler_keeps_out, vk_dlssg.h dlssg_upscaler_keeps_out);
NVIDIA Reflex's line says Off is On and its frame limit under Streamline; the row's restart is named Frame generation
(Streamline) by a Setting's restart_name; the restart lines and help are reworded; every new text has its 13
translations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
While Streamline makes DLSS FG's frames, the Frame generation by row's choice and the FPS counter read DLSS FG
(Streamline) (framegen_dlss_name), the row's line says the frames come through Streamline at even times, and NVIDIA
Reflex's line says Streamline keeps Reflex on (Off is On) and holds the frames shown under the refresh with V-Sync On
or Auto. Where Streamline could start but the Upscaler row is another than DLSS or DLAA, the row's line says NGX makes
the frames without its pacing and DLSS or DLAA brings it (dlssg_upscaler_keeps_out, the smallest accessor: the rule in
dlssg_rules.h on the restart's own start and could). The restart is named Frame generation (Streamline) (a Setting's
restart_name, as the restart line and question say it), its two lines and the row's help are reworded (the help no
longer says only "Changes at once"), with their 13 translations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The player's page (Frame generation by and NVIDIA Reflex, the frame generation paragraph), the Upscalers reference
(the restart's name, what the menu says, Running or where the Upscaler keeps Streamline out) and the menu's
architecture (a Setting's restart_name).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Five of the Graphics capture's inputs change (menu/framegen.cpp, menu/framegen.h, menu_model.h, vk_menu.cpp, the
fixture's menu.cpp). None changes a pictured row: the capture has Frame generation Off, so Frame generation by is hidden,
and the fixture has no Reflex nor Streamline; measure_help's height is the same before and after at every help width
measured, so the help box keeps its height. The image is kept: their fingerprints and the content-derived revision are
recorded, and source-review-menu-streamline-wording.md says why. menu_i18n.h, changed here too, stays among the
twelve REVIEW REQUIRED inputs #2183 leaves, among main 22d0d200's fourteen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Under NVIDIA Streamline, NVIDIA Reflex On names Reflex's frame limit whatever DLSS-G does, but vk_dlssg.cpp
frame_limit_us sets none while it makes no frames (Frame generation Off, or paused in the game's own menus); and On +
Boost reads On's line, though apply_reflex asks Streamline for eLowLatencyWithBoost, the GPU's clocks kept up. The check
now runs hn_reflex with DLSS-G making frames, making none and paused, and wants the limit said only while it makes them,
and Boost's clocks said at On + Boost; the three new lines are wanted in every translation table, checked after the
row's own checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Under NVIDIA Streamline, NVIDIA Reflex On said the frames shown stay just under the display's refresh whatever DLSS-G
did, but frame_limit_us sets that limit only while it makes frames: with Frame generation turned Off, or while the
game's own menus pause it, no limit applies. And On + Boost read On's line, though apply_reflex asks Streamline for
eLowLatencyWithBoost. hn_reflex now picks, at On and at On + Boost, the line with the limit while DLSS-G makes frames
(framegen_maker() is Dlss under Streamline: dlssg_making() == 1) and one without it otherwise, Boost's saying the GPU's
clocks are kept up; three new lines, translated in the 13 tables. Off's line and every line without Streamline are as
before.

The Graphics guide image is kept: the NVIDIA Reflex row is hidden in the capture, and its tallest help stays shorter
than the Frame generation by row's in every language, so the help box keeps its height. framegen.cpp's fingerprint and
the review revision are recorded again; upscalers.md and graphics-and-controls.md say when the limit is named.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
so menu_i18n.h, which the branch had left among #2183's REVIEW REQUIRED inputs, and vk_dlssg.h asked for review. Neither
changes the picture: menu_i18n.h has the translations of this branch's texts for rows the English capture hides, and
vk_dlssg.h declares dlssg_upscaler_keeps_out, which the fixture stands in for. Their fingerprints (from the commit's
blobs) and the content-derived revision are recorded, with a sentence in the notes for them and for NVIDIA Reflex's
lines; source-review-menu-streamline-wording.md says why.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since the rebase onto #2183's 44180edc3 it is recorded; the paragraph says what held at 22d0d200, and points at the
section that records it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With NVIDIA Streamline making the frames, the FPS counter reads "Base 60, DLSS FG (Streamline)". While the menu is open
it is drawn under the banner, at the top right, and at Large in a 1920x1080 window it covers the end of the help box's
title ("Frame generation by"); #2183's "Base 60, DLSS FG" does not reach it. The check now wants framegen_maker_name to
be DLSS FG under Streamline, the Frame generation by row's choice still DLSS FG (Streamline), and no name the counter
shows longer than DLSS FG paused, the longest it had before this branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Under NVIDIA Streamline the FPS counter read "Base 60, DLSS FG (Streamline)". While the menu is open it is drawn under
the banner, at the top right, and at Large in a 1920x1080 window that covered the end of the help box's title
("Frame generation by"). framegen_maker_name now names DLSS FG's frames DLSS FG whoever makes them, as #2183 did: the
counter takes no more room than before this branch, in any language. The Frame generation by row's choice still reads
DLSS FG (Streamline) and its line says Streamline makes the frames, so the menu still says who makes them; "SL" or
another short tag would be a name the menu uses nowhere else. Nothing to translate: neither name is in the tables.

The Graphics guide image is kept: the fixture draws no FPS counter, and the Frame generation by row is hidden in the
capture. The fingerprints of vk_menu.cpp, menu/framegen.cpp and menu/framegen.h (comments) and the review revision are
recorded again; graphics-and-controls.md and upscalers.md say what the counter reads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Under NVIDIA Streamline, Reflex's frame limit is not the row's: apply_reflex asks Streamline for at least On, and
frame_limit_us reads DLSS-G's mode alone, so at Off the frames shown are held under the refresh as at On. Off's line
said only that Off is On. And every line that names the limit is read with the Insert menu open, where
dlssg_before_present turns DLSS-G off ("the Insert menu is open"), and the limit with it, while dlssg_making() keeps
its value: the limit applies once the menu is closed.

test_framegen_by_row now asks, at Off as at On and On + Boost, for the limit while DLSS-G makes frames and none
otherwise, and for "With this menu closed" in every line that names it; test_menu_i18n asks for the new texts in
every table. Both fail here.

It also checks the case the Frame generation by row had none for: Streamline running before any frame is made
(framegen_maker() None) at DLSS FG, where the choice reads DLSS FG (Streamline) and the line is the choice's own.
That one passes here: it pins what the row already does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Under NVIDIA Streamline, Off is On and Reflex's frame limit follows DLSS-G alone (apply_reflex, frame_limit_us), so
Off's line now has the same two forms as On's: without the limit while DLSS-G makes no frames, and with it while it
makes them ("NVIDIA Streamline keeps Reflex on: Off is On here. With this menu closed and V-Sync On or Auto, ...").
The lines are read with the Insert menu open, where DLSS-G is off and so is the limit (dlssg_before_present): the
three lines that name it now say "With this menu closed and V-Sync On or Auto". hn_reflex's Streamline lines are one
table for Off, On and On + Boost; its variants are the value's, then making none, then making frames, for each value.

The three lines in the 13 translations (menu_i18n.h, sorted); upscalers.md's "What the menu says" and the guide's
NVIDIA Reflex row say the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Where Streamline has not started but could (its files there, DLSS FG running here as far as NGX knows), a change to
DLSS FG applies at once, with NGX's frames, and closing the menu asks for the restart that brings Streamline in
(dlssg_rules.h restart_needed, not started; the row's line says so). The row's help said "Changes at once, or after a
restart where NVIDIA Streamline makes the frames": nothing of that restart. test_framegen_by_row asks the help for it
too, and test_menu_i18n for its translations. Both fail here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The help said "Changes at once, or after a restart where NVIDIA Streamline makes the frames". Where Streamline has not
started but could, the choice is indeed at once (NGX's frames), but closing the menu then asks for the restart that
brings Streamline in, and the help said nothing of it. It now ends "Where Streamline could make them, a restart brings
it in.", in the 13 languages. measure_help (the box's reserved height) is unchanged in all 14 languages at nine widths
(the Frame generation by row at most 77% of the tallest box, in Japanese). upscalers.md says the help's two restarts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
menu/framegen.cpp and menu_i18n.h change NVIDIA Reflex's lines and the Frame generation by row's help, both rows hidden
in the capture; measure_help keeps its height in all 14 languages. Their fingerprints and the content-derived revision
are recorded again, with a section in source-review-menu-streamline-wording.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
"startet ein Neustart es" put the object last; the sentence now says Streamline starts after a restart.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only the German translation of the Frame generation by row's help changes; the row is hidden in the capture.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
While Streamline runs, the rows that take the restart ask DLSS FG for no frames (dlssg_rules_test.cpp now checks it), so
the Frame generation by row's line must not say Streamline makes them until the restart. NVIDIA Reflex's Off line shown
while DLSS-G makes none must not tie Reflex's being on to making frames: apply_reflex keeps it at least On while
Streamline runs. The translations of the frame limit's lines keep 116 and 120.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
While Streamline runs, a change that stops it at the restart (Auto, Built-in FG, FSR 3.1 FG) leaves the rows asking
DLSS FG for no frames and no other maker beside it: the Frame generation by row's line said Streamline made DLSS FG's
frames until the restart; it now says no frames are made until then. NVIDIA Reflex's Off line while DLSS-G makes none
said Streamline kept Reflex on "while it makes DLSS FG's frames", though apply_reflex keeps it at least On whenever
Streamline runs; it now reads "NVIDIA Streamline keeps Reflex on: Off is On here.". In the 13 tables, and in
upscalers.md (its paragraph reflowed to 120 columns) and graphics-and-controls.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rows hidden in the capture; measure_help unchanged at nine widths in all 14 languages. The review page's first section
says its nine languages were measured at that change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs(guide): the Streamline wording's review names the help box's "before" commit as rebased onto #2183's d23091e69
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
864593a683
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Where DLSS-G makes the frames through NGX (an RTX 40 or 50, Frame generation
by DLSS FG, a temporal Upscaler), Auto runs it at the highest multiplier from
2 to its most + 1 with cap x M at most the refresh x 1.005: 2x at 60 fps from
119.88 Hz, 3x from 179.82 Hz and 4x from 239.76 Hz on an RTX 50. Uncapped
takes 2x from 120 Hz. Where 2x does not fit, Auto stays the renderer's own.

The rule's value is taken once it has held for 2 s, at once on choosing Auto,
at NGX's first answer and when DLSS-G stops making frames, once a present on
the replay's thread before framegen_record; framegen_now gives it. The log
says each change. RX_VK_FG_AUTO_DLSS=0 keeps Auto as before. NVIDIA
Streamline runs are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
framegen_record's branch, init's log line and vk_dlss.cpp's depth and motion
for DLSS-G told Auto apart by the row's value (framegen_running), so Auto at
DLSS FG's multiplier would run the renderer's own a frame a refresh and give
DLSS-G nothing. They read the multiplier as it runs, framegen_now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
framegen_record's branch, init's log line and dlss_fg_inputs read the
multiplier as it runs (framegen_now), not the row's Auto: Auto at DLSS FG's
multiplier takes the fixed multiplier's sets, pacing and inputs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Frame generation reads "Auto (DLSS FG)" while DLSS-G makes Auto's frames,
and its line says so. Frame generation by says why not where Auto is the
renderer's own: DLSS FG's 2x is more frames than the display shows at the
game's frame rate cap, or RX_VK_FG_AUTO_DLSS=0. Elsewhere it gives DLSS-G's
own reason, as at a fixed multiplier. Translated in every language.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The player's guide says what Auto does at DLSS FG and its switch; the
upscalers reference gives the rule, when it is taken and the rows' lines;
the frame generation presents' rules apply to Auto at DLSS FG's multiplier.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Five of the Graphics capture's inputs change (menu/framegen.cpp,
framegen_rows.h, vk_framegen.h, vk_menu.h, the fixture's menu.cpp). None
changes a pictured row: the capture has Frame generation Off, and the help
shown is the Quality preset's. The image is kept: their fingerprints and
the content-derived revision are recorded, and source-review-auto-dlss.md
says why. The twelve REVIEW REQUIRED inputs left are #2183's, none changed
here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#2738's review records gpu/vk/menu_i18n.h, which the earlier base left
unrecorded: this change's translations of Auto's four new texts, on rows
hidden in the capture, are recorded at the rebase, with the review
revision recomputed for its 147 inputs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The check cut its source with a brace counter of its own; it now uses tests/srccut.py, with a marker that matches
dlss_fg_inputs' definition only. The order check looked for a framegen_record after the update anywhere in
vk_replay.cpp, so the update moved after do_present's first record still passed: it now compares within do_present.
A 119.4 Hz row fails if the 1.005 slack widens (1.006 makes it 2x). test_framegen_dlss_cap's Auto text check names
DLSS FG too, and no longer says DLSS FG makes fixed multipliers only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs: Auto by DLSS FG needs a temporal Upscaler, and the guide's first review names the revision it saw
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
0bc29b961d
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: Windows 11, RTX 4090, NVIDIA 621.24. At this head (0bc29b961): full screen on a 2560x1440 120 Hz virtual display, Hyrule Field, DLSS, Frame generation Auto by DLSS FG, cap 60: Auto by DLSS FG at 2x (120.00 Hz, cap 60), FIFO, 600 of 600 presents made by DLSS-G, a clean exit. Before the rebase onto #2738 (8658e99e9): the Measurements' series on a 5120x1440 240 Hz VRR display, Hyrule Field and Market, cap 60, DLSS-G at 2x in every Auto run's measured stretch.

Tested in game: Windows 11, RTX 4090, NVIDIA 621.24. At this head (0bc29b961): full screen on a 2560x1440 120 Hz virtual display, Hyrule Field, DLSS, Frame generation Auto by DLSS FG, cap 60: `Auto by DLSS FG at 2x (120.00 Hz, cap 60)`, FIFO, 600 of 600 presents made by DLSS-G, a clean exit. Before the rebase onto #2738 (8658e99e9): the Measurements' series on a 5120x1440 240 Hz VRR display, Hyrule Field and Market, cap 60, DLSS-G at 2x in every Auto run's measured stretch.
Author
Contributor

Screenshots of the same spot on main and here: Windows 11, RTX 4090, NVIDIA 621.24, full screen on a 2560x1440 120 Hz display, from kokiri-start, DLSS, Frame generation Auto, by DLSS FG, cap 60 (Testing says how they were taken).

  • main: the shared base's runtime, 22d0d200 (main's commits since then add rows to the Gameplay and Audio tabs, none to Graphics). Its log: FSR 3.1 makes the presents.
  • Here: 0bc29b961. Its log: Auto by DLSS FG at 2x (120.00 Hz, cap 60), 600 of 600 presents made by DLSS-G.
main 22d0d200 this PR
Frame generation: Auto names who makes its frames, and its help line main this PR
Frame generation by: whether DLSS FG makes Auto's frames main this PR
Screenshots of the same spot on `main` and here: Windows 11, RTX 4090, NVIDIA 621.24, full screen on a 2560x1440 120 Hz display, from `kokiri-start`, DLSS, Frame generation Auto, by DLSS FG, cap 60 (Testing says how they were taken). - `main`: the shared base's runtime, 22d0d200 (main's commits since then add rows to the Gameplay and Audio tabs, none to Graphics). Its log: FSR 3.1 makes the presents. - Here: 0bc29b961. Its log: `Auto by DLSS FG at 2x (120.00 Hz, cap 60)`, 600 of 600 presents made by DLSS-G. | | `main` 22d0d200 | this PR | |---|---|---| | Frame generation: Auto names who makes its frames, and its help line | ![main](https://git.magicbean.dev/attachments/97c20d33-4d0c-441b-a1a5-90e8bc9c64ca) | ![this PR](https://git.magicbean.dev/attachments/e08c23e8-1fc6-4dae-afcf-0936e193dacd) | | Frame generation by: whether DLSS FG makes Auto's frames | ![main](https://git.magicbean.dev/attachments/920f18ff-d016-4ff1-939f-601fdcece795) | ![this PR](https://git.magicbean.dev/attachments/f5d6922f-7c2e-4040-991a-8799aea0b67c) |
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The new selection reads the frame-rate setting across threads without synchronization. It also introduces a measured 121–159 ms transition hitch and reduces displayed frames from about 230 to 120 per second on the tested 240 Hz RTX 4090 setup.

Auto can use NVIDIA DLSS Frame Generation through NGX without requiring the player to choose a fixed multiplier. The tested path works, but it changes pacing, uses about 0.5–0.6 GB more VRAM, and can show substantially fewer frames than the previous Auto mode.

Blocking (2): must change before merging.

  1. L1 gpu/vk/vk_framegen.cpp:1229: The replay thread reads the menu's plain fps_cap field while the display thread can write it. (more on the line) Do: Publish the effective cap through an atomic or protect both the menu write and replay-thread read with the same lock.
  2. L5: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

Testing before merging (2) (runs on the systems it can change)

  • L2 gpu/vk/framegen_rows.h:100: Automatically switching the multiplier introduces a visible long frame during play. (more on the line) Do: Move feature and resource preparation off the critical transition, or otherwise avoid the synchronous recreation, then repeat the five-cycle transition measurement. (@fix does its part first: Prepare the DLSS-G feature and its resources ahead of the switch or avoid blocking the frame on their recreation.)
  • L4 gpu/vk/vk_framegen.cpp:1231: The new NGX path still needs the supported hardware and exit checks listed in the PR. (more on the line) Do: Compare repeated base Fixed 2x exits with this Auto path, and run Auto on Linux RTX 40 and Windows RTX 50 at the listed multipliers.

Decisions for the author (1) (they don't hold the recommendation)

  • L3 gpu/vk/framegen_rows.h:78: The default trades away a large portion of Auto's displayed frames on RTX 40 high-refresh displays. (more on the line) Do: Choose whether DLSS-G should replace the previous refresh-matching behavior in this case; preserve the previous default where the available multiplier leaves that much refresh unused if the smoother output is preferred. (@fix does its part first: Keep the previous Auto path when the available DLSS-G multiplier cannot approach the display refresh.)

@fix can do L1, L2 and L3.

Checks: Still running: 10 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the requested feature: the head ran DLSS-G at 2x and made 600 of 600 presents on the tested Windows RTX 4090. The five-run measurements also show the costs: about 230 to 120 displayed frames per second at 240 Hz VRR and 121.5–159.1 ms frames when switching into DLSS-G.

Other systems: The selection affects NGX frame generation, swapchain mode, pacing and memory on supported NVIDIA GPUs. Streamline behavior was tested on Windows; Linux NGX and RTX 50 multipliers remain untested. AMD, Intel and RTX 30 fallback runs are also outstanding. Two of 61 DLSS-G runs lost the device on exit, with no comparable baseline yet.

Switches: RX_VK_FG_AUTO_DLSS is added, defaults on, and 0 restores the previous Auto behavior. Its default needs reconsideration in light of the measured loss of displayed frames and transition hitch; it is documented in switches.def and the reference table.

Reviewed: 0bc29b961d against 01d6878b3f: Read AGENTS.md, CONTRIBUTING.md, the PR template, the relevant standards sections, framegen_rows.h, the Auto DLSS diff, and surrounding selection, input and pacing paths. Skimmed the remaining stacked changes, tests, translations and guide records; the full changed code and every repository rule were not reviewed. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • The new multiplier state is atomic and the settle state is written on the replay thread.
  • The new switch is listed in switches.def and documented.
  • The reported head run demonstrates the intended 2x NGX path and FIFO swapchain on Windows RTX 4090.

Testing: Read-only review; no builds, scripts or tests were run. The supplied CI checks are still running.

Overlaps and merge order: Stacked on #2738, which is stacked on #2183; merge those first.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The new selection reads the frame-rate setting across threads without synchronization. It also introduces a measured 121–159 ms transition hitch and reduces displayed frames from about 230 to 120 per second on the tested 240 Hz RTX 4090 setup. Auto can use NVIDIA DLSS Frame Generation through NGX without requiring the player to choose a fixed multiplier. The tested path works, but it changes pacing, uses about 0.5–0.6 GB more VRAM, and can show substantially fewer frames than the previous Auto mode. **Blocking (2)**: must change before merging. 1. **L1** `gpu/vk/vk_framegen.cpp:1229`: The replay thread reads the menu's plain fps_cap field while the display thread can write it. (more on the line) **Do:** Publish the effective cap through an atomic or protect both the menu write and replay-thread read with the same lock. 2. **L5**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Testing before merging (2)** (runs on the systems it can change) - **L2** `gpu/vk/framegen_rows.h:100`: Automatically switching the multiplier introduces a visible long frame during play. (more on the line) **Do:** Move feature and resource preparation off the critical transition, or otherwise avoid the synchronous recreation, then repeat the five-cycle transition measurement. *(`@fix` does its part first: Prepare the DLSS-G feature and its resources ahead of the switch or avoid blocking the frame on their recreation.)* - **L4** `gpu/vk/vk_framegen.cpp:1231`: The new NGX path still needs the supported hardware and exit checks listed in the PR. (more on the line) **Do:** Compare repeated base Fixed 2x exits with this Auto path, and run Auto on Linux RTX 40 and Windows RTX 50 at the listed multipliers. **Decisions for the author (1)** (they don't hold the recommendation) - **L3** `gpu/vk/framegen_rows.h:78`: The default trades away a large portion of Auto's displayed frames on RTX 40 high-refresh displays. (more on the line) **Do:** Choose whether DLSS-G should replace the previous refresh-matching behavior in this case; preserve the previous default where the available multiplier leaves that much refresh unused if the smoother output is preferred. *(`@fix` does its part first: Keep the previous Auto path when the available DLSS-G multiplier cannot approach the display refresh.)* `@fix` can do L1, L2 and L3. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the requested feature: the head ran DLSS-G at 2x and made 600 of 600 presents on the tested Windows RTX 4090. The five-run measurements also show the costs: about 230 to 120 displayed frames per second at 240 Hz VRR and 121.5–159.1 ms frames when switching into DLSS-G. **Other systems:** The selection affects NGX frame generation, swapchain mode, pacing and memory on supported NVIDIA GPUs. Streamline behavior was tested on Windows; Linux NGX and RTX 50 multipliers remain untested. AMD, Intel and RTX 30 fallback runs are also outstanding. Two of 61 DLSS-G runs lost the device on exit, with no comparable baseline yet. **Switches:** RX_VK_FG_AUTO_DLSS is added, defaults on, and 0 restores the previous Auto behavior. Its default needs reconsideration in light of the measured loss of displayed frames and transition hitch; it is documented in switches.def and the reference table. **Reviewed:** 0bc29b961d30 against 01d6878b3f14: Read AGENTS.md, CONTRIBUTING.md, the PR template, the relevant standards sections, framegen_rows.h, the Auto DLSS diff, and surrounding selection, input and pacing paths. Skimmed the remaining stacked changes, tests, translations and guide records; the full changed code and every repository rule were not reviewed. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - The new multiplier state is atomic and the settle state is written on the replay thread. - The new switch is listed in switches.def and documented. - The reported head run demonstrates the intended 2x NGX path and FIFO swapchain on Windows RTX 4090. **Testing:** Read-only review; no builds, scripts or tests were run. The supplied CI checks are still running. **Overlaps and merge order:** Stacked on #2738, which is stacked on #2183; merge those first. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -69,0 +75,4 @@
/// shows: cap x M at most the refresh x 1.005, the slack taking a /1.001 mode (119.88 Hz) as its round rate. 2x from 120 Hz
/// at 60, 3x from 180 Hz, 4x from 240 Hz. Uncapped: 2x from 120 Hz
inline int auto_dlss_multiplier(int refresh_mhz, int cap_fps, int dlss_most) {
if (dlss_most <= 0) return 0;
Member

L3 (blocking): The default trades away a large portion of Auto's displayed frames on RTX 40 high-refresh displays.

When: At 60 fps on the tested 240 Hz RTX 4090, the runtime only offers 2x, so this rule selects 120 displayed frames per second where the previous Auto showed about 225–231. Existing Auto users receive this change without changing their settings.

Do: Choose whether DLSS-G should replace the previous refresh-matching behavior in this case; preserve the previous default where the available multiplier leaves that much refresh unused if the smoother output is preferred.

**L3** (blocking): The default trades away a large portion of Auto's displayed frames on RTX 40 high-refresh displays. *When:* At 60 fps on the tested 240 Hz RTX 4090, the runtime only offers 2x, so this rule selects 120 displayed frames per second where the previous Auto showed about 225–231. Existing Auto users receive this change without changing their settings. **Do:** Choose whether DLSS-G should replace the previous refresh-matching behavior in this case; preserve the previous default where the available multiplier leaves that much refresh unused if the smoother output is preferred.
@ -69,0 +97,4 @@
s.pending = -1;
} else if (s.value <= 0 || candidate == 0) {
s.value = candidate, s.pending = -1;
} else if (candidate != s.pending) { // (a new value: its hold starts now)
Member

L2 (blocking): Automatically switching the multiplier introduces a visible long frame during play.

When: On the tested RTX 4090, changing the cap from 144 to 60 causes Auto to switch to DLSS-G after the hold and produces a 121.5–159.1 ms frame in each of five changes; the cap change alone produced no frame over 50 ms.

Do: Move feature and resource preparation off the critical transition, or otherwise avoid the synchronous recreation, then repeat the five-cycle transition measurement.

**L2** (blocking): Automatically switching the multiplier introduces a visible long frame during play. *When:* On the tested RTX 4090, changing the cap from 144 to 60 causes Auto to switch to DLSS-G after the hold and produces a 121.5–159.1 ms frame in each of five changes; the cap change alone produced no frame over 50 ms. **Do:** Move feature and resource preparation off the critical transition, or otherwise avoid the synchronous recreation, then repeat the five-cycle transition measurement.
@ -1187,0 +1226,4 @@
static framegen_rows::AutoSettle settle;
const int before = settle.value;
int rule = -1; // (not Auto: none)
const int refresh = display_refresh_mhz(), cap = menu_fps_cap();
Member

L1 (blocking): The replay thread reads the menu's plain fps_cap field while the display thread can write it.

When: Changing Game frame rate cap in the menu writes opts.fps_cap while each present calls menu_fps_cap(), whose fps_cap_now() reads that same int without a lock or atomic access. This is a C++ data race and can make the selected multiplier undefined.

Do: Publish the effective cap through an atomic or protect both the menu write and replay-thread read with the same lock.

**L1** (blocking): The replay thread reads the menu's plain fps_cap field while the display thread can write it. *When:* Changing Game frame rate cap in the menu writes opts.fps_cap while each present calls menu_fps_cap(), whose fps_cap_now() reads that same int without a lock or atomic access. This is a C++ data race and can make the selected multiplier undefined. **Do:** Publish the effective cap through an atomic or protect both the menu write and replay-thread read with the same lock.
@ -1187,0 +1228,4 @@
int rule = -1; // (not Auto: none)
const int refresh = display_refresh_mhz(), cap = menu_fps_cap();
if (framegen_running() == 1) // (Streamline makes its own frames, framegen_now: none of this file's then)
rule = off || dlssg_active() ? 0 : framegen_rows::auto_dlss_multiplier(refresh, cap, dlss_fg_most());
Member

L4 (should fix): The new NGX path still needs the supported hardware and exit checks listed in the PR.

When: The author reports two device losses in 61 Auto DLSS-G exits, and has not yet compared Fixed 2x on the base. Linux RTX 40 and Windows RTX 50 Auto multipliers have not run.

Do: Compare repeated base Fixed 2x exits with this Auto path, and run Auto on Linux RTX 40 and Windows RTX 50 at the listed multipliers.

**L4** (should fix): The new NGX path still needs the supported hardware and exit checks listed in the PR. *When:* The author reports two device losses in 61 Auto DLSS-G exits, and has not yet compared Fixed 2x on the base. Linux RTX 40 and Windows RTX 50 Auto multipliers have not run. **Do:** Compare repeated base Fixed 2x exits with this Auto path, and run Auto on Linux RTX 40 and Windows RTX 50 at the listed multipliers.
Jiro113 force-pushed fix/auto-framegen-dlssg from 0bc29b961d
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 87357e9b38
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-29 23:20:48 +00:00
Compare
Author
Contributor

Answer to BeanBot's review of 2026-11-29 (request changes, at 0bc29b96). The branch is now rebased onto main cb0a2763
(#2738, and #2183 with it, merged), head 87357e9b3. L1 and L2 are fixed, each as a test commit and then the fix; L3 is
kept by the author's decision; L4 stays in Still to test; L5 is done by the rebase. A cold review of the fixes (a second
agent, nothing posted) found three more points, fixed in one more test-then-fix pair (6f3d245bf, then 8aba7f216): they
are under L1 and L2 below.

L1 (gpu/vk/vk_framegen.cpp:1229): the cap read across threads

Confirmed. With frame generation on, present_image (and with it menu_tick) runs on the display thread
(vk_framegen.cpp display_main), and the control bridge's menu_setting_set runs on its own: both write
opts.fps_cap under menu_mu. framegen_auto_dlss_update read it on the replay's thread through
menu_fps_cap() → fps_cap_now(), with no lock.

Fixed in 0e64906ab, test first in 47edeb53a:

  • vk_menu.cpp publishes the cap in effect (fps_cap_now(), HOS_FPS_MAX included) in an atomic,
    fps_cap_published, under menu_mu: at menu_init, so the first present already has the options file's cap (Auto's
    settle takes its first value at once, so a 0 there would have made the sets and the swapchain twice), and at the end
    of every menu_tick, after its input and the bridge's settings. That is what fps_level_now already does. Since
    the cold review, the bridge's menu_setting_set also publishes at once (8aba7f216), so a run with no menu_tick
    (HOS_HEADLESS) does not keep an old cap.
    menu_fps_cap() reads the atomic; the performance summary reads it too.
  • Not menu_mu on the replay's side: it is held for a whole menu_tick, and vk_menu.cpp already records a present held
    by it (bridge_probe_first).
  • tests/test_framegen_auto_dlss.py compiles the real fps_cap_now, publish_fps_cap and menu_fps_cap with a row
    value that counts the reads made without menu_mu: it failed before the fix (menu_fps_cap reads the Game frame rate cap row (opts.fps_cap) outside menu_mu) and passes with it; it also checks that menu_init, menu_tick and
    menu_setting_set publish, a call left in a comment not counting.
  • Left as it is: framegen_running() reads opts.framegen the same way, and the replay reads other rows plainly
    (opts.upscale, opts.sharpness in do_present). That pattern predates this PR and is not widened here.

L2 (gpu/vk/framegen_rows.h:100): the long frame at Auto's change

Found with Tracy (RTX 4090, temporary zones not committed, on the 2560x1440 120 Hz virtual display, 3 changes each way).
The long frame is NGX, not the swapchain or the sets:

longest frame after the change NGX makes DLSS-G's feature (replay's thread) NGX lets it go sets, swapchain, GPU idle
Auto, cap 144 → 60 (into DLSS-G) 157–206 ms 149–196 ms – 22 ms at most
Auto, cap 60 → 144 (out of it) 69–86 ms – 39–54 ms 22 ms at most
Fixed 2x by DLSS FG, Off → 2x 146–258 ms 139–246 ms –
Fixed 2x by DLSS FG, 2x → Off 54–98 ms – 47–69 ms

So it is DLSS-G's existing cost, which Fixed pays at the click. Auto paid it 2 s after the cap changed (the hold), and in
both directions, because do_present let the feature go whenever DLSS-G was not making the frames (dlss_fg_idle).

Fixed in 9dcf15d21, test first in f8f97af6b, limited after the cold review in 8aba7f216:

  • framegen_auto_dlss_keeps: while Auto is the renderer's own because DLSS FG's 2x does not fit (the rule's 1), the
    feature is kept for the way back, once Auto itself has run DLSS-G since it was chosen (auto_dlss_back). A feature a
    Fixed multiplier made is let go when Auto comes at 1, as before this PR: on a 60 Hz display, say, the way back would
    be cap 30 alone. Off, a fixed multiplier and DLSS FG making no frames (the rule's 0: no temporal
    Upscaler, NGX gave up, Streamline) let it go, as before. DLSS-G's history starts again on the way back
    (dlss_fg_inputs drops its last inputs below 2x, and the sequence gap resets), as each 600-present summary shows
    ("1 told to reset").

  • The cost: DLSS-G's video memory stays taken while Auto shows the renderer's frames. On the 240 Hz display's run below, at cap 144
    (Auto the renderer's own), the driver's figure is 10.3–10.6 GB before and 11.0–11.2 GB after: about 0.6 GB more (the
    log's vk: budget: VRAM lines, the renderer's own accounting the same on both sides). The first time Auto reaches
    DLSS-G in play still makes the feature once (at the start, when the options file's cap already gives 2x, it is made in
    the first frames).

  • Not done: making the feature off the frame's thread. That would change how NGX is called across threads, for the
    first change only.

  • Also from the cold review: framegen_auto_dlss_update asked Windows for the display's refresh once a second with
    Frame generation Off, the default; it now reads the refresh and the cap at Auto alone.

  • tests/test_framegen_auto_dlss.py compiles do_present's own line with framegen_auto_dlss_keeps. It fails before
    the fix (the feature let go at Auto's 1) and passes with it; since 6f3d245bf it also checks that a Fixed one's feature
    is not kept at Auto's 1 and that Off and Fixed read no refresh, failing at 9dcf15d21 and passing at 8aba7f216, with clang++ (llvm-mingw; its g++ is clang too, so GCC
    is left to CI). With the key line broken it fails again.

  • In the game (virtual display, 2560x1440 at 120 Hz, not a pacing measurement, 3 changes each way): the feature made
    once and let go only for the exit, DLSS-G making 599 of 600 presents after each return, and the longest frame within
    6 s of each change 20–38 ms; before the fix, the same run on the same base, 123–138 ms into DLSS-G and 64–78 ms out.

  • The five-change measurement on the 240 Hz display (RTX 4090, 621.24, 5120x1440 at 240 Hz VRR, Hyrule Field, cap 60 ↔ 144, 10 s
    each), one timing job per run, before and after interleaved (ABBA), the queue's noise at zero for all four.
    "Before" is 0bc29b961, the head you reviewed; "after" is 04159c082, this fix before the rebases (the same code as
    9dcf15d21: the range-diffs are the same for every code commit, and main's commits since touch neither
    vk_framegen.cpp nor vk_dlss.cpp; in vk_replay.cpp they change the simulated turf's submits, not do_present,
    and #2821's texture and device changes are AMD's). The cold review's fixes do not change this run's path: it starts
    in Auto at cap 60, so Auto has run DLSS-G before each 144, and the cap the bridge sets is published at once instead of
    at the next menu_tick, under a frame earlier.
    A driver-level setting differs from the earlier Measurements' runs (value 0 here, the PC started on 2026-11-29 at
    15:23); before and after ran in the same state, and the "before" numbers match the earlier ones (59.5–82.6 ms out,
    121.5–159.1 ms in), but for one exit at 127.9 ms.

    Change Before: 0bc29b961 After: this PR @ 04159c082
    cap 60 → 144 (out of DLSS-G) 60.5, 66.9, 75.8, 76.3, 127.9 ms 19.4, 19.5, 20.1, 24.3, 25.2 ms
    cap 144 → 60 (into DLSS-G) 124.3, 128.5, 133.0, 135.6, 138.3 ms 22.9, 23.6, 24.8, 25.4, 27.5 ms
    frames ≥ 50 ms after a change 1 each time none
    the 6 s before each change 14.5–24.1 ms 14.5–25.2 ms

    Not covered: a run that starts at cap 144 and reaches DLSS-G in play, which makes the feature once.

  • After the rebase and the cold review's fixes, one run on the virtual display at 87357e9b3 (not a measurement): Auto by
    DLSS FG, cap 60 → 144 → 60 → 144 → 60 → 144, then quit at 144: DLSS-G's feature made once and let go only for the
    exit, while Auto was the renderer's own; 599 of 600 presents made by DLSS-G after each return; the longest frame within
    6 s of each change 21.7 to 33.5 ms (19.5 to 29.6 ms in the same run at 272f5f906, before the cold review's fixes); no
    Vulkan error and a clean exit.

  • Not run in the game, only in the game-free test: Fixed → Auto at Auto's 1 (the feature let go), Off reading no
    refresh, and the bridge's setting published with no menu_tick (HOS_HEADLESS).

L3 (gpu/vk/framegen_rows.h:78): fewer frames shown than the old Auto on a 240 Hz RTX 40

Kept, by the author's decision: on RTX, Auto takes DLSS FG wherever its 2x fits the display at the cap. The old Auto
shows about 230 frames a second at 240 Hz by making one for every refresh, but Windows composes them on the refresh grid
(Composed: Copy with GPU GDI in all 60 runs), with no G-SYNC and with the renderer's own interpolation; Auto by DLSS FG
shows 120, made by DLSS-G from the scene's depth and motion, flipped (Hardware: Independent Flip in all 70 runs) and
paced by G-SYNC, as a Fixed 2x by DLSS FG is. A player on RTX who picks Auto gets the generator the card is made for;
one who wants a frame for every refresh can still choose Frame generation by: FSR 3.1 or Built-in, and
RX_VK_FG_AUTO_DLSS=0 gives the old Auto back. The cost stays written in Risks. On an RTX 50 the rule goes to 4x at
240 Hz (240 shown), which L4's runs will check.

L4 (gpu/vk/vk_framegen.cpp:1231): the exit and other hardware

Not done yet; it stays in Still to test:

  • The exit's lost device (2 of 61 Auto runs, after DLSS Frame Gen (NGX): let go for the exit): repeated exits of a
    Fixed 2x by DLSS FG on main are to run beside Auto's, on the same PC, to say whether this PR changes it. L2's fix does
    not change dlss_fg_close, but it sends more exits through it with the feature made: a game quit while Auto is the
    renderer's own now lets DLSS-G's feature go there, where before the fix it was already let go.
  • Linux RTX 40 and Windows RTX 50 at the multipliers the rule gives: not hardware this PC has; asked of the Test Farm
    once a BigBean approves it.

L5: the conflict with the base branch

Rebased onto main 450e63b8, now that #2738 (and #2183 with it) is merged: only this PR's commits remain; then onto
main cb0a2763 (#2821, #2819), with no conflict. The conflicts
were the docs' (the Settings table, where main's 45 fps cap is kept, and the guide's record of the Graphics image,
recorded again in docs/user/images/guide/source-review-auto-dlss-450e63b8.md); every code commit is the same in the
range-diff.

Answer to BeanBot's review of 2026-11-29 (request changes, at 0bc29b96). The branch is now rebased onto `main` cb0a2763 (#2738, and #2183 with it, merged), head 87357e9b3. L1 and L2 are fixed, each as a test commit and then the fix; L3 is kept by the author's decision; L4 stays in Still to test; L5 is done by the rebase. A cold review of the fixes (a second agent, nothing posted) found three more points, fixed in one more test-then-fix pair (6f3d245bf, then 8aba7f216): they are under L1 and L2 below. ## L1 (`gpu/vk/vk_framegen.cpp:1229`): the cap read across threads Confirmed. With frame generation on, `present_image` (and with it `menu_tick`) runs on the display thread (`vk_framegen.cpp` `display_main`), and the control bridge's `menu_setting_set` runs on its own: both write `opts.fps_cap` under `menu_mu`. `framegen_auto_dlss_update` read it on the replay's thread through `menu_fps_cap()` → `fps_cap_now()`, with no lock. Fixed in 0e64906ab, test first in 47edeb53a: - `vk_menu.cpp` publishes the cap in effect (`fps_cap_now()`, HOS_FPS_MAX included) in an atomic, `fps_cap_published`, under `menu_mu`: at `menu_init`, so the first present already has the options file's cap (Auto's settle takes its first value at once, so a 0 there would have made the sets and the swapchain twice), and at the end of every `menu_tick`, after its input and the bridge's settings. That is what `fps_level_now` already does. Since the cold review, the bridge's `menu_setting_set` also publishes at once (8aba7f216), so a run with no `menu_tick` (`HOS_HEADLESS`) does not keep an old cap. `menu_fps_cap()` reads the atomic; the performance summary reads it too. - Not `menu_mu` on the replay's side: it is held for a whole `menu_tick`, and `vk_menu.cpp` already records a present held by it (`bridge_probe_first`). - `tests/test_framegen_auto_dlss.py` compiles the real `fps_cap_now`, `publish_fps_cap` and `menu_fps_cap` with a row value that counts the reads made without `menu_mu`: it failed before the fix (`menu_fps_cap reads the Game frame rate cap row (opts.fps_cap) outside menu_mu`) and passes with it; it also checks that `menu_init`, `menu_tick` and `menu_setting_set` publish, a call left in a comment not counting. - Left as it is: `framegen_running()` reads `opts.framegen` the same way, and the replay reads other rows plainly (`opts.upscale`, `opts.sharpness` in `do_present`). That pattern predates this PR and is not widened here. ## L2 (`gpu/vk/framegen_rows.h:100`): the long frame at Auto's change Found with Tracy (RTX 4090, temporary zones not committed, on the 2560x1440 120 Hz virtual display, 3 changes each way). The long frame is NGX, not the swapchain or the sets: | | longest frame after the change | NGX makes DLSS-G's feature (replay's thread) | NGX lets it go | sets, swapchain, GPU idle | |---|---|---|---|---| | Auto, cap 144 → 60 (into DLSS-G) | 157–206 ms | 149–196 ms | – | 22 ms at most | | Auto, cap 60 → 144 (out of it) | 69–86 ms | – | 39–54 ms | 22 ms at most | | Fixed 2x by DLSS FG, Off → 2x | 146–258 ms | 139–246 ms | – | | | Fixed 2x by DLSS FG, 2x → Off | 54–98 ms | – | 47–69 ms | | So it is DLSS-G's existing cost, which Fixed pays at the click. Auto paid it 2 s after the cap changed (the hold), and in both directions, because `do_present` let the feature go whenever DLSS-G was not making the frames (`dlss_fg_idle`). Fixed in 9dcf15d21, test first in f8f97af6b, limited after the cold review in 8aba7f216: - `framegen_auto_dlss_keeps`: while Auto is the renderer's own because DLSS FG's 2x does not fit (the rule's 1), the feature is kept for the way back, once Auto itself has run DLSS-G since it was chosen (`auto_dlss_back`). A feature a Fixed multiplier made is let go when Auto comes at 1, as before this PR: on a 60 Hz display, say, the way back would be cap 30 alone. Off, a fixed multiplier and DLSS FG making no frames (the rule's 0: no temporal Upscaler, NGX gave up, Streamline) let it go, as before. DLSS-G's history starts again on the way back (`dlss_fg_inputs` drops its last inputs below 2x, and the sequence gap resets), as each 600-present summary shows ("1 told to reset"). - The cost: DLSS-G's video memory stays taken while Auto shows the renderer's frames. On the 240 Hz display's run below, at cap 144 (Auto the renderer's own), the driver's figure is 10.3–10.6 GB before and 11.0–11.2 GB after: about 0.6 GB more (the log's `vk: budget: VRAM` lines, the renderer's own accounting the same on both sides). The first time Auto reaches DLSS-G in play still makes the feature once (at the start, when the options file's cap already gives 2x, it is made in the first frames). - Not done: making the feature off the frame's thread. That would change how NGX is called across threads, for the first change only. - Also from the cold review: `framegen_auto_dlss_update` asked Windows for the display's refresh once a second with Frame generation Off, the default; it now reads the refresh and the cap at Auto alone. - `tests/test_framegen_auto_dlss.py` compiles `do_present`'s own line with `framegen_auto_dlss_keeps`. It fails before the fix (the feature let go at Auto's 1) and passes with it; since 6f3d245bf it also checks that a Fixed one's feature is not kept at Auto's 1 and that Off and Fixed read no refresh, failing at 9dcf15d21 and passing at 8aba7f216, with clang++ (llvm-mingw; its `g++` is clang too, so GCC is left to CI). With the key line broken it fails again. - In the game (virtual display, 2560x1440 at 120 Hz, not a pacing measurement, 3 changes each way): the feature made once and let go only for the exit, DLSS-G making 599 of 600 presents after each return, and the longest frame within 6 s of each change 20–38 ms; before the fix, the same run on the same base, 123–138 ms into DLSS-G and 64–78 ms out. - The five-change measurement on the 240 Hz display (RTX 4090, 621.24, 5120x1440 at 240 Hz VRR, Hyrule Field, cap 60 ↔ 144, 10 s each), one timing job per run, before and after interleaved (ABBA), the queue's noise at zero for all four. "Before" is 0bc29b961, the head you reviewed; "after" is 04159c082, this fix before the rebases (the same code as 9dcf15d21: the range-diffs are the same for every code commit, and `main`'s commits since touch neither `vk_framegen.cpp` nor `vk_dlss.cpp`; in `vk_replay.cpp` they change the simulated turf's submits, not `do_present`, and #2821's texture and device changes are AMD's). The cold review's fixes do not change this run's path: it starts in Auto at cap 60, so Auto has run DLSS-G before each 144, and the cap the bridge sets is published at once instead of at the next `menu_tick`, under a frame earlier. A driver-level setting differs from the earlier Measurements' runs (value 0 here, the PC started on 2026-11-29 at 15:23); before and after ran in the same state, and the "before" numbers match the earlier ones (59.5–82.6 ms out, 121.5–159.1 ms in), but for one exit at 127.9 ms. | Change | Before: `0bc29b961` | After: this PR @ `04159c082` | |---|---|---| | cap 60 → 144 (out of DLSS-G) | 60.5, 66.9, 75.8, 76.3, 127.9 ms | 19.4, 19.5, 20.1, 24.3, 25.2 ms | | cap 144 → 60 (into DLSS-G) | 124.3, 128.5, 133.0, 135.6, 138.3 ms | 22.9, 23.6, 24.8, 25.4, 27.5 ms | | frames ≥ 50 ms after a change | 1 each time | none | | the 6 s before each change | 14.5–24.1 ms | 14.5–25.2 ms | Not covered: a run that starts at cap 144 and reaches DLSS-G in play, which makes the feature once. - After the rebase and the cold review's fixes, one run on the virtual display at 87357e9b3 (not a measurement): Auto by DLSS FG, cap 60 → 144 → 60 → 144 → 60 → 144, then quit at 144: DLSS-G's feature made once and let go only for the exit, while Auto was the renderer's own; 599 of 600 presents made by DLSS-G after each return; the longest frame within 6 s of each change 21.7 to 33.5 ms (19.5 to 29.6 ms in the same run at 272f5f906, before the cold review's fixes); no Vulkan error and a clean exit. - Not run in the game, only in the game-free test: Fixed → Auto at Auto's 1 (the feature let go), Off reading no refresh, and the bridge's setting published with no `menu_tick` (`HOS_HEADLESS`). ## L3 (`gpu/vk/framegen_rows.h:78`): fewer frames shown than the old Auto on a 240 Hz RTX 40 Kept, by the author's decision: on RTX, Auto takes DLSS FG wherever its 2x fits the display at the cap. The old Auto shows about 230 frames a second at 240 Hz by making one for every refresh, but Windows composes them on the refresh grid (`Composed: Copy with GPU GDI` in all 60 runs), with no G-SYNC and with the renderer's own interpolation; Auto by DLSS FG shows 120, made by DLSS-G from the scene's depth and motion, flipped (`Hardware: Independent Flip` in all 70 runs) and paced by G-SYNC, as a Fixed 2x by DLSS FG is. A player on RTX who picks Auto gets the generator the card is made for; one who wants a frame for every refresh can still choose Frame generation by: FSR 3.1 or Built-in, and `RX_VK_FG_AUTO_DLSS=0` gives the old Auto back. The cost stays written in Risks. On an RTX 50 the rule goes to 4x at 240 Hz (240 shown), which L4's runs will check. ## L4 (`gpu/vk/vk_framegen.cpp:1231`): the exit and other hardware Not done yet; it stays in Still to test: - The exit's lost device (2 of 61 Auto runs, after `DLSS Frame Gen (NGX): let go for the exit`): repeated exits of a Fixed 2x by DLSS FG on `main` are to run beside Auto's, on the same PC, to say whether this PR changes it. L2's fix does not change `dlss_fg_close`, but it sends more exits through it with the feature made: a game quit while Auto is the renderer's own now lets DLSS-G's feature go there, where before the fix it was already let go. - Linux RTX 40 and Windows RTX 50 at the multipliers the rule gives: not hardware this PC has; asked of the Test Farm once a BigBean approves it. ## L5: the conflict with the base branch Rebased onto `main` 450e63b8, now that #2738 (and #2183 with it) is merged: only this PR's commits remain; then onto `main` cb0a2763 (#2821, #2819), with no conflict. The conflicts were the docs' (the Settings table, where `main`'s 45 fps cap is kept, and the guide's record of the Graphics image, recorded again in `docs/user/images/guide/source-review-auto-dlss-450e63b8.md`); every code commit is the same in the range-diff.
Jiro113 changed title from WIP: feat(vk): Frame generation's Auto runs DLSS FG at the most frames the display shows at the game's cap to feat(vk): Frame generation's Auto runs DLSS FG at the most frames the display shows at the game's cap 2026-11-29 23:21:33 +00:00
Jiro113 force-pushed fix/auto-framegen-dlssg from 87357e9b38
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to f5af8ffd13
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 10s
2026-11-30 00:09:14 +00:00
Compare
Author
Contributor

Rebased onto main 462919343 (#2183 merged, and #2833): 87357e9b3 → f5af8ffd1.

  • Conflicts: only the guide's record of the Graphics image (docs/user/images/guide/manifest.json), in this PR's
    four docs(guide) commits. Each was resolved from main's version (#2183's record), with this change's own
    fingerprints replayed over it; recorded in a new commit, f5af8ffd1, and in
    docs/user/images/guide/source-review-auto-dlss-450e63b8.md. scripts/check_guide_screenshots.py --review-sources
    reports no REVIEW REQUIRED input, at this head as on main.
  • Range-diff: every code commit is the same. gpu/vk/vk_replay.cpp, changed on both sides, merged with no conflict:
    #2183 retires the present probe at the window's close and at NVIDIA Streamline's (vk_replay.cpp, vk_dlssg.cpp),
    not the NGX DLSS-G path this change touches (do_present's dlss_fg_idle line is as it was), so no game run was
    repeated.
  • Tests (tests/run_all.py --changed origin/main, Windows, llvm-mingw, through the PC's queue): 252 passed,
    15 failed, 12 skipped. The 15 fail on main 462919343 too, run alone there with the same checks (the list is in
    Testing). test_framegen_auto_dlss, test_dlssg, test_present_probe_retirement, test_present_semaphores and
    test_guide_screenshots pass. This head's renderer builds (dev.py pack, through the queue).
  • The new commit shas of the earlier answer: L1 9719a7b59 (test) and 639b968b1 (fix), L2 39a9f9360 and 71769b9de, the
    cold review's d22b16c5c and c495d9b11.
Rebased onto `main` 462919343 (#2183 merged, and #2833): 87357e9b3 → f5af8ffd1. - **Conflicts:** only the guide's record of the Graphics image (`docs/user/images/guide/manifest.json`), in this PR's four `docs(guide)` commits. Each was resolved from `main`'s version (#2183's record), with this change's own fingerprints replayed over it; recorded in a new commit, f5af8ffd1, and in `docs/user/images/guide/source-review-auto-dlss-450e63b8.md`. `scripts/check_guide_screenshots.py --review-sources` reports no `REVIEW REQUIRED` input, at this head as on `main`. - **Range-diff:** every code commit is the same. `gpu/vk/vk_replay.cpp`, changed on both sides, merged with no conflict: #2183 retires the present probe at the window's close and at NVIDIA Streamline's (`vk_replay.cpp`, `vk_dlssg.cpp`), not the NGX DLSS-G path this change touches (`do_present`'s `dlss_fg_idle` line is as it was), so no game run was repeated. - **Tests** (`tests/run_all.py --changed origin/main`, Windows, llvm-mingw, through the PC's queue): 252 passed, 15 failed, 12 skipped. The 15 fail on `main` 462919343 too, run alone there with the same checks (the list is in Testing). `test_framegen_auto_dlss`, `test_dlssg`, `test_present_probe_retirement`, `test_present_semaphores` and `test_guide_screenshots` pass. This head's renderer builds (`dev.py pack`, through the queue). - The new commit shas of the earlier answer: L1 9719a7b59 (test) and 639b968b1 (fix), L2 39a9f9360 and 71769b9de, the cold review's d22b16c5c and c495d9b11.
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 10s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'fix/auto-framegen-dlssg:Jiro113-fix/auto-framegen-dlssg'
git switch 'Jiro113-fix/auto-framegen-dlssg'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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
MagicBeanDev/Longshot!2795
No description provided.