Why your script causes lag, and how to stop it
When a region slows down, scripts are often the reason. Here's what makes a script heavy, how to spot one, and what to ask for so yours stay light.
Alexander Pixels
September 29, 2026 · 3 min read

Every region in Second Life runs on one server, shared by everything on it: avatars, physics, and every script in every object. Scripts get a slice of that server's time many times a second. When they want more than their slice, they all slow down together, and a region full of busy scripts starts to feel sticky.
Most scripts are tiny and cost almost nothing. A few habits make one expensive.
The usual causes
Listening to everyone, all the time. A script can listen on a chat channel for commands. Listening on the public channel with no filter means it wakes up for every line anyone nearby says. Plenty of builds do this for a command that's used once a day. Region owners hunting for lag find these first.
Menus that never stop listening. A pop-up menu works by listening for your answer. A well-made script stops listening when you answer, or after a minute if you walk away. A careless one keeps listening forever, and starts another listener every time someone touches it.
Checking too often. A timer that runs 10 times a second to see whether anything has changed, when once a second would do. A sensor sweeping a large area for avatars every half second. Each check is small, and thousands of them add up.
A script in every prim. A linked build with a script in each of its 50 prims runs 50 scripts. Most of the time, one script in the main prim can do all the work by changing the others.
Busy work for nothing. Changing floating text or colors many times a second, or two objects messaging each other in a constant loop. If nobody is watching, it's effort spent on nothing.
How to spot it
If you own or manage the region, the Top Scripts list in the estate tools shows which objects use the most script time. Sort by time and look at the top few. If a door or a decoration is near the top, something in it is working far harder than a door should.
If you don't manage the region, the owner can check for you. A note saying which object you suspect saves them a lot of looking.
What we do about it
Every script LSL Editor writes follows the same rules, whether or not you ask:
- Menus listen only to the person who opened them, on a private channel, and stop listening when they answer or after a timeout.
- Nothing listens on the public channel unless hearing public chat is the point of the object, and then it only listens for what it needs.
- Timers run no faster than the job needs.
- Changes to how an object looks happen in one go, not one setting at a time.
If you have an old script you think is causing lag, paste it into a new request and ask for a lighter version that does the same thing.
Quick checks for any script
- Does it listen on channel 0, and does it need to?
- Does a menu keep listening after you've closed it?
- Does anything run more than once a second?
- How many prims in the object have a script in them?
If an answer surprises you, that's the script to look at first.


