diff options
author | Robert Adams | 2014-06-01 19:22:26 -0700 |
---|---|---|
committer | Robert Adams | 2014-06-01 19:23:49 -0700 |
commit | 0aa0dad47868d6f64fa19f81b0f5daf35196fc3b (patch) | |
tree | 794ba1ab5af3733a109175414e934dcba2a42c50 /OpenSim/Region/Framework/Scenes | |
parent | Fixes a permissions bug where a user with group powers to always rez was not ... (diff) | |
download | opensim-SC-0aa0dad47868d6f64fa19f81b0f5daf35196fc3b.zip opensim-SC-0aa0dad47868d6f64fa19f81b0f5daf35196fc3b.tar.gz opensim-SC-0aa0dad47868d6f64fa19f81b0f5daf35196fc3b.tar.bz2 opensim-SC-0aa0dad47868d6f64fa19f81b0f5daf35196fc3b.tar.xz |
Send multiple terrain patches per terrain update packet if terrain
draw distance optimization is enabled. Makes terrain editting a lot
snappier.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs index 396f1e8..fc8f8cd 100644 --- a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs +++ b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | |||
@@ -119,6 +119,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
119 | xPieces[0] = patchX; // patch X dimension | 119 | xPieces[0] = patchX; // patch X dimension |
120 | yPieces[0] = patchY; | 120 | yPieces[0] = patchY; |
121 | 121 | ||
122 | return CreateLandPacket(terrData, xPieces, yPieces); | ||
123 | } | ||
124 | |||
125 | public static LayerDataPacket CreateLandPacket(TerrainData terrData, int[] xPieces, int[] yPieces) | ||
126 | { | ||
122 | byte landPacketType = (byte)TerrainPatch.LayerType.Land; | 127 | byte landPacketType = (byte)TerrainPatch.LayerType.Land; |
123 | if (terrData.SizeX > Constants.RegionSize || terrData.SizeY > Constants.RegionSize) | 128 | if (terrData.SizeX > Constants.RegionSize || terrData.SizeY > Constants.RegionSize) |
124 | { | 129 | { |
@@ -148,8 +153,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
148 | /// Array of indexes in the grid of patches. | 153 | /// Array of indexes in the grid of patches. |
149 | /// </param> | 154 | /// </param> |
150 | /// <param name="type"></param> | 155 | /// <param name="type"></param> |
151 | /// <param name="pRegionSizeX"></param> | ||
152 | /// <param name="pRegionSizeY"></param> | ||
153 | /// <returns></returns> | 156 | /// <returns></returns> |
154 | public static LayerDataPacket CreateLandPacket(TerrainData terrData, int[] x, int[] y, byte type) | 157 | public static LayerDataPacket CreateLandPacket(TerrainData terrData, int[] x, int[] y, byte type) |
155 | { | 158 | { |