Reply
Recognized Resident
helsen
Posts: 1
0 Kudos

best way to monitor sensor-script lag?

I recently put 16 sensors carpets (size 50m x 50m) with the function of record who entered the site and are working perfectly.

My question is:

what is the best way to monitor whether these sensors are causing slowness in my region?

 

Thanks

Member
Miranda Umino
Posts: 224
0 Kudos

Re: best way to monitor sensor-script lag?

[ Edited ]

Reply to helsen - view message

nowadays , nobody scripts a sim-monitor with sensors to record who enters and who leaves

Either  we use a phantom invisible mega prim at the size of your parcel  with a collision_start and collision_end event ( if there are no rez and no object entry in the parcel)  , either we use the function llGetAgentList inside a timer

You may call too llGetRegionAgentCount to detect some changes in the sim and reduce the number of calls to llGetAgentList.

And don t call some functions if you may  call them later once time  when you generate the report .

For instance , if you want the names of the people , don t call some function to collect the names and don t store the names in your script : but wait the end of day and use later  llRequestUsername with your stored keys

Member
Ela Talaj
Posts: 807
0 Kudos

Re: best way to monitor sensor-script lag?

Reply to Miranda Umino - view message

I somewhat doubt that periodicly converting keys to names via llRequestUsername() is more efficient than immediately acquiring a name via llKey2Name(). The latter method doesn't use any resources to speak of while the former returns the result via dataserver. Besides, storing names takes less memory than storing keys as most names are shorter than 36 bytes so more could be stored.

Elegant Solutions by The Gold Club
Innula Zenovka
Posts: 6,603
Registered: ‎06-02-2009
0 Kudos

Re: best way to monitor sensor-script lag?

[ Edited ]

Reply to Ela Talaj - view message

While I agree about grabbing the names right away, why llKey2Name rather than llGetUsername?  

Member
Ela Talaj
Posts: 807
0 Kudos

Re: best way to monitor sensor-script lag?

Reply to Innula Zenovka - view message

Hmm... I dunno... guess just a matter of preference.  I would suspect llGetUsername() is a wrapper for llKey2Name() anyways because that's how I would've implemented it with llKey2Name() already existing but who can read minds of LL programmers... :smileyhappy:

Elegant Solutions by The Gold Club