Skip to content

Commit f9e32ae

Browse files
committed
fix for enabler menu issues
1 parent 88ede09 commit f9e32ae

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

OptiScaler/OptiScaler.vcxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
8282
<IncludePath>$(SolutionDir)external\vulkan\include;$(SolutionDir)external\nvngx_dlss_sdk;$(SolutionDir)external\xess\inc\xess;$(SolutionDir)external\simpleini;$(SolutionDir)external\unordered_dense\include;$(SolutionDir)external\spdlog\include;$(IncludePath)</IncludePath>
8383
<LibraryPath>$(ProjectDir)fsr2\lib;$(ProjectDir)fsr2_212\lib;$(ProjectDir)vulkan;$(ProjectDir)d3dx;$(ProjectDir)detours;$(SolutionDir)external\xess\lib;$(LibraryPath)</LibraryPath>
84-
<TargetName>dxgi</TargetName>
85-
<OutDir>F:\Games\Steam\steamapps\common\Sons Of The Forest\</OutDir>
84+
<TargetName>dlss-enabler-upscaler</TargetName>
85+
<OutDir>D:\Folders\Games\Banishers Ghosts of New Eden\NWD\Binaries\Win64\</OutDir>
8686
<IntDir>.\x64\Debug</IntDir>
8787
</PropertyGroup>
8888
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">

OptiScaler/imgui/imgui_common.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ImGuiCommon
3232
inline static uint32_t _renderWidth = 0;
3333

3434
// dlss enabler
35-
inline static int _deLimitFps = 0;
35+
inline static int _deLimitFps = 500;
3636

3737
// output scaling
3838
inline static float _ssRatio = 0.0f;
@@ -42,6 +42,7 @@ class ImGuiCommon
4242
inline static int _selectedScale = 0;
4343
inline static bool _imguiSizeUpdate = true;
4444

45+
// ovarlay states
4546
inline static bool _dx11Ready = false;
4647
inline static bool _dx12Ready = false;
4748
inline static bool _vulkanReady = false;
@@ -1094,7 +1095,8 @@ class ImGuiCommon
10941095

10951096
ImGui::BeginDisabled(Config::Instance()->DE_FramerateLimitVsync.value_or(false));
10961097

1097-
if (Config::Instance()->DE_FramerateLimit.has_value() && _deLimitFps == 0)
1098+
// set inital value
1099+
if (Config::Instance()->DE_FramerateLimit.has_value() && _deLimitFps > 200)
10981100
_deLimitFps = Config::Instance()->DE_FramerateLimit.value();
10991101

11001102
ImGui::SliderInt("FPS Limit", &_deLimitFps, 0, 200);
@@ -1142,8 +1144,8 @@ class ImGuiCommon
11421144
if (ImGui::Selectable("FSR3", Config::Instance()->DE_Generator.value_or("auto") == "fsr3"))
11431145
Config::Instance()->DE_Generator = "fsr3";
11441146

1145-
if (ImGui::Selectable("DLSS-G", Config::Instance()->DE_Generator.value_or("auto") == "dlggs"))
1146-
Config::Instance()->DE_Generator = "dlggs";
1147+
if (ImGui::Selectable("DLSS-G", Config::Instance()->DE_Generator.value_or("auto") == "dlssg"))
1148+
Config::Instance()->DE_Generator = "dlssg";
11471149

11481150
ImGui::EndCombo();
11491151
}

OptiScaler/resource.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define VER_MAJOR_VERSION 0
2222
#define VER_MINOR_VERSION 6
2323
#define VER_HOTFIX_VERSION 1
24-
#define VER_BUILD_NUMBER 21
24+
#define VER_BUILD_NUMBER 22
2525
#define VER_PRE_RELEASE
2626

2727
#define VER_FILE_VERSION VER_MAJOR_VERSION, VER_MINOR_VERSION, VER_HOTFIX_VERSION, VER_BUILD_NUMBER

0 commit comments

Comments
 (0)