by cjbarnes5294 » Fri Jul 03, 2015 6:33 pm
It's worth adding to Pete's excellent description just to say that you should only send a consist message when you need to, not just hammer it out every time the script updates, because it can be particularly costly on runtime performance. So for example, only send a consist message if there is a detected change in a lamp control value since the last update and when the control value is exactly equal to 1, or 0, or whatever. This helps to keep everything running efficiently.
Chris
The Red Queen Hypothesis, applicable to train sim development?
"Here, you see, it takes all of the running you can do, to keep the same place."