Fix reading of FGFPTAllowWaitForSingleObjectOnFence from ini

This commit is contained in:
cdozdil
2026-04-06 14:48:56 +03:00
parent 395185fa8b
commit 3cd4714249
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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"));
}
+2
View File
@@ -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"))