|
Wildthrust Mathilde
Registered User
Join date: 22 Nov 2006
Posts: 49
|
09-25-2007 11:27
Ive read the article on the lslwiki about how to trim up scripts so they run in such ways as to minimize the lag they may cause. But I was wondering which approach to controlling a non-linked set of prims would cause the least lag.
1. Each prim have a listener on distant channel (like 30,000,000) and the avatar use a shout of the command on that channel.
2. Same thing, but have a prim that does the shout on a negative channel
3. Have a prim that stores all the UUIDs of each prim and sends a script to them that turns on or off the script currently in the remote prim
4. One of the above methods along with dedicated additional script with a timer-repeat that checks the sim's time dilation and turns the prim's main script on and off.
And as a follow up, what value of time dilation indicates probable lag, and thus a good time to throttle back on running scripts?
Thanks
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
09-25-2007 23:17
depnds on a lot of factors... if one object can/will rez all the others, are the objects close together within a sim, do they cross sim borders...
sample senario. they are all rezzed seperate, automatically restart/add, within the same sim, but not close.
llRegionSay on a negative empty channel... is the simplest solution
why neg channels? because avatars can't talk on them(unaided), so they aren't being used as frequently, and thus also less likely to be interfered with
other options could range from getting uuid from the on rez event, email, remoteLoadScriptPin etc, sensors, transmitting info via object descriptions....there's a lot all depending on details of use and how secure it needs to be
|
|
Wildthrust Mathilde
Registered User
Join date: 22 Nov 2006
Posts: 49
|
09-26-2007 07:53
Basically what I am doing is creating a floating castle. Most of the prim building is done, save the walls on the second and third floors, and the cave/dungeon/maze system.
Scripted items will include: Blue Fog Generators around the outer wall and court yard Lights to create varying flog lighting Ferries thats float around the court yard with tingling sounds Falling leaves Environmental Sounds Doors Wall and Floor Torches Giant Telescope (Can adjust apogee and perigee sitting on it )
I want to make it as low-lag as possible, and be able to adjust (like shutting off particle effects/lights) based on load levels in the sim. Or manualy.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
09-26-2007 18:27
so you want a single centralized time dilation checker, and a single "manual" off/on switch
a standby state (or even separate script ) in each that either listens or detects the state of another prim
you could have a check in script/object, that has a single listen, on start up each of your other scripts uses llRegionSay on the specified channel, to say it's name and priority (how bad you want to keep it running) then use something like remoteloadScriptPin, to control them after check in... the master only needs hear the check in, and can be scripted to loop through the list closing least used items first, or manually with a dialog/chatted command
btw, good on you for taking optimization to such "heights" (pun intended)
|
|
Wildthrust Mathilde
Registered User
Join date: 22 Nov 2006
Posts: 49
|
09-27-2007 11:08
Hehehe, tnks. I knew with all the stuff I wanted to do, that it was going to be a major lag generator so I want to minimize it as much as possible. This is actualy just a formyself project. IOW I want to learn new things, so I set a goal of what I want, then its easier for me to learn what I need to. When im done I will probably strip out the systems and sell them, but would prob be pretty difficult to find someone interested in buying a 60x60x120m castle. Luckily my friend owns his own sim and lets me do major builds on it. But most of my building projects before the castle have been like my line of wild west buildings im working on. But a big project like this lets me find what I need to use and know out of nessesity, and can then turn around and use on my real products.
Any idea on what would be a good threshold point for Time Dialation to start going into conservative mode?
Thanks
|