This is a low land impact 'lag meter' that works off the 'sim script CPU time' each avatar uses up.
- That is a limited resource for each sim, and a value that can actually be accurately measured to show which avatars are actually impacting a sim.
Unlike number of scripts, complexity, or script memory allocation - script time shows the actual impact on a sim an avatar is having. Most meters measure things which are just a guess at lag, this is an actual real metric.
Monitor a region defined as either your parcel, all parcels you own in the sim, or the whole sim – and report back the top 8 laggiest avatars as defined in order of the ‘script time’ they are using.
Other values are also reported for curiosity purposes, but not for sorting or acting on as they are not reliable indicators of 'script or render lag impact'.
A config notecard with detailed explanations is inside the meter to adjust settings such as:
1. How often to scan
2. how much time to give someone to adjust their scripts
3. how much script lag is seen as laggy
4. what actions to take
5. what messages (if any) to send to the avatar or the local area
6. whether to scan the parcel or the region
7. Add avatars to a privilege list letting them go above the limits.
8. What chat channel to use to communicate between meters and a 'zapper' prim.
Setup:
1. Rez the Script Monitor where you want it displayed
2. Edit the Monitor, and edit the notecard insite - adjust settings as desired.
3. Rez the ScriptMonitorZapper anywhere on the parcel and deed it the land group. A copy of this is also found inside the monitor as a 'backup'. The zapper is ONLY needed if you plan to eject, teleport-home, or ban high script users. For silent and warning modes it it not used.
The Script Monitor's prim and config notecard are mod, the script is copy only. The ScriptMonitorZapper is fullperms.
Prim Version:
The back panel is a prim and not mesh - my mesh prim has one face. This prim lets me give all sides but the front a black color. Still 13 LI.
HUD Version:
This version can be worn as a HUD so you can see what's going on when you're out exploring SL. It won't normally be able to take actions. This version is somewhat experimental and may invite undesired drama if the 'silent' aspect... isn't...
ScriptMonitorBackPanelTexture:
I've included the texture used on the back panel in case you want to use something of your own for the back panel - like a picture frame. The back panel must be the root prim and have the script inside it. DO NOT mess with the order of the other prims links, or the display will get randomly jumbled. So mod only with copies.
Written about in detail here:
https://catnapkitty.wordpress.com/2017/12/21/almost-done-wip-script-lag-monitor/
For the technical explanation:
It is getting it’s values from llGetObjectDetails: http://wiki.secondlife.com/wiki/LlGetObjectDetails
Script Time: http://wiki.secondlife.com/wiki/OBJECT_SCRIPT_TIME
More on the Top Scripts page: http://wiki.secondlife.com/wiki/Viewerhelp:Top_Colliders_and_Top_Scripts
UPDATES:
1.1: The 'zapper' no longer looks for the name of the meter, but checks to be sure the action message is from the same group.
KNOWN ISSUE:
There is currently a known issue where the meter crashes if overloaded with too many avatars at once. I am attempting to discover exactly how busy of a region this requires, and create a fix for it. For the present it is only recommended for places with moderate activity, and not extremely busy or large clubs / events. I know if seems to crash after a while on a region that gets a few hundred different people daily, but not sure on details as yet.
- Order avatars by sim script CPU time
- Configure response - warn, eject, tp home, ban, silent
- Configure how much script time is seen as laggy
- Single texture for all text for faster loading