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

@ -180,8 +180,16 @@ namespace OpenSim.Capabilities.Handlers
responsedata["int_bytes"] = len;
if (type == AssetType.Mesh || type == AssetType.Texture)
{
responsedata["throttle"] = true;
responsedata["prio"] = len < 8196 ? 1 : 2;
if(len > 8196)
{
responsedata["throttle"] = true;
if(type == AssetType.Texture && ((asset.Flags & AssetFlags.AvatarBake)!= 0))
responsedata["prio"] = 1;
else
responsedata["prio"] = 2;
}
else
responsedata["prio"] = 1;
}
return responsedata; // full asset
}