mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-04 08:41:43 +00:00
Fix reading of FGFPTAllowWaitForSingleObjectOnFence from ini
This commit is contained in:
@@ -156,7 +156,7 @@ bool Config::Reload(std::filesystem::path iniPath)
|
||||
FGFPTVarianceFactor.set_from_config(readFloat("FSRFG", "FPTVarianceFactor"));
|
||||
FGFPTAllowHybridSpin.set_from_config(readBool("FSRFG", "FPTHybridSpin"));
|
||||
FGFPTHybridSpinTime.set_from_config(readInt("FSRFG", "FPTHybridSpinTime"));
|
||||
FGFPTAllowWaitForSingleObjectOnFence.set_from_config(readInt("FSRFG", "FPTWaitForSingleObjectOnFence"));
|
||||
FGFPTAllowWaitForSingleObjectOnFence.set_from_config(readBool("FSRFG", "FPTWaitForSingleObjectOnFence"));
|
||||
FSRFGEnableWatermark.set_from_config(readBool("FSRFG", "EnableWatermark"));
|
||||
}
|
||||
|
||||
|
||||
@@ -3615,7 +3615,9 @@ bool MenuCommon::RenderMenu()
|
||||
config->FGFPTAllowWaitForSingleObjectOnFence.value_or_default();
|
||||
if (ImGui::Checkbox("Enable WaitForSingleObjectOnFence",
|
||||
&fpWaitForSingleObjectOnFence))
|
||||
{
|
||||
config->FGFPTAllowWaitForSingleObjectOnFence = fpWaitForSingleObjectOnFence;
|
||||
}
|
||||
ShowHelpMarker("Allows WaitForSingleObject instead of spinning for fence value");
|
||||
|
||||
if (ImGui::Button("Apply Timing Changes"))
|
||||
|
||||
Reference in New Issue
Block a user