Introduce Timer Hack.

Has been used in previous Symbian releases to improve speed. Was thought to only work on Wipeout but actually works on most games?
Games that run based on internal timer will experience 60 VPS without frameskip.
This commit is contained in:
Sacha committed 2013-11-16 02:16:17 +10:00
1 parent 4a89e2e74f
commit fb7c3d96fd
7 files changed
+24

No files matched your search

+7
View File
@@ -187,6 +187,12 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
graphics->Get("VSyncInterval", &bVSync, false);
graphics->Get("DisableStencilTest", &bDisableStencilTest, false);
graphics->Get("AlwaysDepthWrite", &bAlwaysDepthWrite, false);
// Has been in use on Symbian since v0.7. Preferred option.
#ifdef __SYMBIAN32__
graphics->Get("TimerHack", &bTimerHack, true);
#else
graphics->Get("TimerHack", &bTimerHack, false);
#endif
graphics->Get("LowQualitySplineBezier", &bLowQualitySplineBezier, false);
graphics->Get("WipeFramebufferAlpha", &bWipeFramebufferAlpha, false);
graphics->Get("PostShader", &sPostShaderName, "Off");
@@ -427,6 +433,7 @@ void Config::Save() {
graphics->Set("VSyncInterval", bVSync);
graphics->Set("DisableStencilTest", bDisableStencilTest);
graphics->Set("AlwaysDepthWrite", bAlwaysDepthWrite);
graphics->Set("TimerHack", bTimerHack);
graphics->Set("LowQualitySplineBezier", bLowQualitySplineBezier);
graphics->Set("PostShader", sPostShaderName);