mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 15:19:58 -04:00
Free what DLSS and FSR hold some presents after the upscaler is switched off, and the HUD-less picture once frame generation is off.
Switched off in the menu or failed, the upscaler kept everything it had made for the process: per scene size its output, motion vector, mask and sharpening images and a DLSS feature (81 MiB of images at 2560x1440 with DLAA, 182 MiB at 2160 lines, and about 0.5 GB per DLSS feature), the reactive mask's snapshots, the HUD-less pair and the FSR 3.1 and FSR 4 upscale contexts. Eight presents after it goes off they are freed on the replay thread, which makes every evaluation, after a wait for the device to be idle, as the code already does for a size it replaces. Switched on again, it makes them anew with a new history, as any switch on does. The HUD-less picture was made and copied every frame, and kept, after frame generation went off, since the flag that asks for it was never cleared on Windows: the frame generator's release clears it now, and the pair goes once no frame generation swapchain is up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -342,6 +342,9 @@ extern "C" void vk_fg_frame(VkCommandBuffer cb, VkSwapchainKHR sc, VkFormat fmt,
|
||||
}
|
||||
|
||||
extern "C" void vk_fg_release(void) {
|
||||
// the HUD-less picture is made for frame generation alone: a frame generator that runs again asks for it again
|
||||
// (vk_fg_frame); left set, it was made and copied every frame after frame generation went off, and kept
|
||||
vk_dlaa_hudless_wanted = 0;
|
||||
vk_fg4_release();
|
||||
if (F.fg) vk_ffx_destroy(&F.fg), F.fg = nullptr;
|
||||
if (F.sc) vk_ffx_destroy(&F.sc), F.sc = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user