Optimizing this code
#2

Use GetPlayerDistanceFromPoint().

It does the same math but with 6 less native calls (you don't need to do GetPlayerPos(), furthermore each float operation is one native call, since PAWN can't do that).
Reply


Messages In This Thread
Optimizing this code - by Uberanwar - 20.05.2018, 21:20
Re: Optimizing this code - by NaS - 21.05.2018, 06:58
Re: Optimizing this code - by Uberanwar - 21.05.2018, 07:54

Forum Jump:


Users browsing this thread: 1 Guest(s)