aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-07-29 03:26:14 +0100
committerJustin Clark-Casey (justincc)2014-07-29 03:26:14 +0100
commit5cd21516a407fcb20c257307e0332824cdf58382 (patch)
treeed7aa1898600c4cca4669a61cabc42410d03b816
parentMake it possible to change avatar position update, rotation and velocity tole... (diff)
downloadopensim-SC_OLD-5cd21516a407fcb20c257307e0332824cdf58382.zip
opensim-SC_OLD-5cd21516a407fcb20c257307e0332824cdf58382.tar.gz
opensim-SC_OLD-5cd21516a407fcb20c257307e0332824cdf58382.tar.bz2
opensim-SC_OLD-5cd21516a407fcb20c257307e0332824cdf58382.tar.xz
Add "debug scene set appear-refresh true|false" to control whether periodic appearance refresh is active.
Corresponds to ResendAppearnceUpdates setting in [Appearance] in OpenSim.ini This was originally implemented to alleviate cloud appearance problems but could be too expensive with large numbers of avatars.
-rw-r--r--OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
index 90f8cb4..e49c95c 100644
--- a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
+++ b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
@@ -95,6 +95,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
95 "List current scene options.", 95 "List current scene options.",
96 "active - if false then main scene update and maintenance loops are suspended.\n" 96 "active - if false then main scene update and maintenance loops are suspended.\n"
97 + "animations - if true then extra animations debug information is logged.\n" 97 + "animations - if true then extra animations debug information is logged.\n"
98 + "appear-refresh - if true then appearance is resent to other avatars every 60 seconds.\n"
98 + "child-repri - how far an avatar must move in meters before we update the position of its child agents in neighbouring regions.\n" 99 + "child-repri - how far an avatar must move in meters before we update the position of its child agents in neighbouring regions.\n"
99 + "client-pos-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" 100 + "client-pos-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
100 + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" 101 + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
@@ -113,6 +114,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
113 "Turn on scene debugging options.", 114 "Turn on scene debugging options.",
114 "active - if false then main scene update and maintenance loops are suspended.\n" 115 "active - if false then main scene update and maintenance loops are suspended.\n"
115 + "animations - if true then extra animations debug information is logged.\n" 116 + "animations - if true then extra animations debug information is logged.\n"
117 + "appear-refresh - if true then appearance is resent to other avatars every 60 seconds.\n"
116 + "child-repri - how far an avatar must move in meters before we update the position of its child agents in neighbouring regions.\n" 118 + "child-repri - how far an avatar must move in meters before we update the position of its child agents in neighbouring regions.\n"
117 + "client-pos-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" 119 + "client-pos-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
118 + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n" 120 + "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
@@ -146,6 +148,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
146 ConsoleDisplayList cdl = new ConsoleDisplayList(); 148 ConsoleDisplayList cdl = new ConsoleDisplayList();
147 cdl.AddRow("active", m_scene.Active); 149 cdl.AddRow("active", m_scene.Active);
148 cdl.AddRow("animations", m_scene.DebugAnimations); 150 cdl.AddRow("animations", m_scene.DebugAnimations);
151 cdl.AddRow("appear-refresh", m_scene.SendPeriodicAppearanceUpdates);
149 cdl.AddRow("child-repri", m_scene.ChildReprioritizationDistance); 152 cdl.AddRow("child-repri", m_scene.ChildReprioritizationDistance);
150 cdl.AddRow("client-pos-upd", m_scene.ClientPositionUpdateTolerance); 153 cdl.AddRow("client-pos-upd", m_scene.ClientPositionUpdateTolerance);
151 cdl.AddRow("client-rot-upd", m_scene.ClientRotationUpdateTolerance); 154 cdl.AddRow("client-rot-upd", m_scene.ClientRotationUpdateTolerance);
@@ -197,6 +200,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
197 m_scene.DebugAnimations = active; 200 m_scene.DebugAnimations = active;
198 } 201 }
199 202
203 if (options.ContainsKey("appear-refresh"))
204 {
205 bool newValue;
206
207 // FIXME: This can only come from the console at the moment but might not always be true.
208 if (ConsoleUtil.TryParseConsoleBool(MainConsole.Instance, options["appear-refresh"], out newValue))
209 m_scene.SendPeriodicAppearanceUpdates = newValue;
210 }
211
200 if (options.ContainsKey("child-repri")) 212 if (options.ContainsKey("child-repri"))
201 { 213 {
202 double newValue; 214 double newValue;