• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Triggers

Status
Not open for further replies.
Level 12
Joined
Sep 11, 2011
Messages
1,176
will the triggers run more efficiently if they are converted to JASS? u know, will they run lagless (those minilags when they run)

it's the same, GUI is just a Graphical User Interface (Hashjie told me this) and will be converted to jass by default. Warcraft needs to convert them first before able to read them.

if you convert them to Jass, then you should also clean the BJ's and makes the code more efficient, thus it will be the same like you create them using Jass.
 
they have the same speed.But natives are much quicker than those of blizzard.j
to clean the blizzard wrappers,you must first see the blizzard.j read the functions.
Because blizzard functions returns native and native if used are much quicker.
Also,blizzard j has much longer names from those natives,making it much slower.Longer names are longer to be interpreted by shorter ones.
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
As a simple explanation (the one I understand, lol) is that GUI is inefficient and thus slower, but jass is much more efficient and thus faster.

When you press "Save Map", the editor converts all your GUI triggers into a big jass file. However, it converts it into a very redundant jass file. Meaning, its not like what a normal jass file should look like. Therefore it doesn't match up to the speed of a trigger originally written in jass.

will the triggers run more efficiently if they are converted to JASS?

So as I said before, the GUI triggers are already converted into jass, just messy written jass. So I think you meant to ask was:

"Will the triggers run more efficiently if you wrote them in jass".

Of course, this is a basic understanding if the technical terms above confused you :)
 
Status
Not open for further replies.
Top