From 21351bec7c9a672b48ac349af6d765989b8667d9 Mon Sep 17 00:00:00 2001 From: Northspring Date: Sun, 4 May 2014 17:52:48 +0200 Subject: [PATCH] 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 --- .../fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt b/indra/newview/fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt index 53182170b9..1e9dd2ab84 100644 --- a/indra/newview/fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt +++ b/indra/newview/fs_resources/EBEDD1D2-A320-43f5-88CF-DD47BBCA5DFB.lsltxt @@ -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;