Skip to content

Commit

Permalink
Remove -dxtestsleepfix, this is now enabled along with the fps fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
bolrog committed May 25, 2021
1 parent 624cc49 commit 42484d5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
6 changes: 1 addition & 5 deletions src/d2dx/D2DXContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ D2DXContext::D2DXContext(
{
_gameHelper->TryApplyInGameFpsFix();
_gameHelper->TryApplyMenuFpsFix();

if (_options.GetFlag(OptionsFlag::TestSleepFixes))
{
_gameHelper->TryApplyInGameSleepFixes();
}
_gameHelper->TryApplyInGameSleepFixes();
}
}

Expand Down
13 changes: 0 additions & 13 deletions src/d2dx/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,6 @@ void Options::ApplyCfg(
}
}

auto experimental = toml_table_in(root, "experimental");

if (experimental)
{
auto testSleepFixes = toml_bool_in(experimental, "testsleepfixes");
if (testSleepFixes.ok)
{
SetFlag(OptionsFlag::TestSleepFixes, testSleepFixes.u.b);
}
}

toml_free(root);
}

Expand All @@ -173,8 +162,6 @@ void Options::ApplyCommandLine(
else if (strstr(cmdLine, "-dxscale2")) SetWindowScale(2);

if (strstr(cmdLine, "-dxdbg_dump_textures")) SetFlag(OptionsFlag::DbgDumpTextures, true);

if (strstr(cmdLine, "-dxtestsleepfix")) SetFlag(OptionsFlag::TestSleepFixes, true);
}

_Use_decl_annotations_
Expand Down
2 changes: 0 additions & 2 deletions src/d2dx/Options.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ namespace d2dx

Frameless,

TestSleepFixes,

Count
};

Expand Down

0 comments on commit 42484d5

Please sign in to comment.