aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-08-13 22:38:27 +0100
committerJustin Clark-Casey (justincc)2014-08-13 22:38:27 +0100
commit21176a3a901dd2190a1847acf576b938c0885e23 (patch)
treede76b08895632480f439bc026127126523c8ca93 /OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs
parentAdd 'server' stats information to pCampbot, as used elsewhere in OpenSimulator (diff)
downloadopensim-SC-21176a3a901dd2190a1847acf576b938c0885e23.zip
opensim-SC-21176a3a901dd2190a1847acf576b938c0885e23.tar.gz
opensim-SC-21176a3a901dd2190a1847acf576b938c0885e23.tar.bz2
opensim-SC-21176a3a901dd2190a1847acf576b938c0885e23.tar.xz
Terminate 'nothing' behaviour (and potentially others) by signalling using an event rather than polling connection state every 100ms
This kind of polling is very expensive with many bots/polling threads and appears to be the primary cause of bot falloff from the client end at higher loads. Where inbound packet threads can't run in time due to contention and simulator disconnect timeout occurs.
Diffstat (limited to '')
-rw-r--r--OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs b/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs
index 6fd2b7c..98ab931 100644
--- a/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs
+++ b/OpenSim/Tools/pCampBot/Behaviours/PhysicsBehaviour.cs
@@ -82,6 +82,8 @@ namespace pCampBot
82 { 82 {
83 if (Bot.ConnectionState == ConnectionState.Connected) 83 if (Bot.ConnectionState == ConnectionState.Connected)
84 Bot.Client.Self.Jump(false); 84 Bot.Client.Self.Jump(false);
85
86 base.Close();
85 } 87 }
86 88
87 private string[] readexcuses() 89 private string[] readexcuses()