http asset send: prioritize baked textures
parent
7ecc9408a9
commit
0a1e1ae9e0
|
@ -179,9 +179,17 @@ namespace OpenSim.Capabilities.Handlers
|
||||||
responsedata["bin_response_data"] = asset.Data;
|
responsedata["bin_response_data"] = asset.Data;
|
||||||
responsedata["int_bytes"] = len;
|
responsedata["int_bytes"] = len;
|
||||||
if (type == AssetType.Mesh || type == AssetType.Texture)
|
if (type == AssetType.Mesh || type == AssetType.Texture)
|
||||||
|
{
|
||||||
|
if(len > 8196)
|
||||||
{
|
{
|
||||||
responsedata["throttle"] = true;
|
responsedata["throttle"] = true;
|
||||||
responsedata["prio"] = len < 8196 ? 1 : 2;
|
if(type == AssetType.Texture && ((asset.Flags & AssetFlags.AvatarBake)!= 0))
|
||||||
|
responsedata["prio"] = 1;
|
||||||
|
else
|
||||||
|
responsedata["prio"] = 2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
responsedata["prio"] = 1;
|
||||||
}
|
}
|
||||||
return responsedata; // full asset
|
return responsedata; // full asset
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue