Commit Graph

159 Commits

Author SHA1 Message Date
Melanie Thielker
b16abc8166 Massive tab and trailing space cleanup 2017-01-05 19:07:37 +00:00
UbitUmarov
592a915d8d add rest of wiring for terrain bake persistent store (mantis 8024 but not
using its code). Only did minor testing in MySQL
2016-09-17 17:56:56 +01:00
AliciaRaven
7c4c3f0d10 Minor. Remove unused integer arrays from TerrainModule 2016-09-15 22:46:59 +01:00
UbitUmarov
c8a1d7e5a7 workaround potencial memory leaks 2016-08-22 03:55:01 +01:00
UbitUmarov
5d42d24428 limit the scan of terrain EnforceEstateLimits to the area changed. 2016-08-21 02:10:45 +01:00
UbitUmarov
73719b2efc fix terrain BMP image format on SaveStream mantis: 8001 2016-08-21 00:25:32 +01:00
Jak Daniels
cc992bf156 Changes to TerrainModule/ITerrainModule to support importing OARs with different Region sizes to the destination region.
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2015-11-22 01:32:36 +00:00
UbitUmarov
9566c000f2 work around some 'tests' errors: terrain effects limits changed 2015-11-17 05:25:08 +00:00
UbitUmarov
f57a48a0fb fix silly bug 2015-11-10 20:34:19 +00:00
UbitUmarov
5bfd49404d start TerrainCheckUpdates on heartbeat thread, but do it async; fix a bug on slow terrain send limits check 2015-11-10 17:44:53 +00:00
UbitUmarov
d281ec5342 some fixes/changes on land send 2015-09-30 06:09:01 +01:00
UbitUmarov
8fde2fb901 slow down terrain sending so other users of LAND queue do have a chance to send things 2015-09-24 00:35:06 +01:00
UbitUmarov
33b4077c2c revert my change to the range of greyscale image maps, setting it back to 0 - 127.5 so not to break loading of old files. There isnt a range that fits all needs anyway 2015-09-21 00:44:53 +01:00
UbitUmarov
fe5807cd09 fix terrain save greyscale mapping to 1:1 suporting standard 0-255m range and not only 0-127m. Jpeg format still using a non standard color encoded heightmap 2015-09-20 15:31:38 +01:00
UbitUmarov
7276a89ddd recover opensim m_sendTerrainUpdatesByViewDistance. if false do as opensim (slower since it depended on sending terrain as TASK). if true send by view range and also all terrain at arrival 2015-09-07 11:23:00 +01:00
UbitUmarov
abd6640453 allocate llRAW LookupHeightTable on demand and release it, saving a few 512KB of memory 2015-09-07 08:06:41 +01:00
UbitUmarov
3a8e76cdd1 restore terrain modifiers, left out earlier bc of merge errors, (untested) 2015-09-07 07:50:51 +01:00
UbitUmarov
a11edceb00 seems to compile ( tests comented out) 2015-09-02 19:54:53 +01:00
UbitUmarov
371c9dd2af bad merge? 2015-09-01 14:54:35 +01:00
UbitUmarov
207dd6da48 fix some effects ranges 2015-08-29 05:28:13 +01:00
UbitUmarov
c967ecf0c7 also limit terrain flood effects ( like on pait change this should have
no visible impact, just cpu saving)
2015-08-28 02:33:54 +01:00
UbitUmarov
bd4ec5f26c restrict terrain PaintBrushes to the requested area 2015-08-27 22:36:14 +01:00
UbitUmarov
195dd054de make terrain undo non op, it is broken and can't be global but per agent 2015-08-27 21:07:16 +01:00
UbitUmarov
d1b4e0dd6a fix terrain bake for revert. just good enought fix 2015-08-27 19:20:41 +01:00
UbitUmarov
030c866b34 rename revert map as baked map, bc thats what it is 2015-08-27 15:48:13 +01:00
UbitUmarov
b82b16c954 take taints check terrain out of Onframe event and add a new event for it. Slow it down to 1/4 heartbeat rate (once every 363ms aprox) 2015-08-27 15:01:15 +01:00
UbitUmarov
f4f3b18221 fix bug 2015-08-25 20:08:05 +01:00
UbitUmarov
22f573a0be update raw32 file reader to core one. Warning only suports square regions 2015-08-25 20:00:31 +01:00
UbitUmarov
244f0c6352 change terrain internal representation to float. ushort work with legal
sl terrain, but may break existent terrain and that may cost a lot more
 than the cost of memory
2015-08-25 16:51:48 +01:00
UbitUmarov
64d05bab0f terrain stored as ushorts with gzip compression 2015-08-25 13:36:45 +01:00
UbitUmarov
e3d82ad706 delay terrain sending if land queue is 2 busy 2015-08-22 04:08:30 +01:00
UbitUmarov
17082da0da "uglyfy" GetModifiedPatchesInViewDistance. Also make it use camera or
avatar position
2015-08-21 20:19:04 +01:00
UbitUmarov
4bb55cad67 dont use SendTerrainUpdatesByViewDistance option, code executes as true.
the option will have other use
2015-08-21 03:04:52 +01:00
Robert Adams
81ef7b586e Address Mantis 7592 (http://opensimulator.org/mantis/view.php?id=7592) by
disabling terrain patch sending by view distance for legacy sized regions.

The problem seems to be that people expect adjacent legacy sized regions
to just display like they always have. Limiting displayed terrain is
complicated by the camera position not being updated in child regions.
2015-06-06 07:09:20 -07:00
Diva Canto
3c596e47c6 Knocked off a few compiler warnings regarding unused variables. 2015-05-10 21:54:24 -07:00
Dev Random
f20728fc86 Constrain 'terrain modify' to selected Region
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-05-09 15:25:33 -04:00
Michael Cerquoni
dc4c9b1bb0 Minor whitespace removal 2015-05-07 14:09:29 -04:00
Dev Random
a9dd3028b9 Add 'terrain modify noise' and code cleanup
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-05-07 14:07:50 -04:00
Dev Random
4bf62e11b6 'terrain modify' command for area-of-effect operations
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-05-06 13:55:22 -04:00
Robert Adams
07dead7dcb varregion: any conversions of use of Constants.RegionSize converted into
Util.cs routines to convert region coords to and from world coords or handles.
2015-03-29 14:25:12 -07:00
Robert Adams
bedafb8fae varregion: refactor use of 'double heightmap[,]' into references to new class TerrainData
and push the implementation from Scene into the database readers and writers.
2015-03-27 19:32:50 -07:00
Justin Clark-Casey (justincc)
4717132b82 Use using constructs on disposable io objects in LLRaw to ensure they are always closed even if an exception is thrown. 2015-02-28 00:41:11 +00:00
Justin Clark-Casey (justincc)
3c92a8e765 Add OpenSim.Framework using statement necessary to get previous fad4d4dc to compile. 2015-02-28 00:34:07 +00:00
Magnuz Binder
fad4d4dc55 Permit loading of LLRAW files bigger than 256x256 by calculating size based on file size rather than assuming 256x256, same as for RAW32. 2015-02-28 00:26:58 +00:00
Dev Random
d3b43a96fb Add 'terrain feature' command 2014-11-19 18:18:18 +00:00
Justin Clark-Casey (justincc)
a4107cb6c7 In TerrainModule, lock m_perClientPatchUpdates when removing entries.
This may have been the trigger CheckSendingPatchesToClients() dictionary out of sync exceptions in today's load test.
Don't need to check ContainsKey() since Remove() returns false on a request to remove a key that it doesn't have
2014-07-29 23:39:10 +01:00
Robert Adams
b81187db5a Set "[Terrain]SendTerrainUpdatesByViewDistance=true" by default.
This, by default, enables terrain patches being sent to each avatar
from the avatar away (rather than the old outside-in pattern), only
sending terrain patches within the avatars view distance (making
view loading quicker), and sending multiple terrain patches per
protocol packet (making terrain loading and editing quicker).
2014-07-20 10:56:52 -07:00
Robert Adams
0aa0dad478 Send multiple terrain patches per terrain update packet if terrain
draw distance optimization is enabled. Makes terrain editting a lot
snappier.
2014-06-01 19:23:49 -07:00
Robert Adams
0300ec45eb Modifications to debugging printouts. No functional changes. 2014-05-31 12:19:51 -07:00
Robert Adams
22dade6463 varregion: More tweeking to only sending patches within avatar draw distance.
Still has problems with child avatars.
2014-05-31 12:19:50 -07:00