http asset send: prioritize baked textures

master
UbitUmarov 2020-04-09 16:18:27 +01:00
parent 7ecc9408a9
commit 0a1e1ae9e0
1 changed files with 10 additions and 2 deletions

View File

@ -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
} }