mirror of
https://github.com/opensim/opensim.git
synced 2026-07-06 12:35:45 +08:00
Started the process of cleaning up AssetCache and moving most of the code into modules. Have moved TextureRequest handling (from the client) to a module. But even though to start with I just did a little bit of cleaning up of the existing code, it doesn't seem to work as good as the old code so I need to spend more time on it. So for now am committing my changes but with them not in use. So for now all Texture and asset requests are still handled by the old code in AssetCache.
This commit is contained in:
@@ -210,7 +210,7 @@ namespace OpenSim.Region.ClientStack
|
||||
case PacketType.AgentSit:
|
||||
if (OnAgentSit != null)
|
||||
{
|
||||
AgentSitPacket agentSit = (AgentSitPacket) Pack;
|
||||
AgentSitPacket agentSit = (AgentSitPacket)Pack;
|
||||
OnAgentSit(this, agentSit.AgentData.AgentID);
|
||||
}
|
||||
break;
|
||||
@@ -364,7 +364,17 @@ namespace OpenSim.Region.ClientStack
|
||||
for (int i = 0; i < imageRequest.RequestImage.Length; i++)
|
||||
{
|
||||
|
||||
// Console.WriteLine("image request of "+ imageRequest.RequestImage[i].Image+ " at discard level " + imageRequest.RequestImage[i].DiscardLevel);
|
||||
// still working on the Texture download module so for now using old method
|
||||
// TextureRequestArgs args = new TextureRequestArgs();
|
||||
// args.RequestedAssetID = imageRequest.RequestImage[i].Image;
|
||||
// args.DiscardLevel = imageRequest.RequestImage[i].DiscardLevel;
|
||||
// args.PacketNumber = imageRequest.RequestImage[i].Packet;
|
||||
|
||||
// if (OnRequestTexture != null)
|
||||
// {
|
||||
// OnRequestTexture(this, args);
|
||||
// }
|
||||
|
||||
m_assetCache.AddTextureRequest(this, imageRequest.RequestImage[i].Image, imageRequest.RequestImage[i].Packet, imageRequest.RequestImage[i].DiscardLevel);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user