Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGetAgentSize Performance Question

Perry Windlow
Registered User
Join date: 7 Oct 2008
Posts: 17
11-13-2008 12:26
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.
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
11-13-2008 17:16
5 Sensors- eek!

Please use llGetAgentSize - there's no reason at all to think it's a performance issue - it's just an "object" lookup against a key right? -- so very likely it's extremely light but I never formally tested it for perf ;)

/esc
_____________________
http://slurl.com/secondlife/Together
Perry Windlow
Registered User
Join date: 7 Oct 2008
Posts: 17
11-13-2008 18:15
I wasn't planning on using lots of sensors.

I was wondering about the llgetagentsize