Add AMD FSR 3.1 frame generation: a generated frame between every two the game draws.

With Frame generation set to AMD FSR 3.1 (after a restart), AMD's frame generation swapchain takes the place of the
present path's own: the device creates two more graphics queues for its presents and image acquires, the present
path acquires, gets images and presents through its replacement functions, and every frame configures generation
and records its preparation from the depth and camera motion vectors the DLSS or FSR 3.1 upscaling pass made (one of
them must be on). Generation pauses while the menu is open. On an RTX 5090 at a 60 fps game, about one frame was
generated for every frame drawn in play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-07 12:25:25 -05:00
parent ca5e5eb5a4
commit 7c11ff6816
12 changed files with 352 additions and 15 deletions

View File

@@ -513,6 +513,13 @@ static const char *const text_en[UI_TEXT_COUNT] = {
"Turning DLSS or FSR 3.1 on or off, or changing between them, takes effect after a "
"restart; the mode changes at once.",
[UI_MENU_UPSCALING_DLSS_NOTE] = "DLSS or FSR 3.1 on or off: after restart",
[UI_MENU_FRAMEGEN] = "Frame generation",
[UI_MENU_FRAMEGEN_DESC] = "Shows a generated frame between every two the game draws, for about twice the frame rate "
"on a fast display. It needs DLSS or FSR 3.1 under Upscaling (any mode), whose motion "
"vectors it uses. AMD FSR 3.1 frame generation runs on any GPU (amd_fidelityfx_vk.dll next "
"to the game's .exe). It pauses while this menu is open. Takes effect after a restart.",
[UI_MENU_FRAMEGEN_OFF] = "Off",
[UI_MENU_FRAMEGEN_NOTE] = "after restart; needs DLSS or FSR 3.1",
[UI_MENU_GAME_RES] = "Resolution",
[UI_MENU_GAME_RES_DESC] = "The height of the game's picture: 1440p is the game's own; higher draws a sharper picture "
"and its scene in proportion, at a matching cost on the graphics card. Native: the "