HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

GetTriggerUnit() VS GetXXXUnit()

04-07-2007, 02:52 PM#1
Troll-Brain
What is the fastest or how can i find myself.

Maybe with a loop and look the curve of processor ?
Is there a link between the execution speed of a function and the release of the memory speed ?
04-07-2007, 02:54 PM#2
Vexorian
The difference doesn't matter at all, but TriggeringUnit is slightly faster, and it is better in some cases.
04-07-2007, 02:56 PM#3
Troll-Brain
Quote:
Originally Posted by Vexorian
The difference doesn't matter at all, but TriggeringUnit is slightly faster, and it is better in some cases.

The difference is like some nanoseconds ?
Ok great i always use GetTriggerUnit() when i can, especially when i use waits in a trigger
04-07-2007, 03:31 PM#4
DioD
XXXunit will be lost after wait
04-07-2007, 03:33 PM#5
Troll-Brain
i know, that's why i say especially
And i know how to use a local
04-07-2007, 03:34 PM#6
Daelin
Not necessarily... Not all XXXunits are lost after waits. Only a few added during ulterior patches. And of course, in some cases XXXunits cannot be replaced by GetTriggerUnit().

~Daelin