From d414d50ec91c62dbae884e8add1ceca47a51cab4 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Sat, 22 Aug 2026 00:03:12 +0200 Subject: [PATCH] Kill native AL2 if SL Reflex is hooked Not perfect but will have to do until low latency input and output are done --- OptiScaler/hooks/Amdxc64_Hooks.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/OptiScaler/hooks/Amdxc64_Hooks.cpp b/OptiScaler/hooks/Amdxc64_Hooks.cpp index 3e64d0cf..509541a2 100644 --- a/OptiScaler/hooks/Amdxc64_Hooks.cpp +++ b/OptiScaler/hooks/Amdxc64_Hooks.cpp @@ -7,6 +7,7 @@ #include #include #include +#include "Streamline_Hooks.h" #pragma endregion @@ -192,6 +193,15 @@ HRESULT STDMETHODCALLTYPE Amdxc64Hooks::hkAmdExtD3DCreateInterface(IUnknown* pOu LOG_INFO("Providing the game with AL2 proxy, AL2 inputs should be avaliable"); + return S_OK; + } +#else + else if (riid == IID_IAmdExtAntiLagApi && giveGameAl2Proxy && StreamlineHooks::isReflexHooked()) + { + *ppvObject = nullptr; + + LOG_INFO("Killing native AL2"); + return S_OK; } #endif