save a few more bits per flat patch

avinationmerge
UbitUmarov 2015-09-24 15:23:52 +01:00
parent 58daecfccb
commit f484773447
1 changed files with 5 additions and 4 deletions

View File

@ -292,8 +292,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{ {
// flat terrain spead up things // flat terrain spead up things
// prequant and quant 2 bits both header.DCOffset -= 0.5f;
header.QuantWBits = 0x04;
header.QuantWBits = 0x00;
output.PackBits(header.QuantWBits, 8); output.PackBits(header.QuantWBits, 8);
output.PackFloat(header.DCOffset); output.PackFloat(header.DCOffset);
output.PackBits(1, 16); output.PackBits(1, 16);
@ -302,8 +303,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
else else
output.PackBits(header.PatchIDs, 10); output.PackBits(header.PatchIDs, 10);
output.PackBits(NEGATIVE_VALUE, 3); // output.PackBits(NEGATIVE_VALUE, 3);
output.PackBits(0x20, 6); // output.PackBits(0x20, 6);
// and thats all // and thats all
output.PackBits(ZERO_EOB, 2); output.PackBits(ZERO_EOB, 2);
return; return;