* Implement llGetRegionFPS()
* Thanks idb
This commit is contained in:
Justin Clarke Casey
2008-10-16 13:17:31 +00:00
parent 68d85497ad
commit 6789234335
3 changed files with 24 additions and 2 deletions

View File

@@ -4842,11 +4842,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return (double)World.TimeDilation;
}
/// <summary>
/// Returns the value reported in the client Statistics window
/// </summary>
public LSL_Float llGetRegionFPS()
{
m_host.AddScriptLPS(1);
//TODO: return actual FPS
return 10.0f;
return World.SimulatorFPS;
}
/* particle system rules should be coming into this routine as doubles, that is