See if this fixes the 0x0 texture size problems, and speeds up texture downloads in general a little bit.

afrisby
MW 2007-08-26 20:34:14 +00:00
parent 291eb48fb0
commit b9346844c1
1 changed files with 3 additions and 2 deletions

View File

@ -230,7 +230,7 @@ namespace OpenSim.Framework.Communications.Caches
UsersSent.Add(sender.request.ImageInfo.FullID, 1); UsersSent.Add(sender.request.ImageInfo.FullID, 1);
} }
if (TimesTextureSent[sender.request.RequestUser.AgentId][sender.request.ImageInfo.FullID] < 600) if (TimesTextureSent[sender.request.RequestUser.AgentId][sender.request.ImageInfo.FullID] < 1000)
{ {
bool finished = sender.SendTexture(); bool finished = sender.SendTexture();
if (finished) if (finished)
@ -336,6 +336,7 @@ namespace OpenSim.Framework.Communications.Caches
ImageNotInDatabasePacket notFound = new ImageNotInDatabasePacket(); ImageNotInDatabasePacket notFound = new ImageNotInDatabasePacket();
notFound.ImageID.ID = assetID; notFound.ImageID.ID = assetID;
req.RequestUser.OutPacket(notFound); req.RequestUser.OutPacket(notFound);
//Console.WriteLine("sending image not found for " + assetID);
this.RequestedTextures.Remove(assetID); this.RequestedTextures.Remove(assetID);
} }
@ -698,7 +699,7 @@ namespace OpenSim.Framework.Communications.Caches
SendPacket(); SendPacket();
counter++; counter++;
if ((request.PacketCounter > request.NumPackets) | (counter > 90) | (request.NumPackets == 1)) if ((request.PacketCounter > request.NumPackets) | (counter > 100) | (request.NumPackets == 1))
{ {
return true; return true;
} }