__fix_setfst

Results 1 to 5 of 5
  1. #1
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    1,540Posts

    __fix_setfst

    __fix_setfst
    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 by Ketchup; 09-10-20 at 11:23 PM.


  2. #2
    Registered MadScientist is offline
    MemberRank
    Sep 2020 Join Date
    11Posts

    Re: __fix_setfst

    Thanks. I remember this being released like 4 years ago and it was only recently that someone was reselling it.
    Last edited by MadScientist; 23-09-20 at 01:44 PM.
    M¿dScientist#1335

  3. #3
    Member dotaboiz123 is offline
    MemberRank
    Oct 2015 Join Date
    49Posts

    Re: __fix_setfst

    Quote Originally Posted by MadScientist View Post
    Thanks. I remember this being released like 4 years ago and it was only recently that someone was reselling it on a different place.
    what is this for sir? sorry im just a leecher

  4. #4
    Registered MadScientist is offline
    MemberRank
    Sep 2020 Join Date
    11Posts

    Re: __fix_setfst

    Quote Originally Posted by dotaboiz123 View Post
    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.
    M¿dScientist#1335

  5. #5
    Member dotaboiz123 is offline
    MemberRank
    Oct 2015 Join Date
    49Posts

    Re: __fix_setfst

    Quote Originally Posted by MadScientist View Post
    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.
    Thanks for the info sir!



Advertisement