timer.cpp
0 support will be given by me as you guys never hit the thanks button and(or) say thanks in general.
Code:
void SetFST(void)
{
#ifdef __FIX_SETFST
if (s_bFrameSkip == FALSE) return;
UpdateTime();
if (m_lTime < (1000 / FRAME_PER_SEC))
{
Sleep((1000 / FRAME_PER_SEC) - m_lTime);
UpdateTime();
}
m_lTime -= (1000 / FRAME_PER_SEC);
#else
if (s_bFrameSkip == FALSE) return;
UpdateTime();
while (m_lTime < (1000 / FRAME_PER_SEC))
UpdateTime();
m_lTime -= (1000 / FRAME_PER_SEC);
#endif
}
0 support will be given by me as you guys never hit the thanks button and(or) say thanks in general.
Last edited: