HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

is this worth it

10-29-2007, 10:54 PM#1
MaD[Lion]
is it worth replacing SetUnitX with 1 If, 1 local declaratin, 1 multiplication and one > comparation. Is it worth doing the if check to prevent SetUnitX to run if speed in X is 0 or very small
10-29-2007, 10:58 PM#2
Toadcop
MaD[Lion] no. you mean performancewise ? than yes no. SetUnitX/Y is fast. so not really. =) (if you would asking about SetUnitPosition() so yes ^^)
10-30-2007, 04:12 PM#3
cohadar
Hahhahahahha,
note to myself, never ask Toadcop for yes/no answer.
10-30-2007, 05:02 PM#4
Vexorian
I think the bottleneck at SetUnitPosition is the pathing stuff have no way to prove it though.
10-30-2007, 06:42 PM#5
MaD[Lion]
i dont use setunitposition :P

TC answered my question and 2nd person, so now im more sure :P
10-30-2007, 06:43 PM#6
Toadcop
Quote:
I think the bottleneck at SetUnitPosition is the pathing stuff have no way to prove it though.
yes it's. and it's VERY tight... =\ (cause it's the only difference) pathing in wc3 is dynamic so it uses advanced algorithms to calc it... (imho)