Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: potential infinite loop in script

  1. #11
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Quote Originally Posted by genez_x View Post
    doesnt work well that (self getfps()), does not show the correct fps of the player on a server because it varies between 230 270 if the player has 250fps: at least use <280

    ps:when you are tryng that on local it varies between 240-260,i think the more ping you have the bigger the ping oscillation
    If you need a real fps, you can take it 10 (more or less) times and take average value of it.

  2. #12
    Private First Class
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    37
    Thanked 14 Times in 14 Posts
    i am using voron00's libcod
    it shows me 252 fps while put com_maxfps 250 , i changed my fps limit to 255 to dont kick innocent players. so its working well for me
    Last edited by feanor; 29th July 2017 at 15:12.

  3. #13
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    PHP Code:
    roundFps(fps)
    {
        if (
    fps 342 && fps 319)
            return 
    333;
        else if (
    fps 253 && fps 237)
            return 
    250;
        else if (
    fps 131 && fps 119)
            return 
    125;
        else if (
    fps 22 && fps 18)
            return 
    20;
        else
            return 
    fps;

    Something like this can work.
    sudo apt-get rekt

Posting Permissions

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