LlGetSimStats

From Second Life Wiki
Jump to: navigation, search

Summary

Function: float llGetSimStats( integer stat_type );

Returns a float that is the requested statistic.

• integer stat_type SIM_STAT_* flag
Name Possible Return Description
SIM_STAT_PCT_CHARS_STEPPED 0 [0.0, 100.0] The % of pathfinding characters updated each frame, averaged over the last minute. The value corresponds to the "Characters Updated" stat in the viewer's Statistics Bar.

Examples

default
{
    touch_start(integer num_detected)
    {
        float pct_chars_stepped = llGetSimStats(SIM_STAT_PCT_CHARS_STEPPED);
        llSay(0,
            "The percentage of pathfinding characters updated each frame was "
            + (string)pct_chars_stepped + "averaged over the last minute. The "
            + "value corresponds to the 'Characters Updated' stat in the "
            + "viewer's Statistics Bar. ");
    }
}

See Also

Functions

•  llAbs integer version of llFabs

Deep Notes

History

Date of Release 26/10/2012
Search JIRA for related Issues

Footnotes

  1. ^ The ranges in this article are written in Interval Notation.

Signature

function float llGetSimStats( integer stat_type );