aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-09-24 15:23:52 +0100
committerUbitUmarov2015-09-24 15:23:52 +0100
commitf484773447246f37fce0ccb60d682d3c3b2d4917 (patch)
tree47adedb3218b232a84831715aba8af6bff2f5217 /OpenSim/Region/Framework/Scenes/TerrainCompressor.cs
parent don't mess ray direction.. (diff)
downloadopensim-SC-f484773447246f37fce0ccb60d682d3c3b2d4917.zip
opensim-SC-f484773447246f37fce0ccb60d682d3c3b2d4917.tar.gz
opensim-SC-f484773447246f37fce0ccb60d682d3c3b2d4917.tar.bz2
opensim-SC-f484773447246f37fce0ccb60d682d3c3b2d4917.tar.xz
save a few more bits per flat patch
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/TerrainCompressor.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/TerrainCompressor.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs
index 26b0719..6b272fb 100644
--- a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs
+++ b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs
@@ -292,8 +292,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
292 { 292 {
293 // flat terrain spead up things 293 // flat terrain spead up things
294 294
295 // prequant and quant 2 bits both 295 header.DCOffset -= 0.5f;
296 header.QuantWBits = 0x04; 296
297 header.QuantWBits = 0x00;
297 output.PackBits(header.QuantWBits, 8); 298 output.PackBits(header.QuantWBits, 8);
298 output.PackFloat(header.DCOffset); 299 output.PackFloat(header.DCOffset);
299 output.PackBits(1, 16); 300 output.PackBits(1, 16);
@@ -302,8 +303,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
302 else 303 else
303 output.PackBits(header.PatchIDs, 10); 304 output.PackBits(header.PatchIDs, 10);
304 305
305 output.PackBits(NEGATIVE_VALUE, 3); 306// output.PackBits(NEGATIVE_VALUE, 3);
306 output.PackBits(0x20, 6); 307// output.PackBits(0x20, 6);
307 // and thats all 308 // and thats all
308 output.PackBits(ZERO_EOB, 2); 309 output.PackBits(ZERO_EOB, 2);
309 return; 310 return;