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:29 am]
Symmetry -- TFW you google a problem and find the answer in a post you made yourself
[01:46 am]
Oh_Man -- How can i change my name here to put [TFE] on the end will thr website let me
[06:02 pm]
Zoan -- of course it isn't full understanding. You could ask "is the mechanism by which this counterexample blows up the ONLY mechanism possible for an initial configuration to blow up?"
[05:48 pm]
Zoan -- ppl do it all the time in PDEs
[05:47 pm]
Zoan -- Heinermann
Heinermann shouted: it also didn't solve that problem but hey as long as the investors are pleased
Constructing a counterexample is answering the question: "Is Navier Stokes well posed?" in the negative
[05:44 pm]
NudeRaider -- I only heard about it, didn't any news article, so what did it do then?
[05:43 pm]
Heinermann -- it also didn't solve that problem but hey as long as the investors are pleased
[05:39 pm]
NudeRaider -- I have no idea tbh. All I know no human was ever able to solve it, but there's at least a few that beat portal ;)
[05:32 pm]
Zoan -- Navier Stokes is not that esoteric I thought
[04:32 pm]
NudeRaider -- Zoan
Zoan shouted: I find it kind of sad that on the same day it was announced AI solved Navier Stokes, it was also announced AI beat Portal, and there's a good deal of people who don't know which is more impressive
you find it sad not everyone is a math nerd?
Please log in to shout.


Members Online: anoeth47