aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.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/Interfaces/IBehaviour.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/Interfaces/IBehaviour.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs b/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs
index 0ed4825..660c630 100644
--- a/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs
+++ b/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs
@@ -51,6 +51,14 @@ namespace pCampBot.Interfaces
51 void Initialize(Bot bot); 51 void Initialize(Bot bot);
52 52
53 /// <summary> 53 /// <summary>
54 /// Interrupt the behaviour.
55 /// </summary>
56 /// <remarks>
57 /// This should cause the current Action call() to terminate if this is active.
58 /// </remarks>
59 void Interrupt();
60
61 /// <summary>
54 /// Close down this behaviour. 62 /// Close down this behaviour.
55 /// </summary> 63 /// </summary>
56 /// <remarks> 64 /// <remarks>