mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-22 21:35:51 +00:00
Load and save half & full sync options too
This commit is contained in:
+13
-5
@@ -66,6 +66,19 @@ HUDFixExtended=auto
|
||||
; true or false - Default (auto) is false
|
||||
HUDFixImmadiate=auto
|
||||
|
||||
; Closes Hudfix Cmdlist after Swapchain callback
|
||||
; Setting it false most probably cause occasional garbling
|
||||
; true or false - Default (auto) is true
|
||||
HudFixCloseAfterCallback=auto
|
||||
|
||||
; Release present sync mutex after presenting 1 frame
|
||||
; true or false - Default (auto) is false
|
||||
HudfixHalfSync=auto
|
||||
|
||||
; Release present sync mutex after presenting 2 frames
|
||||
; true or false - Default (auto) is false
|
||||
HudfixFullSync=auto
|
||||
|
||||
; Defines FG rectangle
|
||||
; integer value - Default (auto) is whole screen
|
||||
RectLeft=auto
|
||||
@@ -98,11 +111,6 @@ DepthScaleMax=auto
|
||||
; true or false - Default (auto) is true
|
||||
MakeMVCopy=auto
|
||||
|
||||
; Closes Hudfix Cmdlist after Swapchain callback
|
||||
; Setting it false most probably cause occasional garbling
|
||||
; true or false - Default (auto) is true
|
||||
HudFixCloseAfterCallback=auto
|
||||
|
||||
; Enables usage of mutex for FG swapchain present calls
|
||||
; Disabling it might improve performance in cost of stability
|
||||
; true or false - Default (auto) is true
|
||||
|
||||
@@ -92,6 +92,9 @@ bool Config::Reload(std::filesystem::path iniPath)
|
||||
FGFPTAllowHybridSpin.set_from_config(readBool("OptiFG", "FPTHybridSpin"));
|
||||
FGFPTHybridSpinTime.set_from_config(readInt("OptiFG", "FPTHybridSpinTime"));
|
||||
FGFPTAllowWaitForSingleObjectOnFence.set_from_config(readInt("OptiFG", "FPTWaitForSingleObjectOnFence"));
|
||||
|
||||
FGHudfixHalfSync.set_from_config(readBool("OptiFG", "HudfixHalfSync"));
|
||||
FGHudfixFullSync.set_from_config(readBool("OptiFG", "HudfixFullSync"));
|
||||
}
|
||||
|
||||
// Framerate
|
||||
@@ -601,6 +604,9 @@ bool Config::SaveIni()
|
||||
ini.SetValue("OptiFG", "FPTHybridSpin", GetBoolValue(Instance()->FGFPTAllowHybridSpin.value_for_config()).c_str());
|
||||
ini.SetValue("OptiFG", "FPTHybridSpinTime", GetIntValue(Instance()->FGFPTHybridSpinTime.value_for_config()).c_str());
|
||||
ini.SetValue("OptiFG", "FPTWaitForSingleObjectOnFence", GetBoolValue(Instance()->FGFPTAllowWaitForSingleObjectOnFence.value_for_config()).c_str());
|
||||
|
||||
ini.SetValue("OptiFG", "HudfixHalfSync", GetBoolValue(Instance()->FGHudfixHalfSync.value_for_config()).c_str());
|
||||
ini.SetValue("OptiFG", "HudfixFullSync", GetBoolValue(Instance()->FGHudfixFullSync.value_for_config()).c_str());
|
||||
}
|
||||
|
||||
// Framerate
|
||||
|
||||
@@ -1111,7 +1111,6 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D12_EvaluateFeature(ID3D12GraphicsCom
|
||||
|
||||
// DLSS Enabler
|
||||
{
|
||||
// DLSS Enabler check
|
||||
int deAvail = 0;
|
||||
if (!State::Instance().enablerAvailable && InParameters->Get("DLSSEnabler.Available", &deAvail) == NVSDK_NGX_Result_Success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user