Faster :Triple check or check with *
#4

Let me just show you one thing..

pawn Code:
if(X*Y<0)
X = 3, Y = 4
pawn Code:
if(3*4<0)
if(12<0) //is the outcome. This will return false.
pawn Code:
if(X>0 && Y>0)
else if(X<0 && Y<0)
X = 3, Y = 4
pawn Code:
if(3>0 && 4>0) //will return true
else if(3<0 && 4<0) //will return false
These are two completely different codes. You can't compare speed with that.
Reply


Messages In This Thread
[Resolved?] float functions are faster than if() - by RSX - 12.09.2010, 15:02
Re: Faster :Triple check or check with * - by LarzI - 12.09.2010, 15:28
Re: [Resolved?] float functions are faster than if() - by RSX - 12.09.2010, 15:30
Re: Faster :Triple check or check with * - by LarzI - 12.09.2010, 15:34
Re: Faster :Triple check or check with * - by RSX - 12.09.2010, 15:41
Re: Faster :Triple check or check with * - by kc - 12.09.2010, 15:46
Re:[Resolved?] float functions are faster than if() - by RSX - 12.09.2010, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)