llGetRegionFPS
function
Function syntax
float llGetRegionFPS();- Returns
float- Energy
- 10
Returns a float representing the average region simulator frames per second (FPS).
Returns a float that is the mean region frames per second.
float result = llGetRegionFPS();Caveats
Section titled “Caveats”- Region FPS is currently capped at 45.0 frames per second, so this function never returns greater than 45.0
Examples
Section titled “Examples”Example 1
21 collapsed lines
// The beginnings of a region-info script.string region;string sim;
default{ state_entry() { llSetTimerEvent(1.0); }
timer() { string here = llGetRegionName(); if(region != here) { sim = llGetSimulatorHostname(); region = here; } llSetText( " REGION NAME : " + region + "\n SIM HOSTNAME : " + sim + "\nTIME DIALATION : " + (string)llGetRegionTimeDilation() + "\n REGION FPS : " + (string)llGetRegionFPS(), <0,1,0>, 1.0); }}See also
Section titled “See also”Functions
Section titled “Functions”llGetSimulatorHostname— Gets the hostname of the serverllGetRegionTimeDilation— Gets the region time dilation
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.