mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-22 21:35:51 +00:00
reverted dlss check for now
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<VCProjectVersion>16.0</VCProjectVersion>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{8d2b73fb-eecd-45ce-b8e5-335610462f58}</ProjectGuid>
|
||||
<RootNamespace>CyberXeSS</RootNamespace>
|
||||
<RootNamespace>OptiScaler</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
|
||||
#include "../../fsr2/include/ffx_fsr2.h"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
|
||||
#include "../../fsr2_212/include/ffx_fsr2.h"
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
#pragma once
|
||||
#include "XeSSFeature.h"
|
||||
|
||||
#include "../../pch.h"
|
||||
#include "../../Config.h"
|
||||
#include "../../Util.h"
|
||||
|
||||
#include "../../detours/detours.h"
|
||||
|
||||
#include "XeSSFeature.h"
|
||||
#include "../../d3dx/d3dx12.h"
|
||||
|
||||
|
||||
inline void XeSSLogCallback(const char* Message, xess_logging_level_t Level)
|
||||
{
|
||||
spdlog::log((spdlog::level::level_enum)((int)Level + 1), "FeatureContext::LogCallback XeSS Runtime ({0})", Message);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
#include "../IFeature_Dx12.h"
|
||||
#include "XeSSFeature.h"
|
||||
#include <string>
|
||||
|
||||
class XeSSFeatureDx12 : public XeSSFeature, public IFeature_Dx12
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "../Config.h"
|
||||
#include "../Resource.h"
|
||||
#include "../Logger.h"
|
||||
#include "../NVNGX_Proxy.h"
|
||||
|
||||
#include "imgui/imgui.h"
|
||||
#include "imgui/imgui_impl_win32.h"
|
||||
@@ -598,7 +597,7 @@ public:
|
||||
selectedUpscalerName = "FSR 2.2.1 w/Dx12";
|
||||
else if (Config::Instance()->newBackend == "fsr21_12" || (Config::Instance()->newBackend == "" && *code == "fsr21_12"))
|
||||
selectedUpscalerName = "FSR 2.1.2 w/Dx12";
|
||||
else if (NVNGXProxy::IsNVNGXInited() && (Config::Instance()->newBackend == "dlss" || (Config::Instance()->newBackend == "" && *code == "dlss")))
|
||||
else if (Config::Instance()->DLSSEnabled.value_or(true) && (Config::Instance()->newBackend == "dlss" || (Config::Instance()->newBackend == "" && *code == "dlss")))
|
||||
selectedUpscalerName = "DLSS";
|
||||
else
|
||||
selectedUpscalerName = "XeSS w/Dx12";
|
||||
@@ -617,7 +616,7 @@ public:
|
||||
if (ImGui::Selectable("FSR 2.2.1 w/Dx12", *code == "fsr22_12"))
|
||||
Config::Instance()->newBackend = "fsr22_12";
|
||||
|
||||
if (NVNGXProxy::IsNVNGXInited() && ImGui::Selectable("DLSS", *code == "dlss"))
|
||||
if (Config::Instance()->DLSSEnabled.value_or(true) && ImGui::Selectable("DLSS", *code == "dlss"))
|
||||
Config::Instance()->newBackend = "dlss";
|
||||
|
||||
ImGui::EndCombo();
|
||||
@@ -632,7 +631,7 @@ public:
|
||||
selectedUpscalerName = "FSR 2.1.2";
|
||||
else if (Config::Instance()->newBackend == "fsr22" || (Config::Instance()->newBackend == "" && *code == "fsr22"))
|
||||
selectedUpscalerName = "FSR 2.2.1";
|
||||
else if (NVNGXProxy::IsNVNGXInited() && (Config::Instance()->newBackend == "dlss" || (Config::Instance()->newBackend == "" && *code == "dlss")))
|
||||
else if (Config::Instance()->DLSSEnabled.value_or(true) && (Config::Instance()->newBackend == "dlss" || (Config::Instance()->newBackend == "" && *code == "dlss")))
|
||||
selectedUpscalerName = "DLSS";
|
||||
else
|
||||
selectedUpscalerName = "XeSS";
|
||||
@@ -648,7 +647,7 @@ public:
|
||||
if (ImGui::Selectable("FSR 2.2.1", *code == "fsr22"))
|
||||
Config::Instance()->newBackend = "fsr22";
|
||||
|
||||
if (NVNGXProxy::IsNVNGXInited() && ImGui::Selectable("DLSS", *code == "dlss"))
|
||||
if (Config::Instance()->DLSSEnabled.value_or(true) && ImGui::Selectable("DLSS", *code == "dlss"))
|
||||
Config::Instance()->newBackend = "dlss";
|
||||
|
||||
ImGui::EndCombo();
|
||||
@@ -661,7 +660,7 @@ public:
|
||||
|
||||
if (Config::Instance()->newBackend == "fsr21" || (Config::Instance()->newBackend == "" && *code == "fsr21"))
|
||||
selectedUpscalerName = "FSR 2.1.2";
|
||||
else if (NVNGXProxy::IsNVNGXInited() && (Config::Instance()->newBackend == "dlss" || (Config::Instance()->newBackend == "" && *code == "dlss")))
|
||||
else if (Config::Instance()->DLSSEnabled.value_or(true) && (Config::Instance()->newBackend == "dlss" || (Config::Instance()->newBackend == "" && *code == "dlss")))
|
||||
selectedUpscalerName = "DLSS";
|
||||
else
|
||||
selectedUpscalerName = "FSR 2.2.1";
|
||||
|
||||
Reference in New Issue
Block a user