OsGetRegionStats

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Added Example Script and Related Info)
 
(Added LSL Script from Godfrey)
Line 1: Line 1:
Code provided by Implementor:  Godfrey and Implemented in Git Hash 9d05962029fe864408d287d5fa7ef81f312e098a, - Rev 11601
+
Code provided by Implementor:  Godfrey and Implemented in Git Hash 9d05962029fe864408d287d5fa7ef81f312e098a, - Rev 11601  
  
<source lang="">default
+
<source lang="ini">default
 
{
 
{
 
  state_entry()
 
  state_entry()

Revision as of 00:22, 27 November 2009

Code provided by Implementor:  Godfrey and Implemented in Git Hash 9d05962029fe864408d287d5fa7ef81f312e098a, - Rev 11601

default
{
 state_entry()
 {
 llSetTimerEvent( 5.0 );
 }
 
 timer()
 {
 list Stats = osGetRegionStats();
 string s = "Sim FPS: " + (string) llList2Float( Stats, STATS_SIM_FPS ) + "\n";
 s += "Physics FPS: " + (string) llList2Float( Stats, STATS_PHYSICS_FPS ) + "\n";
 s += "Time Dilation: " + (string) llList2Float( Stats, STATS_TIME_DILATION ) + "\n";
 s += "Root Agents: " + (string) llList2Integer( Stats, STATS_ROOT_AGENTS ) + "\n";
 s += "Child Agents: " + (string) llList2Integer( Stats, STATS_CHILD_AGENTS ) + "\n";
 s += "Total Prims: " + (string) llList2Integer( Stats, STATS_TOTAL_PRIMS ) + "\n";
 s += "Active Scripts: " + (string) llList2Integer( Stats, STATS_ACTIVE_SCRIPTS ) + "\n";
 s += "Script LPS: " + (string) llList2Float( Stats, STATS_SCRIPT_LPS );
 llSetText( s, <0.0,1.0,0.0>, 1.0 );
 }
}
Personal tools
General
About This Wiki