aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
diff options
context:
space:
mode:
authorDahlia Trimble2009-01-10 01:46:47 +0000
committerDahlia Trimble2009-01-10 01:46:47 +0000
commit3bdd4db3fd7eddb9e4f017cc45aa3eb2b3921111 (patch)
tree517b9986d705c99a6c0e5dc57899127fca10288e /OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
parentminor: remove mono compiler warning (diff)
downloadopensim-SC-3bdd4db3fd7eddb9e4f017cc45aa3eb2b3921111.zip
opensim-SC-3bdd4db3fd7eddb9e4f017cc45aa3eb2b3921111.tar.gz
opensim-SC-3bdd4db3fd7eddb9e4f017cc45aa3eb2b3921111.tar.bz2
opensim-SC-3bdd4db3fd7eddb9e4f017cc45aa3eb2b3921111.tar.xz
Thanks jhurliman for a patch that implements progressive texture downloading - Mantis #2655
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
index d6c9877..aab4ad0 100644
--- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
@@ -56,11 +56,10 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
56 /// <summary> 56 /// <summary>
57 /// We will allow the client to request the same texture n times before dropping further requests 57 /// We will allow the client to request the same texture n times before dropping further requests
58 /// 58 ///
59 /// This number includes repeated requests for the same texture at different resolutions (which we don't 59 /// This number contains repeated requests for the same texture at different resolutions (which
60 /// currently handle properly as far as I know). However, this situation should be handled in a more 60 /// are handled since r7368). However, this situation should be handled in a more sophisticated way.
61 /// sophisticated way.
62 /// </summary> 61 /// </summary>
63 private static readonly int MAX_ALLOWED_TEXTURE_REQUESTS = 5; 62 private static readonly int MAX_ALLOWED_TEXTURE_REQUESTS = 15;
64 63
65 /// <summary> 64 /// <summary>
66 /// XXX Also going to limit requests for found textures. 65 /// XXX Also going to limit requests for found textures.
@@ -149,7 +148,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
149 148
150 m_scene.AddPendingDownloads(1); 149 m_scene.AddPendingDownloads(1);
151 150
152 TextureSender.TextureSender requestHandler = new TextureSender.TextureSender(m_client, e.DiscardLevel, e.PacketNumber); 151 TextureSender.TextureSender requestHandler = new TextureSender.TextureSender(m_client, e.DiscardLevel, e.PacketNumber, e.Priority);
153 m_textureSenders.Add(e.RequestedAssetID, requestHandler); 152 m_textureSenders.Add(e.RequestedAssetID, requestHandler);
154 153
155 m_scene.AssetCache.GetAsset(e.RequestedAssetID, TextureCallback, true); 154 m_scene.AssetCache.GetAsset(e.RequestedAssetID, TextureCallback, true);