2008-09-18 03:15:49 +00:00
|
|
|
class CSpeedLimitor {
|
2012-11-17 00:58:31 +00:00
|
|
|
CNotification * const g_Notify;
|
2008-09-18 03:15:49 +00:00
|
|
|
DWORD m_Speed, m_BaseSpeed, m_Frames, m_LastTime;
|
|
|
|
double m_Ratio;
|
|
|
|
|
|
|
|
void FixSpeedRatio ( void );
|
|
|
|
|
|
|
|
public:
|
2012-11-17 00:58:31 +00:00
|
|
|
CSpeedLimitor ( CNotification * const g_Notify );
|
2008-09-18 03:15:49 +00:00
|
|
|
~CSpeedLimitor ( void );
|
|
|
|
void SetHertz ( const DWORD Hertz );
|
|
|
|
bool Timer_Process ( DWORD * const FrameRate );
|
|
|
|
void IncreaeSpeed ( int Percent );
|
|
|
|
void DecreaeSpeed ( int Percent );
|
|
|
|
|
|
|
|
};
|