From 813ee4e18816de13965d0d67dfbdf15fd661ec41 Mon Sep 17 00:00:00 2001 From: AliciaRaven Date: Thu, 1 Dec 2016 03:11:34 +0000 Subject: Remove unused integer vars from LLClientView --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 2 -- 1 file changed, 2 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/UDP') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 6cdf6f6..68df40f 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -2996,7 +2996,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP return; } - int WearableOut = 0; bool isWearable = false; isWearable = ((AssetType) req.AssetInf.Type == @@ -8563,7 +8562,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP // surrounding scene if ((ImageType)block.Type == ImageType.Baked) args.Priority *= 2.0f; - int wearableout = 0; ImageManager.EnqueueReq(args); } -- cgit v1.1 From 1fdd71f8565ee8a52aa17f9e56ef66ab2889c859 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 1 Dec 2016 07:49:17 +0000 Subject: do a GC collect on last client exit --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/UDP') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 68df40f..ce7ee98 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -619,11 +619,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP m_entityProps = new PriorityQueue(1); m_killRecord.Clear(); GroupsInView.Clear(); -// m_scene = null; can't do this unless checks are added everywhere due to workitems already in pools - //m_log.InfoFormat("[CLIENTVIEW] Memory pre GC {0}", System.GC.GetTotalMemory(false)); - //GC.Collect(); - //m_log.InfoFormat("[CLIENTVIEW] Memory post GC {0}", System.GC.GetTotalMemory(true)); + if(m_scene.GetNumberOfClients() == 0) + GC.Collect(); } public void Kick(string message) -- cgit v1.1