mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
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
This commit is contained in:
@@ -5925,7 +5925,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
public LSL_Float llGetRegionFPS()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
return World.SimulatorFPS;
|
||||
return World.StatsReporter.getLastReportedSimFPS();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2462,7 +2462,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
CheckThreatLevel(ThreatLevel.Moderate, "osGetRegionStats");
|
||||
m_host.AddScriptLPS(1);
|
||||
LSL_List ret = new LSL_List();
|
||||
float[] stats = World.SimulatorStats;
|
||||
float[] stats = World.StatsReporter.getLastReportedSimStats();
|
||||
|
||||
for (int i = 0; i < 21; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user