Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

everybody talks about the lag, but nobody ever ...

Lotka Zagoskin
Registered User
Join date: 30 Sep 2006
Posts: 40
12-05-2006 20:23
so, the subject is lag. the street talk is scripts can contribute to lag. okay.

but, actually, does anyone have a procedure handy for measuring the marginal contribution of a particular script to sim lag quantitatively? does anyone have a way of measuring lag?

sure, lag depends upon the client, and their context. but, independent of that, oughtn't there be a way to quantify it? then, oughtn't there be a way to measure it?

assuming there's a way to measure it, and assuming linearity,it seems to be you could go to a sandbox, measure some kind of baseline lag, rez up 40 prims all containing the script-under-test, start them, measure the lag again, take a difference, and divide by 40.

how naive is that?
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
12-05-2006 20:33
You'd have to find someone who owns an Estate/island. There is an option to see how much of a hit a script puts on the server. As I don't have an island, I can't tell you exactly how it works, but I'm sure some people here know :)
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
12-05-2006 20:35
That assumes that you're the only one in the sandbox. That and there may be caching issues where the performance hit isn't linear..

I've wondered about stuff like this, too. Dunno if it can be done but I'd like to see some llGetXXXPerfUsage type calls so people can measure how much resources their scripts are eating.
Dimentox Travanti
DCS Coder
Join date: 10 Sep 2006
Posts: 228
12-05-2006 20:47
Ctrl shift 1
_____________________
LSL Scripting Database - http://lsl.dimentox.com
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
12-06-2006 07:26
If you don't have a friendly estate manager around... you can go find a void sim, make sure it's empty, and use the stats bar. Attach your object with scripts so they'll run (you can't rez in a void sim)

Note, this will NOT give you numbers for all your scripts. There's a minimum load you can detect this way (although you could multiply up, adding multiple versions to your attachments) but it does give you some measure.

There are also other issues.

A script set to listen to everyone on channel 0 in an otherwise empty sim where you're not talking to yourself will still have some load, but it will be considerably less than the load of the same script in the middle of some busy club. The Listen event will be constantly triggered and processing, hence the higher load.

So... you can get some ideas of what's going on, but it's not 100%
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-06-2006 08:41
Hopefully some day LL will see the value in adding llGetTopScripts(vector pos), parsed out to only return scripts on your land, even a little 512 lot!
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Lecina Enigma
Linux Client User-x86_64
Join date: 16 Nov 2005
Posts: 32
12-06-2006 23:59
Hmm isn't Top Scripts in the Estate Tools something like a process viewer in U*ix or Linux...i mean scripts are just running programs/threads..so why not add the CPU Time + usgae too to the Top Scripts ;).

Or even a Tool for all ppl (Simowners, Parcel Owners, etc) to show up how much the own scripts are eating up.

just my 2cents.
_____________________
Linux Testing System :

Ubuntu 8.04 x86_64, Core2Duo E6600 (2,4ghz), 4,0GB Ram, Nvidia Geforce, 8600GTS 256MB, 2x 250 Gig HDD, C-Media 8763
(Normally Soundblaster X-Fi, but since Creative isnt nice to Linux Costomers and is releasing crap drivers..i've switched to the C-Media 8736).
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
12-07-2006 00:13
I'd love to be able to select an object and get a breakdown of all its script timings via a debug option.
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
12-07-2006 00:20
From: Newgate Ludd
I'd love to be able to select an object and get a breakdown of all its script timings via a debug option.
Amen!
_____________________