Hold the frame limit on screen while FSR 3.1 frame generation runs.

Frame generation presents a generated frame between each two of the game's, so a limit of 60 showed 120. While
generation is on (not paused for the menu or for want of depth and motion), the game is paced at half the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-08 01:32:44 -05:00
parent b62ffac721
commit 432cbdffe8
3 changed files with 8 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ int vk_fg_wanted(void); // NX2NAVI_FRAMEGEN = fsr3 with DLS
uint32_t vk_fg_queue_count(void); // graphics-family queues the device creates: 3 with frame generation, else 1
void vk_fg_queues(VkQueue present, VkQueue acquire); // vk_device.c, after the device exists
int vk_fg_active(void); // the frame generation swapchain exists
int vk_fg_generating(void); // ... and the last frame had generation on (not paused for the menu)
// gfx_present.c's swapchain calls while vk_fg_wanted: the first create makes AMD's swapchain context, later ones
// (window resizes) its swapchain again. Non-success from the first: the plain swapchain path stays.
VkResult vk_fg_create_swapchain(const VkSwapchainCreateInfoKHR *ci, VkSwapchainKHR *sc);