Does OnPlayerUpdate lag?
#1

pawn Код:
public OnPlayerUpdate(playerid)
{
  new keys, updown, leftright;
  GetPlayerKeys (playerid, keys, updown, leftright);
  if((updown != 128 && updown != 0 && updown != -128) || (leftright != 128 && leftright != 0 && leftright != -128))
  {
      UsingJoypad[playerid] = 1;
  }
}
Will this code lag my server?
Reply
#2

Well when a players FPS is 100, no need to check if a player is using joypad 100 times in a sec, or is there?
Reply
#3

Quote:
Originally Posted by Dan.
Посмотреть сообщение
Well when a players FPS is 100, no need to check if a player is using joypad 100 times in a sec, or is there?
It doesn't check 100 times even with 100 fps
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)