diff options
author | Teravus Ovares | 2008-05-25 20:50:45 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-25 20:50:45 +0000 |
commit | c20f7d6171a9df151c3ccde063336338da9ae322 (patch) | |
tree | a6093b52da4093e3b692771a421ce4a55052d24b /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |
parent | Thank you very much, Melanie for a patch that: (diff) | |
download | opensim-SC_OLD-c20f7d6171a9df151c3ccde063336338da9ae322.zip opensim-SC_OLD-c20f7d6171a9df151c3ccde063336338da9ae322.tar.gz opensim-SC_OLD-c20f7d6171a9df151c3ccde063336338da9ae322.tar.bz2 opensim-SC_OLD-c20f7d6171a9df151c3ccde063336338da9ae322.tar.xz |
* A hacky Top Scripts display. It isn't accurate as far as ms accounting, however you can use it to help find out what scripts are causing your simulator to cry.
* Access it from the Estate tools/Debug tab.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 25b3d16..cd4be99 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -90,6 +90,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
90 | /// since the group's last persistent backup | 90 | /// since the group's last persistent backup |
91 | /// </summary> | 91 | /// </summary> |
92 | public bool HasGroupChanged = false; | 92 | public bool HasGroupChanged = false; |
93 | public float scriptScore = 0f; | ||
93 | 94 | ||
94 | 95 | ||
95 | 96 | ||
@@ -959,6 +960,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
959 | 960 | ||
960 | public void AddScriptLPS(int count) | 961 | public void AddScriptLPS(int count) |
961 | { | 962 | { |
963 | if (scriptScore + count >= float.MaxValue - count) | ||
964 | scriptScore = 0; | ||
965 | |||
966 | scriptScore += (float)count; | ||
962 | InnerScene d = m_scene.m_innerScene; | 967 | InnerScene d = m_scene.m_innerScene; |
963 | d.AddToScriptLPS(count); | 968 | d.AddToScriptLPS(count); |
964 | } | 969 | } |