diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | 10 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 34 |
2 files changed, 23 insertions, 21 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index 9553f5b..4abac43 100644 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | |||
@@ -528,7 +528,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
528 | WearableCacheItem[] wearableCache = sp.Appearance.WearableCacheItems; | 528 | WearableCacheItem[] wearableCache = sp.Appearance.WearableCacheItems; |
529 | 529 | ||
530 | // big debug | 530 | // big debug |
531 | m_log.DebugFormat("[AVFACTORY]: ValidateBakedTextureCache start for {0} {1}", sp.Name, sp.UUID); | 531 | //m_log.DebugFormat("[AVFACTORY]: ValidateBakedTextureCache start for {0} {1}", sp.Name, sp.UUID); |
532 | /* | 532 | /* |
533 | for (int iter = 0; iter < AvatarAppearance.BAKE_INDICES.Length; iter++) | 533 | for (int iter = 0; iter < AvatarAppearance.BAKE_INDICES.Length; iter++) |
534 | { | 534 | { |
@@ -600,7 +600,9 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
600 | 600 | ||
601 | wearableCacheValid = (wearableCacheValid && (hits >= AvatarAppearance.BAKE_INDICES.Length - 1)); | 601 | wearableCacheValid = (wearableCacheValid && (hits >= AvatarAppearance.BAKE_INDICES.Length - 1)); |
602 | if (wearableCacheValid) | 602 | if (wearableCacheValid) |
603 | m_log.Debug("[ValidateBakedCache] have valid local cache"); | 603 | { |
604 | //m_log.Debug("[ValidateBakedCache] have valid local cache"); | ||
605 | } | ||
604 | else | 606 | else |
605 | wearableCache[19].TextureAsset = null; // clear optional skirt | 607 | wearableCache[19].TextureAsset = null; // clear optional skirt |
606 | } | 608 | } |
@@ -640,7 +642,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
640 | 642 | ||
641 | if (bakedModuleCache != null) | 643 | if (bakedModuleCache != null) |
642 | { | 644 | { |
643 | m_log.Debug("[ValidateBakedCache] got bakedModule " + bakedModuleCache.Length + " cached textures"); | 645 | //m_log.Debug("[ValidateBakedCache] got bakedModule " + bakedModuleCache.Length + " cached textures"); |
644 | 646 | ||
645 | for (int i = 0; i < bakedModuleCache.Length; i++) | 647 | for (int i = 0; i < bakedModuleCache.Length; i++) |
646 | { | 648 | { |
@@ -695,7 +697,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
695 | } | 697 | } |
696 | 698 | ||
697 | // debug | 699 | // debug |
698 | m_log.DebugFormat("[ValidateBakedCache]: Completed texture check for {0} {1} with {2} hits", sp.Name, sp.UUID, hits); | 700 | //m_log.DebugFormat("[ValidateBakedCache]: Completed texture check for {0} {1} with {2} hits", sp.Name, sp.UUID, hits); |
699 | /* | 701 | /* |
700 | for (int iter = 0; iter < AvatarAppearance.BAKE_INDICES.Length; iter++) | 702 | for (int iter = 0; iter < AvatarAppearance.BAKE_INDICES.Length; iter++) |
701 | { | 703 | { |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index ec09fe6..17603b6 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1246,14 +1246,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
1246 | // other uses need fix | 1246 | // other uses need fix |
1247 | private bool MakeRootAgent(Vector3 pos, bool isFlying, ref Vector3 lookat) | 1247 | private bool MakeRootAgent(Vector3 pos, bool isFlying, ref Vector3 lookat) |
1248 | { | 1248 | { |
1249 | int ts = Util.EnvironmentTickCount(); | 1249 | //int ts = Util.EnvironmentTickCount(); |
1250 | 1250 | ||
1251 | lock (m_completeMovementLock) | 1251 | lock (m_completeMovementLock) |
1252 | { | 1252 | { |
1253 | if (!IsChildAgent) | 1253 | if (!IsChildAgent) |
1254 | return false; | 1254 | return false; |
1255 | 1255 | ||
1256 | m_log.DebugFormat("[MakeRootAgent] enter lock: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 1256 | //m_log.DebugFormat("[MakeRootAgent] enter lock: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
1257 | //m_log.DebugFormat("[SCENE]: known regions in {0}: {1}", Scene.RegionInfo.RegionName, KnownChildRegionHandles.Count); | 1257 | //m_log.DebugFormat("[SCENE]: known regions in {0}: {1}", Scene.RegionInfo.RegionName, KnownChildRegionHandles.Count); |
1258 | 1258 | ||
1259 | // m_log.InfoFormat( | 1259 | // m_log.InfoFormat( |
@@ -1303,7 +1303,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1303 | IsChildAgent = false; | 1303 | IsChildAgent = false; |
1304 | } | 1304 | } |
1305 | 1305 | ||
1306 | m_log.DebugFormat("[MakeRootAgent] out lock: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 1306 | //m_log.DebugFormat("[MakeRootAgent] out lock: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
1307 | 1307 | ||
1308 | // Must reset this here so that a teleport to a region next to an existing region does not keep the flag | 1308 | // Must reset this here so that a teleport to a region next to an existing region does not keep the flag |
1309 | // set and prevent the close of the connection on a subsequent re-teleport. | 1309 | // set and prevent the close of the connection on a subsequent re-teleport. |
@@ -1313,7 +1313,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1313 | RegionHandle = m_scene.RegionInfo.RegionHandle; | 1313 | RegionHandle = m_scene.RegionInfo.RegionHandle; |
1314 | 1314 | ||
1315 | m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); | 1315 | m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); |
1316 | m_log.DebugFormat("[MakeRootAgent] TriggerSetRootAgentScene: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 1316 | //m_log.DebugFormat("[MakeRootAgent] TriggerSetRootAgentScene: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
1317 | 1317 | ||
1318 | if (ParentID == 0) | 1318 | if (ParentID == 0) |
1319 | { | 1319 | { |
@@ -1452,7 +1452,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1452 | } | 1452 | } |
1453 | } | 1453 | } |
1454 | 1454 | ||
1455 | m_log.DebugFormat("[MakeRootAgent] position and physical: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 1455 | //m_log.DebugFormat("[MakeRootAgent] position and physical: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
1456 | m_scene.SwapRootAgentCount(false); | 1456 | m_scene.SwapRootAgentCount(false); |
1457 | 1457 | ||
1458 | // If we don't reset the movement flag here, an avatar that crosses to a neighbouring sim and returns will | 1458 | // If we don't reset the movement flag here, an avatar that crosses to a neighbouring sim and returns will |
@@ -1461,7 +1461,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1461 | MovementFlag = 0; | 1461 | MovementFlag = 0; |
1462 | 1462 | ||
1463 | m_scene.EventManager.TriggerOnMakeRootAgent(this); | 1463 | m_scene.EventManager.TriggerOnMakeRootAgent(this); |
1464 | m_log.DebugFormat("[MakeRootAgent] TriggerOnMakeRootAgent and done: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 1464 | //m_log.DebugFormat("[MakeRootAgent] TriggerOnMakeRootAgent and done: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
1465 | 1465 | ||
1466 | return true; | 1466 | return true; |
1467 | } | 1467 | } |
@@ -2057,7 +2057,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2057 | return; | 2057 | return; |
2058 | } | 2058 | } |
2059 | 2059 | ||
2060 | m_log.DebugFormat("[CompleteMovement] WaitForUpdateAgent: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2060 | //m_log.DebugFormat("[CompleteMovement] WaitForUpdateAgent: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2061 | 2061 | ||
2062 | bool flying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); | 2062 | bool flying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); |
2063 | 2063 | ||
@@ -2085,7 +2085,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2085 | } | 2085 | } |
2086 | 2086 | ||
2087 | 2087 | ||
2088 | m_log.DebugFormat("[CompleteMovement] MakeRootAgent: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2088 | //m_log.DebugFormat("[CompleteMovement] MakeRootAgent: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2089 | 2089 | ||
2090 | if(!haveGroupInformation && !IsChildAgent && !IsNPC) | 2090 | if(!haveGroupInformation && !IsChildAgent && !IsNPC) |
2091 | { | 2091 | { |
@@ -2093,7 +2093,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2093 | if (gm != null) | 2093 | if (gm != null) |
2094 | Grouptitle = gm.GetGroupTitle(m_uuid); | 2094 | Grouptitle = gm.GetGroupTitle(m_uuid); |
2095 | 2095 | ||
2096 | m_log.DebugFormat("[CompleteMovement] Missing Grouptitle: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2096 | //m_log.DebugFormat("[CompleteMovement] Missing Grouptitle: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2097 | 2097 | ||
2098 | InventoryFolderBase cof = m_scene.InventoryService.GetFolderForType(client.AgentId, (FolderType)46); | 2098 | InventoryFolderBase cof = m_scene.InventoryService.GetFolderForType(client.AgentId, (FolderType)46); |
2099 | if (cof == null) | 2099 | if (cof == null) |
@@ -2124,7 +2124,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2124 | 2124 | ||
2125 | Scene.SimulationService.ReleaseAgent(originID, UUID, m_callbackURI); | 2125 | Scene.SimulationService.ReleaseAgent(originID, UUID, m_callbackURI); |
2126 | m_callbackURI = null; | 2126 | m_callbackURI = null; |
2127 | m_log.DebugFormat("[CompleteMovement] ReleaseAgent: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2127 | //m_log.DebugFormat("[CompleteMovement] ReleaseAgent: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2128 | } | 2128 | } |
2129 | // else | 2129 | // else |
2130 | // { | 2130 | // { |
@@ -2136,7 +2136,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2136 | 2136 | ||
2137 | // Tell the client that we're totally ready | 2137 | // Tell the client that we're totally ready |
2138 | ControllingClient.MoveAgentIntoRegion(m_scene.RegionInfo, AbsolutePosition, look); | 2138 | ControllingClient.MoveAgentIntoRegion(m_scene.RegionInfo, AbsolutePosition, look); |
2139 | m_log.DebugFormat("[CompleteMovement] MoveAgentIntoRegion: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2139 | //m_log.DebugFormat("[CompleteMovement] MoveAgentIntoRegion: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2140 | 2140 | ||
2141 | bool isHGTP = (m_teleportFlags & TeleportFlags.ViaHGLogin) != 0; | 2141 | bool isHGTP = (m_teleportFlags & TeleportFlags.ViaHGLogin) != 0; |
2142 | 2142 | ||
@@ -2171,7 +2171,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2171 | m_scene.AvatarFactory.QueueAppearanceSave(UUID); | 2171 | m_scene.AvatarFactory.QueueAppearanceSave(UUID); |
2172 | } | 2172 | } |
2173 | } | 2173 | } |
2174 | m_log.DebugFormat("[CompleteMovement] Baked check: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2174 | //m_log.DebugFormat("[CompleteMovement] Baked check: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2175 | } | 2175 | } |
2176 | 2176 | ||
2177 | if(m_teleportFlags > 0) | 2177 | if(m_teleportFlags > 0) |
@@ -2259,7 +2259,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2259 | } | 2259 | } |
2260 | } // greys if | 2260 | } // greys if |
2261 | 2261 | ||
2262 | m_log.DebugFormat("[CompleteMovement] ValidateAndSendAppearanceAndAgentData: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2262 | //m_log.DebugFormat("[CompleteMovement] ValidateAndSendAppearanceAndAgentData: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2263 | 2263 | ||
2264 | // attachments | 2264 | // attachments |
2265 | if (IsNPC || IsRealLogin(m_teleportFlags)) | 2265 | if (IsNPC || IsRealLogin(m_teleportFlags)) |
@@ -2308,7 +2308,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2308 | } | 2308 | } |
2309 | } | 2309 | } |
2310 | 2310 | ||
2311 | m_log.DebugFormat("[CompleteMovement] attachments: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2311 | //m_log.DebugFormat("[CompleteMovement] attachments: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2312 | if (openChildAgents) | 2312 | if (openChildAgents) |
2313 | { | 2313 | { |
2314 | // Create child agents in neighbouring regions | 2314 | // Create child agents in neighbouring regions |
@@ -2326,7 +2326,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2326 | m_childUpdatesBusy = false; // allow them | 2326 | m_childUpdatesBusy = false; // allow them |
2327 | } | 2327 | } |
2328 | 2328 | ||
2329 | m_log.DebugFormat("[CompleteMovement] openChildAgents: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2329 | //m_log.DebugFormat("[CompleteMovement] openChildAgents: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2330 | 2330 | ||
2331 | // send the rest of the world | 2331 | // send the rest of the world |
2332 | if (m_teleportFlags > 0 && !IsNPC || m_currentParcelHide) | 2332 | if (m_teleportFlags > 0 && !IsNPC || m_currentParcelHide) |
@@ -2338,7 +2338,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2338 | // m_reprioritizationLastTime = Util.EnvironmentTickCount() + 15000; // delay it | 2338 | // m_reprioritizationLastTime = Util.EnvironmentTickCount() + 15000; // delay it |
2339 | // m_reprioritizationBusy = false; | 2339 | // m_reprioritizationBusy = false; |
2340 | 2340 | ||
2341 | m_log.DebugFormat("[CompleteMovement] SendInitialDataToMe: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2341 | //m_log.DebugFormat("[CompleteMovement] SendInitialDataToMe: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2342 | 2342 | ||
2343 | if (!IsChildAgent && openChildAgents) | 2343 | if (!IsChildAgent && openChildAgents) |
2344 | { | 2344 | { |
@@ -2350,7 +2350,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2350 | else | 2350 | else |
2351 | friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); | 2351 | friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); |
2352 | } | 2352 | } |
2353 | m_log.DebugFormat("[CompleteMovement] friendsModule: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2353 | //m_log.DebugFormat("[CompleteMovement] friendsModule: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2354 | 2354 | ||
2355 | } | 2355 | } |
2356 | } | 2356 | } |