mirror of https://github.com/PCSX2/pcsx2.git
Hack in a frame limit toggle on F4 and TAB using a global int. :p
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2012 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
d2767da7b3
commit
d87cc4d250
|
@ -284,10 +284,11 @@ void frameLimitReset()
|
|||
// Framelimiter - Measures the delta time between calls and stalls until a
|
||||
// certain amount of time passes if such time hasn't passed yet.
|
||||
// See the GS FrameSkip function for details on why this is here and not in the GS.
|
||||
extern int limitOn;
|
||||
static __forceinline void frameLimit()
|
||||
{
|
||||
// 999 means the user would rather just have framelimiting turned off...
|
||||
if( !EmuConfig.Video.EnableFrameLimiting || EmuConfig.Video.FpsLimit >= 999 ) return;
|
||||
if( /*!EmuConfig.Video.EnableFrameLimiting*/ !limitOn || EmuConfig.Video.FpsLimit >= 999 ) return;
|
||||
|
||||
s64 sDeltaTime;
|
||||
u64 uExpectedEnd;
|
||||
|
|
|
@ -53,16 +53,20 @@ wxString KeyAcceleratorCode::ToString() const
|
|||
).ToString();
|
||||
}
|
||||
|
||||
|
||||
int limitOn = false;
|
||||
namespace Implementations
|
||||
{
|
||||
void Frameskip_Toggle()
|
||||
{
|
||||
limitOn ^= 1;
|
||||
Console.WriteLn("Framelimit mode changed to %d", limitOn ? 1 : 0);
|
||||
// FIXME : Reimplement framelimiting using new double-switch boolean system
|
||||
}
|
||||
|
||||
void Framelimiter_TurboToggle()
|
||||
{
|
||||
limitOn ^= 1;
|
||||
Console.WriteLn("Framelimit mode changed to %d", limitOn ? 1 : 0);
|
||||
}
|
||||
|
||||
void Framelimiter_MasterToggle()
|
||||
|
|
Loading…
Reference in New Issue