From f484773447246f37fce0ccb60d682d3c3b2d4917 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 24 Sep 2015 15:23:52 +0100 Subject: [PATCH] save a few more bits per flat patch --- OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs index 26b0719c41..6b272fb459 100644 --- a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs +++ b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs @@ -292,8 +292,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP { // flat terrain spead up things - // prequant and quant 2 bits both - header.QuantWBits = 0x04; + header.DCOffset -= 0.5f; + + header.QuantWBits = 0x00; output.PackBits(header.QuantWBits, 8); output.PackFloat(header.DCOffset); output.PackBits(1, 16); @@ -302,8 +303,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP else output.PackBits(header.PatchIDs, 10); - output.PackBits(NEGATIVE_VALUE, 3); - output.PackBits(0x20, 6); +// output.PackBits(NEGATIVE_VALUE, 3); +// output.PackBits(0x20, 6); // and thats all output.PackBits(ZERO_EOB, 2); return;