bunchofcaps config options are the same per region and nini reading is not light

This commit is contained in:
UbitUmarov
2024-04-16 23:10:30 +01:00
parent b9eb6bdd76
commit a5d6f2df02
3 changed files with 114 additions and 112 deletions

View File

@@ -901,7 +901,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//TerrainBase1
//TerrainBase2
//TerrainBase3
// this seem not obsolete, sending zero uuids
// this seem now obsolete, sending zero uuids
// we should send the basic low resolution default ?
zc.AddZeros(16 * 4);
//TerrainDetail0
@@ -5520,7 +5520,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
inner = $"{{'id':i{sop.LocalId},'od':[],'te':[]}}";
byte[] innerB = Util.UTF8NBGetbytes(inner);
if (innerB.Length > 4096 - 16)
if (innerB.Length > UDPPacketBuffer.BUFFER_SIZE - 16)
{
m_log.Debug($"[LLCLIENTVIEW]: GenericStreamingMessage packet too large ({innerB.Length})");
continue;