I have a number of interconnected scripts that all need to determine if a particular avatar is in the vicinity and I'm looking to do this is a low lag fashion.
So rather than run 5 sensors, I have timers firing that use this function to determine if the Av is around. Now the timers do other things as well so it seemed more efficient that running a whole bunch of sensors.
My question is about link messages.
In looking at my code I have the possibility of getting this data in 1 script then distributing the results via llmessagelinked to the other scripts.
I was wondering if the 1 call to the function then distributing the result would be faster than collecting the result using the same function in each script. The downside in this is that it means each script has to wake up to process the message AND for the timer rather than just the timer.
Why I am doing this is moderately complicated but the reason is valid. Among other reasons is I can't use a single script as there isn't enough memory [even with Mono] and I need to modularize the code to make support possible.
Any thoughts would be appreciated.
