| 03-31-2007, 11:32 PM | #1 |
I heard that GUI uses "nasty bj functions". So what I'm asking here is -Why are bj's bad for triggering? -What does "bj" stand for? I also heard something about changing bj's to natives, if someone could clarify that I'd be greatful. Also if there's something related to this topic that could answer my questions then please redirect me. |
| 03-31-2007, 11:44 PM | #2 |
Bj = Blizzard J, which is a reference to the file that has all the Bj functions listed. Bjs are bad for triggering because they usually do nothing extra special, except change the order in which the inputs are in. This means they add an extra function call for no real reason. When doing many iterations of a Bj, you will get un-needed lag due to the use of the extra function call. Natives are what the Bj functions call in the end. They are the "raw" functions that are built directly into the engine. |
| 04-01-2007, 09:07 AM | #3 |
And thus BJ's are slow because function calls are very slow in JASS. Otherwise they wouldn't be too much of a problem. |
| 04-01-2007, 09:50 AM | #4 |
JASS:function DestroyEffectBJ takes effect whichEffect returns nothing call DestroyEffect(whichEffect) endfunction In conclusion (along with the other posts), BJ functions own. |
| 04-01-2007, 11:35 AM | #5 | |
Quote:
Fix't. |
| 04-01-2007, 02:22 PM | #6 | |
Quote:
|
| 04-01-2007, 02:23 PM | #7 |
Thanks for clearing this up guys, learn something new everyday :) |
