project64/Source/Project64/N64 System/Speed Limitor Class.h

17 lines
493 B
C++

class CSpeedLimitor {
CNotification * const _Notify;
DWORD m_Speed, m_BaseSpeed, m_Frames, m_LastTime;
double m_Ratio;
void FixSpeedRatio ( void );
public:
CSpeedLimitor ( CNotification * const _Notify );
~CSpeedLimitor ( void );
void SetHertz ( const DWORD Hertz );
bool Timer_Process ( DWORD * const FrameRate );
void IncreaeSpeed ( int Percent );
void DecreaeSpeed ( int Percent );
};