Scripts in 100s of objects
|
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
|
11-13-2004 10:26
Sorry about all the questions, folks For management sake, I was tossing scripts in 100s of objects (for example, my skyscraper city is 8*8*2 prims = 128 prims, with potential for being a lot more) I do this because return is very awkward to use and I like to be able to delete my entire city to start again. Plus I can't execute return in the sandbox SIMs. However, I'm concerned that all those scripts are going to lag a sim even if they aren't doing anything .. What kind of impact on SIM lag do if I have, say, 1000 scripts, each about 6K in size .. but not doing anything (the listener has been removed once I decide it should be permanent).
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper " Changing Realities: User Creation, Communication, and Innovation in Digital Worlds : " User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
11-13-2004 10:40
If they arent doing anything, why not delete them? A script can delete itself using llRemoveInventory(llGetScriptName());
|
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
|
11-13-2004 10:42
If your scripts aren't doing any listens, and the objects don't have physics enabled, then your scripts shouldn't be impacting the sim in the least.
- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
|
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
|
11-13-2004 10:46
Ace, my concern is the memory they consume at about 6K each * 1000 that's about 6 meg of memory.
I'll try what eggy suggests .. that's a great idea. Just worried that the memory doesn't get reclaimed properly.
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper " Changing Realities: User Creation, Communication, and Innovation in Digital Worlds : " User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
|
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
|
11-13-2004 10:51
I have no idea how the LSL virtual machine is implemented, but I do know that the sims run on Linux servers. If your scripts aren't doing anything, I would imagine that the memory just gets paged out, and you needn't worry.
- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
|
Xylor Baysklef
Scripting Addict
Join date: 4 May 2003
Posts: 109
|
11-13-2004 16:23
Actually, many scripts (even if they don't do anything) do cause lag. It has to do with the scheduler used on the sims which polls each script in the sim to see if it needs to run anything. I've heard this is being looked at though, so it shouldn't stay a problem =).
For now though, I would recommend doing something like setting the PIN for each prim you use in your building(s), and using a virus-like script to spread out and 'infect' all your objects using that PIN when you want to delete everything.
Xylor
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
11-14-2004 13:40
I've had 1024 objects in a sim, each with 6 scripts in them in a sim at one time and once they all calm down and go idle, the sim fps goes right back to where it started before i rezzed them.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
11-14-2004 17:06
would changing the min event delay reduce the effects of having thousands of scripts all running at the same time? (if they are idle scripts)
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
|
11-15-2004 07:58
Andrew Linden has said that if a script actually isn't doining anything (for example, it has a state_entry() event, and nothing else, and that's run through), then it has no impact on the sim. But then, if it's not doing anything, why no delete it as Eggy suggests.
_____________________
Sarcasm meter: 0 |-----------------------*-| 10 Rating: Awww Jeeze!
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
11-15-2004 16:16
Have to have a script in the object even if it does nothing to hold the remoteaccessscriptpin
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
|
05-13-2005 08:32
From: Strife Onizuka Have to have a script in the object even if it does nothing to hold the remoteaccessscriptpin Heads up to anyone who finds this thread. This behavior appears to have changed. The PIN is now a property of the object according to the Wiki.
_____________________
Prim Composer for 3dsMax -- complete offline builder for prims and sculpties in 3ds Max http://liferain.com/downloads/primcomposer/
Hierarchical Prim Archive (HPA) -- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools. https://liferain.com/projects/hpa
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
05-13-2005 09:27
I found that having a bunch of scripts that do nothing but listen to link messages doesn't seem to lag the sim. The pile of scripts doesn't show up in the "Active scripts" statistic at all, so I would assume that means the scripts aren't having an effect on the sim until they get a link message.
|
Cocoa Bean
The Mad Hatter of SL
Join date: 7 May 2005
Posts: 12
|
Effects
05-14-2005 05:31
Does it really effect us that much?
|