diff options
author | Justin Clark-Casey (justincc) | 2013-09-03 19:41:12 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-09-03 19:41:12 +0100 |
commit | 76bd2e2d727a15e5d3bc9045bdef6faaeca4a08f (patch) | |
tree | 62cbb335ba86afce165fdf5bc5e73805c3b3ed20 /OpenSim/Tools/pCampBot/Bot.cs | |
parent | Add Close() method to IBehaviour to allow behaviours to cleanup when removed ... (diff) | |
download | opensim-SC-76bd2e2d727a15e5d3bc9045bdef6faaeca4a08f.zip opensim-SC-76bd2e2d727a15e5d3bc9045bdef6faaeca4a08f.tar.gz opensim-SC-76bd2e2d727a15e5d3bc9045bdef6faaeca4a08f.tar.bz2 opensim-SC-76bd2e2d727a15e5d3bc9045bdef6faaeca4a08f.tar.xz |
Consistently give responsibility for thread sleeping to behaviours rather than controlling from the main action loop
This is to avoid excessive and inconsistent delays between behaviours that currently need to embed sleeps in other actions (e.g. physics) and other behaviours.
Might need a more sophisticated approach in the long term.
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r-- | OpenSim/Tools/pCampBot/Bot.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs index f871b77..d0a4ef3 100644 --- a/OpenSim/Tools/pCampBot/Bot.cs +++ b/OpenSim/Tools/pCampBot/Bot.cs | |||
@@ -282,7 +282,7 @@ namespace pCampBot | |||
282 | { | 282 | { |
283 | foreach (IBehaviour behaviour in Behaviours.Values) | 283 | foreach (IBehaviour behaviour in Behaviours.Values) |
284 | { | 284 | { |
285 | Thread.Sleep(Random.Next(3000, 10000)); | 285 | // Thread.Sleep(Random.Next(3000, 10000)); |
286 | 286 | ||
287 | // m_log.DebugFormat("[pCAMPBOT]: For {0} performing action {1}", Name, b.GetType()); | 287 | // m_log.DebugFormat("[pCAMPBOT]: For {0} performing action {1}", Name, b.GetType()); |
288 | behaviour.Action(); | 288 | behaviour.Action(); |