Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

__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