Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Lag question

Foo Spark
alias Bathsheba Dorn
Join date: 8 Nov 2006
Posts: 110
12-02-2006 22:54
Does a script whose events aren't being triggered cause server lag?

E.g. if the only event handler is touch(), and nobody's touching the object, is the script using any resources?
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
12-02-2006 23:06
From: Foo Spark
Does a script whose events aren't being triggered cause server lag?

E.g. if the only event handler is touch(), and nobody's touching the object, is the script using any resources?
It turns out that any script at all uses some resources. Even scripts with just a state_entry() event.

A script waiting on a touch uses very little, compared to one with an off-zero listen which in turn beats a listen on chanel zero.
_____________________