mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #11666 from hrydgard/remove-timer-hack
Remove "Timer Hack" setting.
This commit is contained in:
commit
d7d1a5fc63
5 changed files with 0 additions and 16 deletions
|
@ -657,7 +657,6 @@ static ConfigSetting graphicsSettings[] = {
|
|||
ReportedConfigSetting("BloomHack", &g_Config.iBloomHack, 0, true, true),
|
||||
|
||||
// Not really a graphics setting...
|
||||
ReportedConfigSetting("TimerHack", &g_Config.bTimerHack, &DefaultTimerHack, true, true),
|
||||
ReportedConfigSetting("SplineBezierQuality", &g_Config.iSplineBezierQuality, 2, true, true),
|
||||
ReportedConfigSetting("HardwareTessellation", &g_Config.bHardwareTessellation, false, true, true),
|
||||
ReportedConfigSetting("PostShader", &g_Config.sPostShaderName, "Off", true, true),
|
||||
|
|
|
@ -185,7 +185,6 @@ public:
|
|||
bool bReloadCheats;
|
||||
int iCwCheatRefreshRate;
|
||||
int iBloomHack; //0 = off, 1 = safe, 2 = balanced, 3 = aggressive
|
||||
bool bTimerHack;
|
||||
bool bBlockTransferGPU;
|
||||
bool bDisableSlowFramebufEffects;
|
||||
bool bFragmentTestCache;
|
||||
|
|
|
@ -120,15 +120,8 @@ u64 GetGlobalTimeUsScaled()
|
|||
{
|
||||
s64 ticksSinceLast = GetTicks() - lastGlobalTimeTicks;
|
||||
int freq = GetClockFrequencyMHz();
|
||||
if (g_Config.bTimerHack) {
|
||||
float vps;
|
||||
__DisplayGetVPS(&vps);
|
||||
if (vps > 4.0f)
|
||||
freq *= (vps / 59.94f);
|
||||
}
|
||||
s64 usSinceLast = ticksSinceLast / freq;
|
||||
return lastGlobalTimeUs + usSinceLast;
|
||||
|
||||
}
|
||||
|
||||
u64 GetGlobalTimeUs()
|
||||
|
|
|
@ -458,8 +458,6 @@ namespace Reporting
|
|||
bool IsSupported()
|
||||
{
|
||||
// Disabled when using certain hacks, because they make for poor reports.
|
||||
if (g_Config.bTimerHack)
|
||||
return false;
|
||||
if (CheatsInEffect())
|
||||
return false;
|
||||
if (g_Config.iLockedCPUSpeed != 0)
|
||||
|
|
|
@ -461,11 +461,6 @@ void GameSettingsScreen::CreateViews() {
|
|||
#endif
|
||||
|
||||
graphicsSettings->Add(new ItemHeader(gr->T("Hack Settings", "Hack Settings (these WILL cause glitches)")));
|
||||
CheckBox *timerHack = graphicsSettings->Add(new CheckBox(&g_Config.bTimerHack, gr->T("Timer Hack")));
|
||||
timerHack->OnClick.Add([=](EventParams &e) {
|
||||
settingInfo_->Show(gr->T("TimerHack Tip", "Changes game clock based on emu speed, may break games"), e.v);
|
||||
return UI::EVENT_CONTINUE;
|
||||
});
|
||||
|
||||
static const char *bloomHackOptions[] = { "Off", "Safe", "Balanced", "Aggressive" };
|
||||
PopupMultiChoice *bloomHack = graphicsSettings->Add(new PopupMultiChoice(&g_Config.iBloomHack, gr->T("Lower resolution for effects (reduces artifacts)"), bloomHackOptions, 0, ARRAY_SIZE(bloomHackOptions), gr->GetName(), screenManager()));
|
||||
|
|
Loading…
Add table
Reference in a new issue