diff options
author | Justin Clark-Casey (justincc) | 2011-10-10 21:54:08 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-10-10 21:54:08 +0100 |
commit | 2b290793ab7153c956db5637dd27dfbbd0a1cf98 (patch) | |
tree | fb92997c17552fa1f78c83c6d7f133c2b852085f /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | remove unused LastAssetID from DynamicTextureUpdaer (diff) | |
download | opensim-SC_OLD-2b290793ab7153c956db5637dd27dfbbd0a1cf98.zip opensim-SC_OLD-2b290793ab7153c956db5637dd27dfbbd0a1cf98.tar.gz opensim-SC_OLD-2b290793ab7153c956db5637dd27dfbbd0a1cf98.tar.bz2 opensim-SC_OLD-2b290793ab7153c956db5637dd27dfbbd0a1cf98.tar.xz |
refactor: have lsl and ossl interrogate scene.StatsReporter directly rather than going through scene
I know this goes against the law of demeter but I don't think it's that useful here and I'd rather get rid of nasty little wrapper methods
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 42e09fc..eabdce1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5925,7 +5925,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5925 | public LSL_Float llGetRegionFPS() | 5925 | public LSL_Float llGetRegionFPS() |
5926 | { | 5926 | { |
5927 | m_host.AddScriptLPS(1); | 5927 | m_host.AddScriptLPS(1); |
5928 | return World.SimulatorFPS; | 5928 | return World.StatsReporter.getLastReportedSimFPS(); |
5929 | } | 5929 | } |
5930 | 5930 | ||
5931 | 5931 | ||