From af17b00dbe89b2287ab97501e3cbf992d423ee85 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Sun, 9 Feb 2025 21:01:22 +0100 Subject: [PATCH] Apply the fix for DLSSD in UE by default --- OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp b/OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp index a8109993..53ef89e5 100644 --- a/OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp +++ b/OptiScaler/inputs/NVNGX_DLSS_Dx12.cpp @@ -1516,6 +1516,9 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D12_EvaluateFeature(ID3D12GraphicsCom InParameters->Get(NVSDK_NGX_Parameter_Depth, (void**)¶mDepth); + if (State::Instance().NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && deviceContext->Name() == "DLSSD" && !Config::Instance()->FGEnableDepthScale.has_value()) + Config::Instance()->FGEnableDepthScale.set_volatile_value(true); + if (Config::Instance()->FGEnableDepthScale.value_or_default()) { if (DepthScale == nullptr)