• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

__fix_setfst

Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
timer.cpp
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:
Newbie Spellweaver
Joined
Sep 4, 2020
Messages
11
Reaction score
13
Thanks. I remember this being released like 4 years ago and it was only recently that someone was reselling it.
 
Last edited:
Newbie Spellweaver
Joined
Sep 4, 2020
Messages
11
Reaction score
13
what is this for sir? sorry im just a leecher
Rather than running cpu cycles consistently calling UpdateTime() for waiting for the next frame, it just halts execution for the difference of ms then updates the time.
 
Back
Top