SimulatorStat
Constants in the SimulatorStat enum.
// 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
| Constant | Type | Value | Description |
|---|---|---|---|
SIM_STAT_ACTIVE_SCRIPT_COUNT | integer | 12 | Returns the total number of active scripts in the region. |
SIM_STAT_AGENT_COUNT | integer | 10 | Returns the total number of agents in the region. |
SIM_STAT_AGENT_MS | integer | 7 | Returns the time spent in the 'agent' segment of the simulation frame. |
SIM_STAT_AGENT_UPDATES | integer | 2 | Returns the number of agent updates per second. |
SIM_STAT_AI_MS | integer | 26 | Returns the time spent on the AI step. |
SIM_STAT_ASSET_DOWNLOADS | integer | 15 | Returns the pending asset download count. |
SIM_STAT_ASSET_UPLOADS | integer | 16 | Returns the pending asset upload count. |
SIM_STAT_CHILD_AGENT_COUNT | integer | 11 | Returns the number of child (neighboring) agents in the region. |
SIM_STAT_FRAME_MS | integer | 3 | Returns the total frame time. |
SIM_STAT_IMAGE_MS | integer | 8 | Returns the time spent in the 'image' segment of the simulation frame. |
SIM_STAT_IO_PUMP_MS | integer | 24 | Returns the pump IO time. |
SIM_STAT_NET_MS | integer | 4 | Returns the time spent in the 'network' segment of the simulation frame. |
SIM_STAT_OTHER_MS | integer | 5 | Returns the time spent in the main simulation 'other' segment of the frame, which encapsulates task, script, and miscellaneous updates. |
SIM_STAT_PACKETS_IN | integer | 13 | Returns the average number of incoming packets per second. |
SIM_STAT_PACKETS_OUT | integer | 14 | Returns the average number of outgoing packets per second. |
SIM_STAT_PCT_CHARS_STEPPED | integer | 0 | Returns 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_FPS | integer | 1 | Returns the physics simulation frames per second (FPS). |
SIM_STAT_PHYSICS_MS | integer | 6 | Returns the time spent in the 'physics' segment of the simulation frame. |
SIM_STAT_PHYSICS_OTHER_MS | integer | 20 | Returns the average update time for the physics 'other' segment. |
SIM_STAT_PHYSICS_SHAPE_MS | integer | 19 | Returns the average update time for the physics 'shape' segment. |
SIM_STAT_PHYSICS_STEP_MS | integer | 18 | Returns the average physics step time. |
SIM_STAT_SCRIPT_EPS | integer | 21 | Returns the number of script events per second. |
SIM_STAT_SCRIPT_MS | integer | 9 | Returns the time spent in the 'script' segment of the simulation frame. |
SIM_STAT_SCRIPT_RUN_PCT | integer | 25 | Returns the percentage of scripts run during the frame. |
SIM_STAT_SLEEP_MS | integer | 23 | Returns the time spent sleeping. |
SIM_STAT_SPARE_MS | integer | 22 | Returns the spare time left after the frame. |
SIM_STAT_UNACKED_BYTES | integer | 17 | Returns the total number of unacknowledged bytes. |
Used by
llGetSimStatsfunctionReturns a float containing the value of the requested region statistic specified by stat_type.