Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions OptiScaler/OptiScaler.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<AdditionalDependencies>WindowsApp.lib;Dbghelp.lib;dxgi.lib;d3d11.lib;d3d12.lib;vulkan-1.lib;dxguid.lib;freetype.lib;ffx_fsr2_api_x64d.lib;ffx_fsr2_api_dx11_x64d.lib;ffx_fsr2_api_dx12_x64d.lib;ffx_fsr2_api_vk_x64d.lib;ffx_fsr2_212_api_dx12_x64d.lib;ffx_fsr2_212_api_vk_x64d.lib;ffx_fsr2_212_api_x64d.lib;d3dcompiler.lib;d3dx11.lib;ffx_backend_dx11_x64d.lib;ffx_fsr3_x64d.lib;ffx_fsr3upscaler_x64d.lib;ffx_opticalflow_x64d.lib;ffx_frameinterpolation_x64d.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>winhttp.lib;WindowsApp.lib;Dbghelp.lib;dxgi.lib;d3d11.lib;d3d12.lib;vulkan-1.lib;dxguid.lib;freetype.lib;ffx_fsr2_api_x64d.lib;ffx_fsr2_api_dx11_x64d.lib;ffx_fsr2_api_dx12_x64d.lib;ffx_fsr2_api_vk_x64d.lib;ffx_fsr2_212_api_dx12_x64d.lib;ffx_fsr2_212_api_vk_x64d.lib;ffx_fsr2_212_api_x64d.lib;d3dcompiler.lib;d3dx11.lib;ffx_backend_dx11_x64d.lib;ffx_fsr3_x64d.lib;ffx_fsr3upscaler_x64d.lib;ffx_opticalflow_x64d.lib;ffx_frameinterpolation_x64d.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
<DelayLoadDLLs>vulkan-1.dll;dxgi.dll;d3d12.dll;D3DCOMPILER_47.dll;Dbghelp.dll;d3d11.dll</DelayLoadDLLs>
<StackReserveSize>
Expand Down Expand Up @@ -234,7 +234,7 @@
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>false</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<AdditionalDependencies>WindowsApp.lib;Dbghelp.lib;dxgi.lib;d3d11.lib;d3d12.lib;vulkan-1.lib;dxguid.lib;freetype.lib;ffx_fsr2_api_x64.lib;ffx_fsr2_api_dx11_x64.lib;ffx_fsr2_api_dx12_x64.lib;ffx_fsr2_api_vk_x64.lib;ffx_fsr2_212_api_dx12_x64.lib;ffx_fsr2_212_api_vk_x64.lib;ffx_fsr2_212_api_x64.lib;d3dcompiler.lib;ffx_backend_dx11_x64.lib;ffx_fsr3_x64.lib;ffx_frameinterpolation_x64.lib;ffx_fsr3upscaler_x64.lib;ffx_opticalflow_x64.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>winhttp.lib;WindowsApp.lib;Dbghelp.lib;dxgi.lib;d3d11.lib;d3d12.lib;vulkan-1.lib;dxguid.lib;freetype.lib;ffx_fsr2_api_x64.lib;ffx_fsr2_api_dx11_x64.lib;ffx_fsr2_api_dx12_x64.lib;ffx_fsr2_api_vk_x64.lib;ffx_fsr2_212_api_dx12_x64.lib;ffx_fsr2_212_api_vk_x64.lib;ffx_fsr2_212_api_x64.lib;d3dcompiler.lib;ffx_backend_dx11_x64.lib;ffx_fsr3_x64.lib;ffx_frameinterpolation_x64.lib;ffx_fsr3upscaler_x64.lib;ffx_opticalflow_x64.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
<DelayLoadDLLs>vulkan-1.dll;dxgi.dll;d3d12.dll;D3DCOMPILER_47.dll;Dbghelp.dll;d3d11.dll</DelayLoadDLLs>
</Link>
Expand Down Expand Up @@ -282,7 +282,7 @@ copy NUL "$(SolutionDir)x64\Release\a\!! EXTRACT ALL FILES TO GAME FOLDER !!" /Y
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<AdditionalDependencies>WindowsApp.lib;Dbghelp.lib;dxgi.lib;d3d11.lib;d3d12.lib;vulkan-1.lib;dxguid.lib;freetype.lib;ffx_fsr2_api_x64.lib;ffx_fsr2_api_dx11_x64.lib;ffx_fsr2_api_dx12_x64.lib;ffx_fsr2_api_vk_x64.lib;ffx_fsr2_212_api_dx12_x64.lib;ffx_fsr2_212_api_vk_x64.lib;ffx_fsr2_212_api_x64.lib;d3dcompiler.lib;ffx_backend_dx11_x64.lib;ffx_fsr3_x64.lib;ffx_frameinterpolation_x64.lib;ffx_fsr3upscaler_x64.lib;ffx_opticalflow_x64.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>winhttp.lib;WindowsApp.lib;Dbghelp.lib;dxgi.lib;d3d11.lib;d3d12.lib;vulkan-1.lib;dxguid.lib;freetype.lib;ffx_fsr2_api_x64.lib;ffx_fsr2_api_dx11_x64.lib;ffx_fsr2_api_dx12_x64.lib;ffx_fsr2_api_vk_x64.lib;ffx_fsr2_212_api_dx12_x64.lib;ffx_fsr2_212_api_vk_x64.lib;ffx_fsr2_212_api_x64.lib;d3dcompiler.lib;ffx_backend_dx11_x64.lib;ffx_fsr3_x64.lib;ffx_frameinterpolation_x64.lib;ffx_fsr3upscaler_x64.lib;ffx_opticalflow_x64.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
<DelayLoadDLLs>vulkan-1.dll;dxgi.dll;d3d12.dll;D3DCOMPILER_47.dll;Dbghelp.dll;d3d11.dll</DelayLoadDLLs>
</Link>
Expand Down Expand Up @@ -458,6 +458,7 @@ copy NUL "$(SolutionDir)x64\Release\a\!! EXTRACT ALL FILES TO GAME FOLDER !!" /Y
<ClInclude Include="upscalers\xess\XeSSFeature_Dx11on12.h" />
<ClInclude Include="upscalers\xess\XeSSFeature_Vk.h" />
<ClInclude Include="Util.h" />
<ClInclude Include="version_check.h" />
<ClInclude Include="upscalers\xess\XeSSFeature_Dx11.h" />
<ClInclude Include="proxies\XeSS_Proxy.h" />
</ItemGroup>
Expand Down Expand Up @@ -558,6 +559,7 @@ copy NUL "$(SolutionDir)x64\Release\a\!! EXTRACT ALL FILES TO GAME FOLDER !!" /Y
<ClCompile Include="shaders\rcas\RCAS_Dx12.cpp" />
<ClCompile Include="upscalers\xess\XeSSFeature_Vk.cpp" />
<ClCompile Include="Util.cpp" />
<ClCompile Include="version_check.cpp" />
<ClCompile Include="inputs\XeSS_Debug.cpp" />
<ClCompile Include="inputs\XeSS_Dx12.cpp" />
</ItemGroup>
Expand Down
24 changes: 24 additions & 0 deletions OptiScaler/OptiScaler.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@
<ClInclude Include="inputs\XeSS_Vulkan.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="version_check.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="upscalers\xess\XeSSFeature_Dx11on12.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down Expand Up @@ -512,6 +515,21 @@
<ClInclude Include="misc\Quirks.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="hooks\Ntdll_Hooks.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="shaders\hudless_compare\HC_Common.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="shaders\hudless_compare\HC_Dx12.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="shaders\hudless_compare\precompile\hudless_compare_PShader.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="shaders\hudless_compare\precompile\hudless_compare_VShader.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Config.cpp">
Expand All @@ -521,6 +539,9 @@
<ClCompile Include="Util.cpp">
<Filter>Util</Filter>
</ClCompile>
<ClCompile Include="version_check.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="inputs\NVNGX_DLSS_Dx12.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down Expand Up @@ -803,6 +824,9 @@
<ClCompile Include="include\sl.param\parameters.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="shaders\hudless_compare\HC_Dx12.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="OptiScaler.rc" />
Expand Down
10 changes: 10 additions & 0 deletions OptiScaler/State.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <deque>
#include <vulkan/vulkan.h>
#include <ankerl/unordered_dense.h>
#include <mutex>

typedef enum API
{
Expand Down Expand Up @@ -154,6 +155,15 @@ class State
double lastFrameTime = 0.0;
std::mutex frameTimeMutex;

// Version check
std::mutex versionCheckMutex;
bool versionCheckInProgress = false;
bool versionCheckCompleted = false;
bool updateAvailable = false;
std::string latestVersionTag;
std::string latestVersionUrl;
std::string versionCheckError;

// Swapchain info
float screenWidth = 800.0;
float screenHeight = 450.0;
Expand Down
3 changes: 3 additions & 0 deletions OptiScaler/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <nvapi/NvApiHooks.h>

#include <cwctype>
#include <version_check.h>

static std::vector<HMODULE> _asiHandles;

Expand Down Expand Up @@ -933,6 +934,8 @@ static void CheckWorkingMode()
else
LOG_ERROR("Failed to load igdext64.dll");
}

VersionCheck::Start();
}

return;
Expand Down
Loading