Difference between revisions of "LlGetSimStats"

From Second Life Wiki
Jump to: navigation, search
m (added date of release)
m (<lsl> tag to <source>)
 
Line 12: Line 12:
 
|caveats
 
|caveats
 
|examples=
 
|examples=
<lsl>
+
<source lang="lsl2">
 
default
 
default
 
{
 
{
Line 25: Line 25:
 
     }
 
     }
 
}
 
}
</lsl>
+
</source>
 
|helpers
 
|helpers
 
|also_functions={{LSL DefineRow||[[llAbs]]|[[integer]] version of llFabs}}
 
|also_functions={{LSL DefineRow||[[llAbs]]|[[integer]] version of llFabs}}

Latest revision as of 02:52, 22 January 2015

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 );