Max Turbo - bypass limit frame rate, and auto-minimize skipping, and ramp up frame skip to 20

This commit is contained in:
adelikat 2012-08-28 02:20:22 +00:00
parent f5e08a72d0
commit 1a75f0734d
2 changed files with 43 additions and 4 deletions

View File

@ -61,7 +61,6 @@ namespace BizHawk.MultiClient
Throttle throttle;
bool unthrottled = false;
bool maxturbo = false;
//For handling automatic pausing when entering the menu
private bool wasPaused = false;

View File

@ -20,9 +20,49 @@ namespace BizHawk.MultiClient
public bool signal_unthrottle;
public bool signal_continuousframeAdvancing; //continuousframeAdvancing
public int cfg_frameskiprate { get { return Global.Config.FrameSkip; } }
public bool cfg_frameLimit { get { return Global.Config.LimitFramerate; } }
public bool cfg_autoframeskipenab { get { return Global.Config.AutoMinimizeSkipping; } }
public int cfg_frameskiprate
{
get
{
if (Global.ClientControls["MaxTurbo"])
{
return 20;
}
else
{
return Global.Config.FrameSkip;
}
}
}
public bool cfg_frameLimit
{
get
{
if (Global.ClientControls["MaxTurbo"])
{
return false;
}
else
{
return Global.Config.LimitFramerate;
}
}
}
public bool cfg_autoframeskipenab
{
get
{
if (Global.ClientControls["MaxTurbo"])
{
return false;
}
else
{
return Global.Config.AutoMinimizeSkipping;
}
}
}
public void Step(bool allowSleep, int forceFrameSkip)
{