Changed the example code to properly use the automatic AgentThrottle (throttle values need to be set before the client logs in)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1013 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2007-02-27 23:57:36 +00:00
parent 93a82a327d
commit 33bb5e06b9
6 changed files with 28 additions and 33 deletions

View File

@@ -87,6 +87,11 @@ namespace libsecondlife.TestClient
client.SimPrims = SimPrims;
client.Master = account.Master;
// Throttle the connection to not receive LayerData packets
client.Throttle.Land = 0.0f;
client.Throttle.Cloud = 0.0f;
client.Throttle.Wind = 0.0f;
if (this.startpos.sim != null)
{
if (this.startpos.x == 0 || this.startpos.y == 0 || this.startpos.z == 0)
@@ -117,12 +122,6 @@ namespace libsecondlife.TestClient
Clients[client.Network.AgentID] = client;
Console.WriteLine("Logged in " + client.ToString());
// Throttle the connection to not receive LayerData packets
client.Throttle.Land = 0.0f;
client.Throttle.Cloud = 0.0f;
client.Throttle.Wind = 0.0f;
client.Throttle.Set();
}
return client;