Hey all, I was just wondering if there is any performance difference between these two methods:
Boolean = TRUE: Set size to X
Boolean = FALSE: Set size to Y
Boolean = TRUE:
--sub-event: size equals X (inverted): Set size to X
Boolean = FALSE: set size to Y
--sub-event: size equals Y (inverted): Set size to Y
They both do the same thing, but as far as my knowledge goes, the first one will constantly do the process of resizing to X/Y even if it is already at that size. Whereas the second method would only perform the action if it was the wrong size.
Or, am I wrong, and the game will only perform an action if the result is different anyway? Or is there some other things I should be aware of?
I have a lot of this sort of stuff going on in my game, using the first version, and it runs fine, so this is more a curiosity question.