diff options
author | Justin Clark-Casey (justincc) | 2011-10-11 22:17:05 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-10-11 22:17:05 +0100 |
commit | fe3594c5ea4fe36f862375f76d088f64d2dfb269 (patch) | |
tree | aeb7371c1a9778a919226978440f284024c91f55 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | meaningless change to goose panda (diff) | |
download | opensim-SC_OLD-fe3594c5ea4fe36f862375f76d088f64d2dfb269.zip opensim-SC_OLD-fe3594c5ea4fe36f862375f76d088f64d2dfb269.tar.gz opensim-SC_OLD-fe3594c5ea4fe36f862375f76d088f64d2dfb269.tar.bz2 opensim-SC_OLD-fe3594c5ea4fe36f862375f76d088f64d2dfb269.tar.xz |
Start recording object updates per second statistic (analogue of agent updates per secod) and expose via monitoring module as ObjectUpdatePerSecondMonitor
A useful diagnostic to find out how object updates are burdening a scene
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 6fa82b8..4abece1 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3018,6 +3018,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3018 | //isattachment = ParentGroup.RootPart.IsAttachment; | 3018 | //isattachment = ParentGroup.RootPart.IsAttachment; |
3019 | 3019 | ||
3020 | remoteClient.SendPrimUpdate(this, PrimUpdateFlags.FullUpdate); | 3020 | remoteClient.SendPrimUpdate(this, PrimUpdateFlags.FullUpdate); |
3021 | ParentGroup.Scene.StatsReporter.AddObjectUpdates(1); | ||
3021 | } | 3022 | } |
3022 | 3023 | ||
3023 | /// <summary> | 3024 | /// <summary> |
@@ -4792,7 +4793,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
4792 | 4793 | ||
4793 | // Causes this thread to dig into the Client Thread Data. | 4794 | // Causes this thread to dig into the Client Thread Data. |
4794 | // Remember your locking here! | 4795 | // Remember your locking here! |
4795 | remoteClient.SendPrimUpdate(this, PrimUpdateFlags.Position | PrimUpdateFlags.Rotation | PrimUpdateFlags.Velocity | PrimUpdateFlags.Acceleration | PrimUpdateFlags.AngularVelocity); | 4796 | remoteClient.SendPrimUpdate( |
4797 | this, | ||
4798 | PrimUpdateFlags.Position | PrimUpdateFlags.Rotation | PrimUpdateFlags.Velocity | ||
4799 | | PrimUpdateFlags.Acceleration | PrimUpdateFlags.AngularVelocity); | ||
4800 | |||
4801 | ParentGroup.Scene.StatsReporter.AddObjectUpdates(1); | ||
4796 | } | 4802 | } |
4797 | 4803 | ||
4798 | public void AddScriptLPS(int count) | 4804 | public void AddScriptLPS(int count) |