Skip to content

Commit a1e0e19

Browse files
committed
Fixed "missing VK dll" notification on VK Nvngx replacement
1 parent 4bd7a77 commit a1e0e19

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎OptiScaler/menu/menu_common.cpp‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ constexpr uint64_t debounceThreshold = 1000;
8282

8383
static bool hasGamepad = false;
8484
static bool ffxInitTried = false;
85+
static bool ffxVkInitTried = false;
8586
static bool xefgInitTried = false;
8687
static std::string windowTitle;
8788
static std::string selectedUpscalerName = "";
@@ -4890,8 +4891,16 @@ void MenuCommon::RenderFrameGenerationSelection(RenderMenuContext& ctx)
48904891

48914892
auto constexpr fgNvngxFfxIndex = (uint32_t) FGNvngxReplacement::FFX;
48924893
if (state.swapchainApi == API::Vulkan)
4894+
{
4895+
// The Vulkan FFX dlls are only loaded with the device when FSR FG is the output
4896+
if (!ffxVkInitTried && !FfxApiProxy::IsFGReadyVk())
4897+
{
4898+
ffxVkInitTried = true;
4899+
FfxApiProxy::InitFfxVk();
4900+
}
48934901
nvngxOptions[fgNvngxFfxIndex].set_disabled(!FfxApiProxy::IsFGReadyVk() && !FSR4DriverProviderVk::InitFg(),
48944902
"Missing amd_fidelityfx_framegeneration_vk.dll");
4903+
}
48954904
else
48964905
nvngxOptions[fgNvngxFfxIndex].set_disabled(!FfxApiProxy::IsFGReady(false),
48974906
"Missing amd_fidelityfx_framegeneration_dx12.dll");

0 commit comments

Comments
 (0)