Minor LSL Bridge speed-up: Replace llSetPrimitiveParams() with llSetLinkPrimitiveParamsFast() in on_rez() event to avoid 200 milliseconds unnecessary sleeping in script
"For almost all situations we recommend you use llSetLinkPrimitiveParamsFast" - http://wiki.secondlife.com/wiki/LlSetPrimitiveParams#Summary
parent
9066357849
commit
21351bec7c
|
|
@ -711,7 +711,7 @@ default
|
|||
on_rez(integer i)
|
||||
{
|
||||
// We don't want to be rezzed without being attached. Insure we don't create litter.
|
||||
llSetPrimitiveParams([PRIM_TEMP_ON_REZ, TRUE]);
|
||||
llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_TEMP_ON_REZ, TRUE]);
|
||||
// Force Movelock variable to false here and allow attach() to decide via initBridge(), if we're on Firestorm and login relock can be turned off if needed.
|
||||
// on_rez() will be triggered prior to attach() when attaching from inventory or during login, but not prior to state_entry().
|
||||
useMoveLock = FALSE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue