Skip to content

Commit 30e6010

Browse files
committed
revert "disable Vsync checkbox in case we are in borderelss or windowed mode to avoid unnecessary input lag"
1 parent e4b0fc3 commit 30e6010

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

config/ConfigFormUnit.cpp

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <SysUtils.hpp>
1010
#include <Registry.hpp>
1111
#include <System.Hash.hpp>
12-
#include <VersionHelpers.h>
1312
#include "ConfigFormUnit.h"
1413
//---------------------------------------------------------------------------
1514
#pragma package(smart_init)
@@ -1286,11 +1285,6 @@ void __fastcall TConfigForm::FormCreate(TObject *Sender)
12861285

12871286
delete ini;
12881287

1289-
VsyncChk->Enabled = VsyncAllowed();
1290-
if (!VsyncChk->Enabled) {
1291-
VsyncChk->State = tssOff;
1292-
}
1293-
12941288
Initialized = true;
12951289
}
12961290

@@ -1712,31 +1706,8 @@ bool TConfigForm::GetBool(TIniFile *ini, System::UnicodeString key, bool defValu
17121706
return s == "true" || s == "yes" || s == "1";
17131707
}
17141708

1715-
bool TConfigForm::VsyncAllowed()
1716-
{
1717-
if (GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "wine_get_version")) {
1718-
return true;
1719-
}
1720-
1721-
if (!IsWindows8OrGreater()) {
1722-
return true;
1723-
}
1724-
1725-
if (NonexclusiveChk->State == tssOff &&
1726-
(PresentationCbx->ItemIndex == 0 || PresentationCbx->ItemIndex == 1)) {
1727-
return true;
1728-
}
1729-
1730-
return false;
1731-
}
1732-
17331709
void __fastcall TConfigForm::PresentationCbxChange(TObject *Sender)
17341710
{
1735-
VsyncChk->Enabled = VsyncAllowed();
1736-
if (!VsyncChk->Enabled) {
1737-
VsyncChk->State = tssOff;
1738-
}
1739-
17401711
SaveSettings();
17411712
}
17421713

@@ -1845,11 +1816,6 @@ void __fastcall TConfigForm::SinglecpuChkClick(TObject *Sender)
18451816

18461817
void __fastcall TConfigForm::NonexclusiveChkClick(TObject *Sender)
18471818
{
1848-
VsyncChk->Enabled = VsyncAllowed();
1849-
if (!VsyncChk->Enabled) {
1850-
VsyncChk->State = tssOff;
1851-
}
1852-
18531819
SaveSettings();
18541820
}
18551821

config/ConfigFormUnit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ class TConfigForm : public TForm
118118
virtual void __fastcall CreateParams(TCreateParams & Params);
119119
void SaveSettings();
120120
bool GetBool(TIniFile *ini, System::UnicodeString key, bool defValue);
121-
bool VsyncAllowed();
122121
void ApplyTranslation(TIniFile *ini);
123122
System::UnicodeString GetKeyText(WORD key);
124123
WORD GetKeyCode(System::UnicodeString text);

0 commit comments

Comments
 (0)