Question Regarding Math Operation Chain's Updating
While working on my map Ducky Dojo I ran into some lag issues while doing extensive "Copying". By "Copying" I mean I was using Set Values to copy the result of a Math operation chain to a temporary "Hold" Variable Data Source, in order to update the Ducky AI only when needed. In hindsight, I see ways I could of made it better, but I also think some of my issues came from performing these "Copy" operations when I really didn't need too, and so it cost me CPU performance. I set up two examples in this Google Doc demonstrating the two methods I used for updating. If anyone thinks they knows which way is better, feel free too post below!
Link --> https://docs.google.com/drawings/d/1...it?usp=sharing
Edit: My true concern is when exactly do Math operation chains update, when it is called by a Set Value, or when the input values to the chain update? Also, if the Math chain is updating when input changes, does that mean that the chain in the example updates twice, once when "Holdx" is updated, and once when "Holdy" is updated? :confused: