From 67892343350a8af916ec4c16d341ad843550d54e Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 16 Oct 2008 13:17:31 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=2405 * Implement llGetRegionFPS() * Thanks idb --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 7d3badb..9df318c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -4842,11 +4842,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return (double)World.TimeDilation; } + /// + /// Returns the value reported in the client Statistics window + /// 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 -- cgit v1.1