http asset send: prioritize baked textures
parent
7ecc9408a9
commit
0a1e1ae9e0
|
@ -180,8 +180,16 @@ namespace OpenSim.Capabilities.Handlers
|
||||||
responsedata["int_bytes"] = len;
|
responsedata["int_bytes"] = len;
|
||||||
if (type == AssetType.Mesh || type == AssetType.Texture)
|
if (type == AssetType.Mesh || type == AssetType.Texture)
|
||||||
{
|
{
|
||||||
responsedata["throttle"] = true;
|
if(len > 8196)
|
||||||
responsedata["prio"] = len < 8196 ? 1 : 2;
|
{
|
||||||
|
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
|
return responsedata; // full asset
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue