Move low latency into common code

This commit is contained in:
FakeMichau
2026-05-15 18:04:19 +02:00
parent 7b785ddfb0
commit 5b86a1e407
21 changed files with 39 additions and 37 deletions
+11 -11
View File
@@ -336,15 +336,15 @@ copy NUL "$(SolutionDir)x64\Release\a\!! EXTRACT ALL FILES TO GAME FOLDER !!" /Y
<ClInclude Include="shaders\rcas\precompile\lc_da_sharpen_Shader_Vk.h" />
<ClInclude Include="hooks\Xell_Hooks.h" />
<ClInclude Include="nvapi\fakenvapi\al2_proxy.h" />
<ClInclude Include="nvapi\fakenvapi\fn_util.h" />
<ClInclude Include="low_latency\fn_util.h" />
<ClInclude Include="nvapi\fakenvapi\fn_vulkan_hooks.h" />
<ClInclude Include="nvapi\fakenvapi\log.h" />
<ClInclude Include="nvapi\fakenvapi\low_latency.h" />
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\ll_antilag2.h" />
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\ll_antilag_vk.h" />
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\ll_latencyflex.h" />
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\ll_xell.h" />
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\low_latency_tech.h" />
<ClInclude Include="low_latency\low_latency_tech\ll_antilag2.h" />
<ClInclude Include="low_latency\low_latency_tech\ll_antilag_vk.h" />
<ClInclude Include="low_latency\low_latency_tech\ll_latencyflex.h" />
<ClInclude Include="low_latency\low_latency_tech\ll_xell.h" />
<ClInclude Include="low_latency\low_latency_tech\low_latency_tech.h" />
<ClInclude Include="nvapi\fakenvapi\nvapi_calls.h" />
<ClInclude Include="proxies\Streamline_Proxy.h" />
<ClInclude Include="shaders\Shader_Common.h" />
@@ -591,15 +591,15 @@ copy NUL "$(SolutionDir)x64\Release\a\!! EXTRACT ALL FILES TO GAME FOLDER !!" /Y
<ClCompile Include="inputs\FSR2_Vk.cpp" />
<ClCompile Include="inputs\XeSS_Dx11.cpp" />
<ClCompile Include="nvapi\fakenvapi\al2_proxy.cpp" />
<ClCompile Include="nvapi\fakenvapi\fn_util.cpp" />
<ClCompile Include="low_latency\fn_util.cpp" />
<ClCompile Include="nvapi\fakenvapi\fn_vulkan_hooks.cpp" />
<ClCompile Include="nvapi\fakenvapi\log.cpp" />
<ClCompile Include="nvapi\fakenvapi\low_latency.cpp" />
<ClCompile Include="nvapi\fakenvapi\low_latency_d3d.cpp" />
<ClCompile Include="nvapi\fakenvapi\low_latency_tech\ll_antilag2.cpp" />
<ClCompile Include="nvapi\fakenvapi\low_latency_tech\ll_antilag_vk.cpp" />
<ClCompile Include="nvapi\fakenvapi\low_latency_tech\ll_latencyflex.cpp" />
<ClCompile Include="nvapi\fakenvapi\low_latency_tech\ll_xell.cpp" />
<ClCompile Include="low_latency\low_latency_tech\ll_antilag2.cpp" />
<ClCompile Include="low_latency\low_latency_tech\ll_antilag_vk.cpp" />
<ClCompile Include="low_latency\low_latency_tech\ll_latencyflex.cpp" />
<ClCompile Include="low_latency\low_latency_tech\ll_xell.cpp" />
<ClCompile Include="nvapi\fakenvapi\low_latency_vk.cpp" />
<ClCompile Include="nvapi\fakenvapi\nvapi_calls.cpp" />
<ClCompile Include="NVNGX_Parameter.cpp" />
+11 -11
View File
@@ -761,25 +761,25 @@
<ClInclude Include="nvapi\fakenvapi\low_latency.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\ll_antilag2.h">
<ClInclude Include="low_latency\low_latency_tech\ll_antilag2.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\ll_antilag_vk.h">
<ClInclude Include="low_latency\low_latency_tech\ll_antilag_vk.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\ll_latencyflex.h">
<ClInclude Include="low_latency\low_latency_tech\ll_latencyflex.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\ll_xell.h">
<ClInclude Include="low_latency\low_latency_tech\ll_xell.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nvapi\fakenvapi\low_latency_tech\low_latency_tech.h">
<ClInclude Include="low_latency\low_latency_tech\low_latency_tech.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nvapi\fakenvapi\nvapi_calls.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nvapi\fakenvapi\fn_util.h">
<ClInclude Include="low_latency\fn_util.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nvapi\fakenvapi\fn_vulkan_hooks.h">
@@ -1265,16 +1265,16 @@
<ClCompile Include="nvapi\fakenvapi\low_latency_d3d.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="nvapi\fakenvapi\low_latency_tech\ll_antilag2.cpp">
<ClCompile Include="low_latency\low_latency_tech\ll_antilag2.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="nvapi\fakenvapi\low_latency_tech\ll_antilag_vk.cpp">
<ClCompile Include="low_latency\low_latency_tech\ll_antilag_vk.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="nvapi\fakenvapi\low_latency_tech\ll_latencyflex.cpp">
<ClCompile Include="low_latency\low_latency_tech\ll_latencyflex.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="nvapi\fakenvapi\low_latency_tech\ll_xell.cpp">
<ClCompile Include="low_latency\low_latency_tech\ll_xell.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="nvapi\fakenvapi\low_latency_vk.cpp">
@@ -1283,7 +1283,7 @@
<ClCompile Include="nvapi\fakenvapi\nvapi_calls.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="nvapi\fakenvapi\fn_util.cpp">
<ClCompile Include="low_latency\fn_util.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="nvapi\fakenvapi\fn_vulkan_hooks.cpp">
@@ -1,6 +1,7 @@
#include "pch.h"
#include "ll_antilag2.h"
#include <nvapi/fakenvapi/al2_proxy.h>
#include <nvapi/fakenvapi/log.h>
inline HRESULT AntiLag2::al2_sleep()
{
@@ -3,6 +3,7 @@
#include <magic_enum.hpp>
#include <proxies/XeLL_Proxy.h>
#include <nvapi/fakenvapi/log.h>
void XeLL::xell_sleep(uint32_t frame_id)
{
@@ -3,8 +3,8 @@
#include <dxgi.h>
#include <d3d12.h>
#include "../log.h"
#include <magic_enum.hpp>
#include "low_latency/fn_util.h"
#define INVALID_ID 0xFFFFFFFFFFFFFFFF
+3 -3
View File
@@ -2,9 +2,9 @@
#include "UeLowLatency.h"
#include <hooks/Reflex_Hooks.h>
#include "nvapi/fakenvapi/low_latency_tech/ll_antilag2.h"
// #include "nvapi/fakenvapi/low_latency_tech/ll_xell.h"
#include "nvapi/fakenvapi/low_latency_tech/ll_latencyflex.h"
#include <low_latency/low_latency_tech/ll_antilag2.h>
// #include <low_latency/low_latency_tech/ll_xell.h>
#include <low_latency/low_latency_tech/ll_latencyflex.h>
void UeLowLatency::init()
{
+1 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include "nvapi/fakenvapi/low_latency_tech/low_latency_tech.h"
#include <low_latency/low_latency_tech/low_latency_tech.h>
typedef void (*PFN_FLTickExternal)(int64_t frameId, float DeltaSeconds, bool bIdleMode);
typedef void (*PFN_setTickCallback)(PFN_FLTickExternal callback);
+1 -1
View File
@@ -3,7 +3,7 @@
#include <dxgi.h>
#include <d3d12.h>
#include <unordered_map>
#include "fakenvapi/fn_util.h"
#include "low_latency/fn_util.h"
class fakenvapi
{
+1 -1
View File
@@ -7,7 +7,7 @@
#include <nvapi.h>
#include "spdlog/spdlog.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "fn_util.h"
#include "low_latency/fn_util.h"
#include "config.h"
#define OK() Ok(__func__)
+2 -2
View File
@@ -1,11 +1,11 @@
#pragma once
#include "low_latency_tech/low_latency_tech.h"
#include "low_latency/low_latency_tech/low_latency_tech.h"
#include <dxgi.h>
#include <d3d12.h>
#include "fn_util.h"
#include "low_latency/fn_util.h"
#include <optional>
#define FRAME_REPORTS_BUFFER_SIZE 70
@@ -1,9 +1,9 @@
#include "pch.h"
#include "low_latency.h"
#include "low_latency_tech/ll_antilag2.h"
#include "low_latency_tech/ll_latencyflex.h"
#include "low_latency_tech/ll_xell.h"
#include "low_latency/low_latency_tech/ll_antilag2.h"
#include "low_latency/low_latency_tech/ll_latencyflex.h"
#include "low_latency/low_latency_tech/ll_xell.h"
#include "log.h"
#include "config.h"
@@ -1,8 +1,8 @@
#include "pch.h"
#include "low_latency.h"
#include "low_latency_tech/ll_antilag_vk.h"
#include "low_latency_tech/ll_latencyflex.h"
#include "low_latency/low_latency_tech/ll_antilag_vk.h"
#include "low_latency/low_latency_tech/ll_latencyflex.h"
#include "log.h"
#include "config.h"
+1 -1
View File
@@ -6,7 +6,7 @@
#include "low_latency.h"
#include "fn_util.h"
#include "low_latency/fn_util.h"
#include "log.h"
#include "fn_vulkan_hooks.h"