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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user