Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Grey Goo Fence and RezObject sleeping - Eh?

Burke Prefect
Cafe Owner, Superhero
Join date: 29 Oct 2004
Posts: 2,785
05-30-2006 10:17
Yay. You throttled RezObject. I commend that. it' rocks. I can live without firing 3000 bullets per minute.

But i'm noticing that when I rez a large object (ie, watermelon) from the gun the entire thing pauses, this is with seperate aiming, control scripts. (ie. the script that does the actual rez is seperate from the trigger) Well, rezzing that watermelon caused the entire gun to lock up, not just the firing script, but the entire turret prim. Repeated clicks during this sleep timeout seem to be queued, as the gun will then fire off even after the agent has released controls.

Also noticed, after mounting this turret script, and getting poeple on them (four seperate turrets), that when firing normal bullets, the craft itself seemed alot less responsive, is it sleeped the entire linked object now? Or am I just now noticing this?
_____________________
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
05-30-2006 13:14
Mmmm. Watermelon.

Let me ask Andrew about this--
_____________________
Andrew Linden
Linden staff
Join date: 18 Nov 2002
Posts: 692
05-30-2006 14:14
That does not sound like a problem with the 'grey goo fence' (ggf) which was deployed late in the 1.9 cycle. The ggf does not discriminate against the size of the rezzed object.

You are probably hitting the limit of the 'energy budget' of the script. The script 'energy' is a system we added to the script engine way back in the beginning, mostly to combat potential malicious script behavior. Some script actions cost 'energy' and are attenuated or fail if there isn't enough energy for the operation. The energy system is mostly undocumented and obfuscated, but you can find some information about it here at the badgeomery.com wiki.

Rezzing an object costs energy, and the cost is proportional to the rezzed object's mass * incoming velocity. The amount of energy a rezzer has on hand is proportional to its own mass, and it is replenished at some steady rate. One of the consequences of this system is that it is difficult or impossible for a small gun to shoot large fast bullets. If you want to rez large fast bullets you will need a large gun, and if you rez too many bullets too fast then your outgoing bullets may get slower if you start to run out of energy, and scripts on that object may cease to be scheduled.