From 83782653e703f32fa5de45f64aa42e87dc9b9280 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Sat, 14 Jun 2025 15:33:16 +0200 Subject: [PATCH] Try to Initialize AL2 before XeLL Less hooking required for most people --- OptiScaler/nvapi/fakenvapi/low_latency_d3d.cpp | 8 ++++---- .../nvapi/fakenvapi/low_latency_tech/ll_antilag2.cpp | 2 +- .../nvapi/fakenvapi/low_latency_tech/ll_latencyflex.cpp | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/OptiScaler/nvapi/fakenvapi/low_latency_d3d.cpp b/OptiScaler/nvapi/fakenvapi/low_latency_d3d.cpp index fcdcb872..140141c0 100644 --- a/OptiScaler/nvapi/fakenvapi/low_latency_d3d.cpp +++ b/OptiScaler/nvapi/fakenvapi/low_latency_d3d.cpp @@ -11,17 +11,17 @@ bool LowLatency::update_low_latency_tech(IUnknown* pDevice) { if (!currently_active_tech) { if (!Config::get().get_force_latencyflex()) { - currently_active_tech = new XeLL(); + currently_active_tech = new AntiLag2(); if (currently_active_tech->init(pDevice)) { - spdlog::info("LowLatency algo: XeLL"); + spdlog::info("LowLatency algo: AntiLag 2"); return true; } delete currently_active_tech; - currently_active_tech = new AntiLag2(); + currently_active_tech = new XeLL(); if (currently_active_tech->init(pDevice)) { - spdlog::info("LowLatency algo: AntiLag 2"); + spdlog::info("LowLatency algo: XeLL"); return true; } diff --git a/OptiScaler/nvapi/fakenvapi/low_latency_tech/ll_antilag2.cpp b/OptiScaler/nvapi/fakenvapi/low_latency_tech/ll_antilag2.cpp index a2390b6a..df5d3857 100644 --- a/OptiScaler/nvapi/fakenvapi/low_latency_tech/ll_antilag2.cpp +++ b/OptiScaler/nvapi/fakenvapi/low_latency_tech/ll_antilag2.cpp @@ -62,7 +62,7 @@ bool AntiLag2::init(IUnknown* pDevice) { } } } else { - spdlog::warn("Initialization of AntiLag 2 as attempted while the context is not null"); + spdlog::warn("Initialization of AntiLag 2 was attempted while the context is not null"); } return false; diff --git a/OptiScaler/nvapi/fakenvapi/low_latency_tech/ll_latencyflex.cpp b/OptiScaler/nvapi/fakenvapi/low_latency_tech/ll_latencyflex.cpp index c4665431..4d679b4b 100644 --- a/OptiScaler/nvapi/fakenvapi/low_latency_tech/ll_latencyflex.cpp +++ b/OptiScaler/nvapi/fakenvapi/low_latency_tech/ll_latencyflex.cpp @@ -79,6 +79,7 @@ bool LatencyFlex::init(IUnknown *pDevice) { return true; } + spdlog::error("LatencyFleX already initialized, this should not happen"); return false; };