Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

It the excesive scripts thats causing problems

Leon Drinkwater
Registered User
Join date: 29 Jun 2006
Posts: 4
08-14-2006 14:16
Ive ben going crazy trying to figure out what the cause of the lag the last 2 weeks is. but last sunday and today i may have found it, last sunday flew around all day and didn't have any problems unles i crosed a sim border that was also a no entry area. The first place i went was a wedding and i thought that weapons were inapreate so i took off my Samari Island stuff (several hundred scrips), today the lag was back so i expermented. I found that when i fly over a sim boundry and the active scripts excede 3500 i alwas ruberband, and bizarely it cause the time dilation to fall 4 to 20 for a few seconds (thank you for the thread on time dilation). For some reason 3500 seems to be the cutof below that things are fine above that everything goes crazy.

PS im new to internet chat. Hoe do you add a sig line. :o
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
08-14-2006 19:03
From: Leon Drinkwater
Ive ben going crazy trying to figure out what the cause of the lag the last 2 weeks is. but last sunday and today i may have found it, last sunday flew around all day and didn't have any problems unles i crosed a sim border that was also a no entry area. The first place i went was a wedding and i thought that weapons were inapreate so i took off my Samari Island stuff (several hundred scrips), today the lag was back so i expermented. I found that when i fly over a sim boundry and the active scripts excede 3500 i alwas ruberband, and bizarely it cause the time dilation to fall 4 to 20 for a few seconds (thank you for the thread on time dilation). For some reason 3500 seems to be the cutof below that things are fine above that everything goes crazy.

PS im new to internet chat. Hoe do you add a sig line. :o

Click the "User CP" button up near the top right. "CP" means control panel. That will let you make a signature, put a forum avatar up, and other neat stuff.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Archanox Underthorn
Registered User
Join date: 20 May 2003
Posts: 168
08-14-2006 20:39
It's a combination of image loading and scripts really, when someone zones into a sim the image server time spikes big time, if theres low script load in the sim then theres more room for a big spike without crippling the sim. A better measure of the threshold would be the script server time (ctrl+shift+1, under advanced/time) as this measures accurately how much lag all of the scripts are causing. Admittedly our swords have a lot of scripts (most of mine run about ~70 i think), though most are seldom actively doing work.

I'm not sure exactly when this started happening, but I know it wasnt always the case. I've seen image time spikes in the hundreds and beyond though, where even if there wasnt a single script in the zone the sim would have still been crippled, so I'm not sure what the deal with that is. "Feature" added in a patch a while ago I guess.
_____________________
Archatek

Home to some of the highest quality katanas and other blades available in SL. Co-creator of the Samurai Island Combat System, one of the best melee combat systems available, come check it out!

___________________
Jon Rolland
Registered User
Join date: 3 Oct 2005
Posts: 705
08-14-2006 20:47
From: Archanox Underthorn
Admittedly our swords have a lot of scripts (most of mine run about ~70 i think), though most are seldom actively doing work.


ANY script with the running checkbox check is actively doing something every frame. Even...

default{state_entry{}}
Archanox Underthorn
Registered User
Join date: 20 May 2003
Posts: 168
08-14-2006 21:12
Oh well yeah I know that, but saying 3500 as a threshold is fairly vague as there could be 100 scripts in one sim creating more lag than thousands in another sim.
_____________________
Archatek

Home to some of the highest quality katanas and other blades available in SL. Co-creator of the Samurai Island Combat System, one of the best melee combat systems available, come check it out!

___________________
Jon Rolland
Registered User
Join date: 3 Oct 2005
Posts: 705
08-14-2006 21:38
From: Archanox Underthorn
Oh well yeah I know that, but saying 3500 as a threshold is fairly vague as there could be 100 scripts in one sim creating more lag than thousands in another sim.


Actually it might not be so vague. The SL engine is good at reducing the time slice it gives each script. 3500 might be about the threshhold where each script getting the smallest timeslice possible doesn't reduce script time enough to handle a spike from teleport. And it's pretty close to the 3k that LL devs report as the max number of scripts a sim "should" have.
Leon Drinkwater
Registered User
Join date: 29 Jun 2006
Posts: 4
more info
08-15-2006 02:27
Ive done some more testing by taking stuf off and putting it back on and noting the numbers the sword uses 79 scripts but the sheath a wopping 153 the other two peices contrib a mere 9 each my AO by comparson uses 16. And ive sometimes had problems crosing with les than 3500 scripts.

i don't have any clue how effecent these scripts are because their no mod. I supect many scripts are put together with litle or no thought for effecency. I have a fireplace i got from YanNi's that has not one but 2 candle scripts with open listeners on voice chanel i had linked it to my cabin and when i said blow to see what woud happen, my whole house disapered. Thats very poor scripting! :)