Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Numeric Comparison: which is the most efficient/fastest
Numeric Comparison: which is the most efficient/fastest
Nov 23 2024, 11:03 pm
By: sethmachine  

Nov 23 2024, 11:03 pm sethmachine Post #1



When making numeric comparisons is various triggers, if I know the exact value that needs to be checked, does it matter whether I use

* At least
* At most
* Exactly

I have recalled reading that Exactly might be the most efficient / fastest if I just need to check a single value. E.g. suppose I want to know if a player commands a hero unit, and I know it's impossible for them to ever have more than 1.

Logically I could do Commands At Least 1 or Commands Exactly 1. Would the "Exactly" comparison be slightly more efficient? Or is it all the same under the hood?



None.

Nov 26 2024, 3:08 am DarkenedFantasies Post #2

Roy's Secret Service

The game always does a full tally (in other words, it doesn't stop counting upon reaching a value that can falsify the condition), so there's no difference in performance between the comparison modifiers. Using the "Foes", "Allies", "Neutral Players", "All Players", and "Non Allied Victory Players" groups are marginally more expensive since they go through every active player checking for alliance status with the trigger owner, but still won't have a humanly discernible hit to performance.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[2026-7-26. : 11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: DarkenedFantasies