Will this cause lag with say.. 100 players?
#1

pawn Код:
SetTimer( "UpdateSpeedo", 50, true );
pawn Код:
forward UpdateSpeedo( );
public UpdateSpeedo ( )
{
    for( new u; u < MAX_PLAYERS; u ++ )
    {
        if( InCar [ u ] == true )
        {
            new
                Float:  oldspeed,
                        newspeed,
                        str [ 64 ];
               
            oldspeed = GetPlayerSpeed( u, true );
            newspeed = floatround( oldspeed, floatround_ceil );
           
            format( str, 64, "~b~MPH: ~w~%d",  newspeed );
            PlayerTextDrawSetString( u, Speedo [ u ], str );
        }
    }
    return true;
}
I mean, it's not very difficult math being performed so it really shouldn't, but there's still that possibility.. any ideas on if it will, and if it will, have any solutions without the speedo being skippy?
Reply


Messages In This Thread
Will this cause lag with say.. 100 players? - by 2KY - 19.09.2012, 23:24
Re: Will this cause lag with say.. 100 players? - by Mauzen - 19.09.2012, 23:30
Re: Will this cause lag with say.. 100 players? - by Jefff - 20.09.2012, 00:03
Re: Will this cause lag with say.. 100 players? - by 2KY - 20.09.2012, 00:09
Re: Will this cause lag with say.. 100 players? - by Johndaonee - 20.09.2012, 00:33
Re: Will this cause lag with say.. 100 players? - by Blasphemy - 20.09.2012, 02:50
Re: Will this cause lag with say.. 100 players? - by [ABK]Antonio - 20.09.2012, 02:54
Re: Will this cause lag with say.. 100 players? - by Blasphemy - 20.09.2012, 03:02

Forum Jump:


Users browsing this thread: 3 Guest(s)