From b9346844c1d56a74f405c6e518706c0e754297d8 Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 26 Aug 2007 20:34:14 +0000 Subject: See if this fixes the 0x0 texture size problems, and speeds up texture downloads in general a little bit. --- OpenSim/Framework/Communications/Cache/AssetCache.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index c6de226..4f845b5 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -230,7 +230,7 @@ namespace OpenSim.Framework.Communications.Caches 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(); if (finished) @@ -336,6 +336,7 @@ namespace OpenSim.Framework.Communications.Caches ImageNotInDatabasePacket notFound = new ImageNotInDatabasePacket(); notFound.ImageID.ID = assetID; req.RequestUser.OutPacket(notFound); + //Console.WriteLine("sending image not found for " + assetID); this.RequestedTextures.Remove(assetID); } @@ -698,7 +699,7 @@ namespace OpenSim.Framework.Communications.Caches SendPacket(); counter++; - if ((request.PacketCounter > request.NumPackets) | (counter > 90) | (request.NumPackets == 1)) + if ((request.PacketCounter > request.NumPackets) | (counter > 100) | (request.NumPackets == 1)) { return true; } -- cgit v1.1