From 3ad16b63d99b2df0387fa6a93f296e23a044c780 Mon Sep 17 00:00:00 2001 From: cdozdil Date: Wed, 15 May 2024 10:11:28 +0300 Subject: [PATCH] reduced imgui overlay delay to 90 frames --- OptiScaler/NVNGX_DLSS_Dx11.cpp | 2 +- OptiScaler/NVNGX_DLSS_Dx12.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OptiScaler/NVNGX_DLSS_Dx11.cpp b/OptiScaler/NVNGX_DLSS_Dx11.cpp index f4229444..71e17a8f 100644 --- a/OptiScaler/NVNGX_DLSS_Dx11.cpp +++ b/OptiScaler/NVNGX_DLSS_Dx11.cpp @@ -376,7 +376,7 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D11_EvaluateFeature(ID3D11DeviceConte } if (Config::Instance()->OverlayMenu.value_or(true) && - Config::Instance()->CurrentFeature != nullptr && Config::Instance()->CurrentFeature->FrameCount() > 300 && + Config::Instance()->CurrentFeature != nullptr && Config::Instance()->CurrentFeature->FrameCount() > 90 && !ImGuiOverlayDx11::IsInitedDx11()) { HWND consoleWindow = GetConsoleWindow(); diff --git a/OptiScaler/NVNGX_DLSS_Dx12.cpp b/OptiScaler/NVNGX_DLSS_Dx12.cpp index c9361118..e7f33d88 100644 --- a/OptiScaler/NVNGX_DLSS_Dx12.cpp +++ b/OptiScaler/NVNGX_DLSS_Dx12.cpp @@ -548,7 +548,7 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D12_EvaluateFeature(ID3D12GraphicsCom } if (Config::Instance()->OverlayMenu.value_or(true) && - Config::Instance()->CurrentFeature != nullptr && Config::Instance()->CurrentFeature->FrameCount() > 300 && + Config::Instance()->CurrentFeature != nullptr && Config::Instance()->CurrentFeature->FrameCount() > 90 && !ImGuiOverlayDx12::IsInitedDx12()) { HWND consoleWindow = GetConsoleWindow();