implement back buffers option

This commit is contained in:
itsmattkc 2022-03-31 12:20:01 -07:00
parent cbd5b91141
commit ba305938a0
2 changed files with 9 additions and 0 deletions

View file

@ -189,6 +189,11 @@ LONG WINAPI InterceptRegQueryValueExA(HKEY hKey, LPCSTR lpValueName, LPDWORD lpR
ReturnRegistryYESNOFromBool(lpData, config.GetInt(_T("FlipSurfaces"), 0));
return ERROR_SUCCESS;
} else if (!strcmp(lpValueName, "Back Buffers in Video RAM")) {
ReturnRegistryYESNOFromBool(lpData, config.GetInt(_T("BackBuffersInVRAM"), 0));
return ERROR_SUCCESS;
} else if (!strcmp(lpValueName, "3D Device ID")) {
std::string dev_id = config.GetString("D3DDeviceID");

View file

@ -151,6 +151,10 @@ PatchGrid::PatchGrid()
_T(""), // FIXME: Write description for this
AddBoolItem(sectionGraphics, _T("Flip Video Memory Pages"), false));
AddPatch("BackBuffersInVRAM",
_T(""), // FIXME: Write description for this
AddBoolItem(sectionGraphics, _T("Draw 3D to Video Memory"), false));
vector<string> fpsList;
fpsList.push_back(_T("Default"));
fpsList.push_back(_T("Uncapped"));