Results 1 to 10 of 35

Thread: Quick questions thread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Make sure you have fpsnextframe() called each frame, in a wait 0.05 loop.
    sudo apt-get rekt

  2. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Quote Originally Posted by voron00 View Post
    Make sure you have fpsnextframe() called each frame, in a wait 0.05 loop.
    Yep, done as IzNoGoD said in his original thread: https://killtube.org/showthread.php?...l-fps-realtime


    PHP Code:
    Init()
    {
        
    level thread MonitorPlayerConnect();
        
    level thread OnFrameUpdate();
    }

    OnFrameUpdate()
    {
        while( 
    true )
        {
            
    fpsNextFrame();

            
    wait0.05 );
        }
    }

    MonitorPlayerConnect()
    {
        while( 
    true )
        {
            
    level waittill"connected" player );

            if( !
    isDefinedplayer ) || !isPlayerplayer ) )
                continue;

            
    level thread OnClientFrameUpdateplayer );
        }
    }

    OnClientFrameUpdateplayer )
    {
        
    player resetFps();

        while( 
    isDefinedplayer ) )
        {
            
    player.fps player getFps();
            
    player iPrintLnplayer.fps );

            
    wait0.05 );
        }


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •