Skip to content
lsl.devlsl.devLSL Dev

Constants in the SimulatorStat enum.

All constant groups

At a glance, from the LSL definitions
// Otherinteger SIM_STAT_ACTIVE_SCRIPT_COUNT = 12;  // Returns the total number of active scripts in the region.integer SIM_STAT_AI_MS = 26;  // Returns the time spent on the AI step.integer SIM_STAT_CHILD_AGENT_COUNT = 11;  // Returns the number of child (neighboring) agents in the region.integer SIM_STAT_FRAME_MS = 3;  // Returns the total frame time.integer SIM_STAT_IMAGE_MS = 8;  // Returns the time spent in the 'image' segment of the simulation frame.integer SIM_STAT_IO_PUMP_MS = 24;  // Returns the pump IO time.integer SIM_STAT_NET_MS = 4;  // Returns the time spent in the 'network' segment of the simulation frame.integer SIM_STAT_OTHER_MS = 5;  // Returns the time spent in the main simulation 'other' segment of the frame, which encapsulates task, script, and miscellaneous updates.integer SIM_STAT_PCT_CHARS_STEPPED = 0;  // Returns the percentage of pathfinding characters updated (or skipped) each frame, averaged over the last minute.integer SIM_STAT_SLEEP_MS = 23;  // Returns the time spent sleeping.integer SIM_STAT_SPARE_MS = 22;  // Returns the spare time left after the frame.integer SIM_STAT_UNACKED_BYTES = 17;  // Returns the total number of unacknowledged bytes.// SIM_STAT_AGENT_*integer SIM_STAT_AGENT_COUNT = 10;  // Returns the total number of agents in the region.integer SIM_STAT_AGENT_MS = 7;  // Returns the time spent in the 'agent' segment of the simulation frame.integer SIM_STAT_AGENT_UPDATES = 2;  // Returns the number of agent updates per second.// SIM_STAT_ASSET_*integer SIM_STAT_ASSET_DOWNLOADS = 15;  // Returns the pending asset download count.integer SIM_STAT_ASSET_UPLOADS = 16;  // Returns the pending asset upload count.// SIM_STAT_PACKETS_*integer SIM_STAT_PACKETS_IN = 13;  // Returns the average number of incoming packets per second.integer SIM_STAT_PACKETS_OUT = 14;  // Returns the average number of outgoing packets per second.// SIM_STAT_PHYSICS_*integer SIM_STAT_PHYSICS_FPS = 1;  // Returns the physics simulation frames per second (FPS).integer SIM_STAT_PHYSICS_MS = 6;  // Returns the time spent in the 'physics' segment of the simulation frame.integer SIM_STAT_PHYSICS_OTHER_MS = 20;  // Returns the average update time for the physics 'other' segment.integer SIM_STAT_PHYSICS_SHAPE_MS = 19;  // Returns the average update time for the physics 'shape' segment.integer SIM_STAT_PHYSICS_STEP_MS = 18;  // Returns the average physics step time.// SIM_STAT_SCRIPT_*integer SIM_STAT_SCRIPT_EPS = 21;  // Returns the number of script events per second.integer SIM_STAT_SCRIPT_MS = 9;  // Returns the time spent in the 'script' segment of the simulation frame.integer SIM_STAT_SCRIPT_RUN_PCT = 25;  // Returns the percentage of scripts run during the frame.

Constants

ConstantTypeValueDescription
SIM_STAT_ACTIVE_SCRIPT_COUNTinteger12Returns the total number of active scripts in the region.
SIM_STAT_AGENT_COUNTinteger10Returns the total number of agents in the region.
SIM_STAT_AGENT_MSinteger7Returns the time spent in the 'agent' segment of the simulation frame.
SIM_STAT_AGENT_UPDATESinteger2Returns the number of agent updates per second.
SIM_STAT_AI_MSinteger26Returns the time spent on the AI step.
SIM_STAT_ASSET_DOWNLOADSinteger15Returns the pending asset download count.
SIM_STAT_ASSET_UPLOADSinteger16Returns the pending asset upload count.
SIM_STAT_CHILD_AGENT_COUNTinteger11Returns the number of child (neighboring) agents in the region.
SIM_STAT_FRAME_MSinteger3Returns the total frame time.
SIM_STAT_IMAGE_MSinteger8Returns the time spent in the 'image' segment of the simulation frame.
SIM_STAT_IO_PUMP_MSinteger24Returns the pump IO time.
SIM_STAT_NET_MSinteger4Returns the time spent in the 'network' segment of the simulation frame.
SIM_STAT_OTHER_MSinteger5Returns the time spent in the main simulation 'other' segment of the frame, which encapsulates task, script, and miscellaneous updates.
SIM_STAT_PACKETS_INinteger13Returns the average number of incoming packets per second.
SIM_STAT_PACKETS_OUTinteger14Returns the average number of outgoing packets per second.
SIM_STAT_PCT_CHARS_STEPPEDinteger0Returns the percentage of pathfinding characters updated (or skipped) each frame, averaged over the last minute. Corresponds to the 'Characters Updated' stat in the viewer's Statistics Bar.
SIM_STAT_PHYSICS_FPSinteger1Returns the physics simulation frames per second (FPS).
SIM_STAT_PHYSICS_MSinteger6Returns the time spent in the 'physics' segment of the simulation frame.
SIM_STAT_PHYSICS_OTHER_MSinteger20Returns the average update time for the physics 'other' segment.
SIM_STAT_PHYSICS_SHAPE_MSinteger19Returns the average update time for the physics 'shape' segment.
SIM_STAT_PHYSICS_STEP_MSinteger18Returns the average physics step time.
SIM_STAT_SCRIPT_EPSinteger21Returns the number of script events per second.
SIM_STAT_SCRIPT_MSinteger9Returns the time spent in the 'script' segment of the simulation frame.
SIM_STAT_SCRIPT_RUN_PCTinteger25Returns the percentage of scripts run during the frame.
SIM_STAT_SLEEP_MSinteger23Returns the time spent sleeping.
SIM_STAT_SPARE_MSinteger22Returns the spare time left after the frame.
SIM_STAT_UNACKED_BYTESinteger17Returns the total number of unacknowledged bytes.

Used by