Skip to content
lsl.devlsl.devLSL Dev

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.

How to use
float result = llGetRegionFPS();
  • Region FPS is currently capped at 45.0 frames per second, so this function never returns greater than 45.0
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);
}
}
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.

From the Second Life Wiki

Community documentation adapted from LlGetRegionFPS, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.