• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-2746
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Scouse Linden
Reporter: Phantom Ninetails
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Mono Beta: Rezzing/derezzing causes much lag

Created: 04/Aug/08 04:21 PM   Updated: 28/Aug/08 02:32 PM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: 1.24 Server

Issue Links:
Relates
 

Linden Lab Issue ID: DEV-17796


 Description  « Hide
It seems that rezzing or derezzing a script in Mono causes an intense amount of lag.

I have a hud with many scripts in it compiled in mono. Wearing it or detaching it causes the sim to lag considerably for a short duration.
The hud has an interceptor script that lags the sim very intensely as the interceptors rez and derez.
Crossing into another mono region with this hud will take a long time and will cause considerable lag in both the source and destination regions.
A popgun with bullets compiled in mono will lag the sim while shooting.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Vektor Linden added a comment - 05/Aug/08 12:56 AM
I haven't yet had a chance to test this myself, but saw the TD drop while in the region as they tested it. I will look into this on Tuesday.

Moon Metty added a comment - 06/Aug/08 04:58 PM
Add this MONO-script to a box, name it "rezzed object":

default
{
on_rez(integer dummy)

{ llDie(); }

}

Make another box, add "rezzed object" and also add this script (MONO or LSL):

default
{
state_entry()

{ llSetTimerEvent(1); }

timer()

{ llRezObject("rezzed object", llGetPos() + <0, 0, 1>, ZERO_VECTOR, ZERO_ROTATION, 0); }

}

This will slow a 1.24.0.93754 sim down to a dilation of 0.83

Not always though, we're still searching.


Periapse Linden added a comment - 08/Aug/08 10:25 AM
A fix has been checked in, pushed to aditi, and confirmed.

Si Linden notes that the majority of Mono rezzes will happen slightly faster than LSL, however there is still considerable room for improvement. Babbage will look into this himself upon his return.

This issues is no longer a blocker, so resolving.


Moon Metty added a comment - 11/Aug/08 01:05 PM
We're very happy to have found a way to 100% cure an affected sim:

-Rez a box
-Add this MONO-script:

default
{
state_entry() {}
}

-Set the script to not running.

=======

Amazing, isn't it?
LSL scripts won't do the trick.


Scouse Linden added a comment - 11/Aug/08 01:15 PM
Please provide a description of what this is supposed to do.

Gellan Glenelg added a comment - 11/Aug/08 02:24 PM
To confirm Moon's observations:

Previously observed: Rezzing objects containing mono scripts can still cause a significant drop in time dilation.
(This can been seen in Sandbox Cordova MONO, on Aditi)

Also Observed: The presence of particular avatars seems to solve the time dilation issues.
After much experimenting / some luck, we have narrowed this down to:

If there is a NON-running, Mono script in the region (attached to an avatar, or in a rezzed object), the lag disappears.

I'm aware this sounds crazy, and can't explain why it works, but it is 100% reproducable.
Please join us in Sandbox Cordova MONO, on Aditi for a demo if you wish.


Vektor Linden added a comment - 11/Aug/08 09:43 PM
I have seen the subject of the preceding few comments in action.

While running our Mono-scripted-object rezzers, and lagging the region's time dilation, toggling off the script above (or any Mono compiled script), returns the region's time dilation to normal. I agree that this sounds odd, but I showed babbage this behavior firsthand. As long as one Mono compiled script in the region is set to 'not running', the region's time dilation seems to behave itself. Setting the script to running will dip the region's time dilation once again.


Phantom Ninetails added a comment - 21/Aug/08 04:55 PM
Past the second of the 3 stages of the rollout to the main grid and I hate to say this, but.. This doesn't seem to be fixed after all (It seemed fixed on the beta grid..). It doesn't always happen anymore, but occasionally it does, sometimes lagging the sim down into the low 60% range, on rez/derez of my mono-scripted interceptor shield.

I'm testing this in a live environment (Sandbox Cordova) with many other people in the region, but I do firmly believe it is my interceptors that caused the lag I observed.