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.
[04:47 am]
lil-Inferno -- rive
[03:48 am]
RIVE -- inferno
[03:18 am]
lil-Inferno -- moose
[08:35 pm]
Moose -- lil-Inferno
lil-Inferno shouted: sadjfjkasdhfijsadhmfcjhsdajkvfmjadslkfhjsdkahf
mad
[03:11 pm]
lil-Inferno -- h
[2026-6-09. : 5:01 pm]
NudeRaider -- Vrael
Vrael shouted: because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
given Moose's post I don't think he had to guess. ^^
[2026-6-09. : 4:53 pm]
NudeRaider -- lil-Inferno
lil-Inferno shouted: Nude why'd you delete my shout
why not? :awesome:
[2026-6-09. : 4:26 pm]
Vrael -- because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
[2026-6-09. : 3:58 pm]
lil-Inferno -- sadjfjkasdhfijsadhmfcjhsdajkvfmjadslkfhjsdkahf
[2026-6-09. : 3:58 pm]
lil-Inferno -- Nude why'd you delete my shout
Please log in to shout.


Members Online: RIVE