Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Resource use - timer event vs. listen

Leyah Renegade
Live Musician
Join date: 2 Nov 2006
Posts: 125
09-09-2007 08:47
I'm doing a build where there will be a lot of objects on the parcel that behave differently during the sim day vs. night. I originally scripted each of the objects to have its own timer event that checks the sun direction, but I'm assuming that if there are say 20 objects that do this it will cause a lot of lag.

I am thinking that I could just script *one* object to be the "master" timer and when the sun changes from day to night and vice versa, it could send a chat command and the other objects could simply be listening for those commands, rather than each having its own timer. I assume that a listen event is less of a resource hog than a timer. Is this assumption correct?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-09-2007 09:30
Use a "tight" listen on a negative channel, listening for the "transmitter" prims key and or name.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum