* Converting packet sequence number incrementing from the unsafe lock{} mechanism to the Interlocked class

* Tiny speed optimizations in packet handling

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2018 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-07-29 16:52:44 +00:00
parent ac8f8294a6
commit 24471fe5fa
3 changed files with 33 additions and 40 deletions

View File

@@ -1056,8 +1056,7 @@ namespace PrimWorkshop
private void Network_OnCurrentSimChanged(Simulator PreviousSimulator)
{
Console.WriteLine("CurrentSim set to " + Client.Network.CurrentSim + ", downloading parcel information");
Client.Parcels.RequestAllSimParcels(Client.Network.CurrentSim);
BeginInvoke((MethodInvoker)delegate() { txtSim.Text = Client.Network.CurrentSim.Name; });
InitHeightmap();
@@ -1072,6 +1071,9 @@ namespace PrimWorkshop
{
if (simulator == Client.Network.CurrentSim)
BeginInvoke((MethodInvoker)delegate() { cmdTeleport.Enabled = true; });
// Now seems like a good time to start requesting parcel information
Client.Parcels.RequestAllSimParcels(Client.Network.CurrentSim, false, 100);
}
private void RenderScene()