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.
[02:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: NudeRaider