aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-10-18* Rewrote the methods that build ObjectUpdate and ImprovedTerseObjectUpdate ↵John Hurliman1-3/+3
packets to fill in the data more accurately and avoid allocating memory that is immediately thrown away * Changed the Send*Data structs in IClientAPI to use public readonly members instead of private members and getters * Made Parallel.ProcessorCount public * Started switching over packet building methods in LLClientView to use Util.StringToBytes[256/1024]() instead of Utils.StringToBytes() * More cleanup of the ScenePresences vs. ClientManager nightmare * ScenePresence.HandleAgentUpdate() will now time out and drop incoming AgentUpdate packets after three seconds. This fixes a deadlock on m_AgentUpdates that was blocking up the LLUDP server
2009-10-15Object update prioritization by Jim Greensky of Intel Labs, part one. This ↵John Hurliman1-4/+4
implements a simple distance prioritizer based on initial agent positions. Re-prioritizing and more advanced priority algorithms will follow soon
2009-10-15* Removed some of the redundant broadcast functions in Scene and SceneGraph ↵John Hurliman1-11/+1
so it is clear who/what the broadcast is going to each time * Removed two redundant parameters from SceneObjectPart * Changed some code in terse update sending that was meant to work with references to work with value types (since Vector3 and Quaternion are structs) * Committing a preview of a new method for sending object updates efficiently (all commented out for now)
2009-10-04disable physics actors for flexible primsdahlia1-3/+4
2009-10-01Formatting cleanup.Jeff Ames1-3/+3
2009-10-01Formatting cleanup.Jeff Ames1-9/+9
2009-09-29 This fix addresses the problem where phantom objects do notAlan M Webb1-1/+1
always behave like they are phantom, and llVolumeDetect seems to operate in a random fashion. Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
2009-09-29Add copyright header. Formatting cleanup.Jeff Ames1-1/+1
2009-09-17 While running a test case I had written to pursue problems withAlan M Webb1-113/+152
llDie() not always completely working, I discovered I was getting a lot (60+ over 6000 iterations of the test case) null pointer exceptions in various physics related checks in SceneObjectPart. It was apparent that the (frequent) checks for PhysActor being non-null is an insufficient protection in a highly asynchronous environment. The null reference exceptions are one example of failure, but it could also happen that a sequence started with one instance of a PhysicsActor might finish with another? Anyway, I have implemented a safer mechanism that should stop the errors. I re-ran my test case with the fix in place, and completed nearly 1000 iterations without a single occurrence. SceneObjectPart is seriously in need of rejigging, if not for this reason, then for its ridiculous size. Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
2009-09-09* Lock timers when Calling Start() and Stop() when the Thread Context is ↵Teravus Ovares (Dan Olivares)1-0/+2
murky. This affects Mono only.
2009-08-29* Fix the reason why physical vehicles have a problem in virtual regions.Teravus Ovares (Dan Olivares)1-1/+2
2009-08-16Misc cleanup.Jeff Ames1-27/+25
2009-08-15Changed FromAssetID to FromItemIDDiva Canto1-3/+3
2009-08-13Formatting cleanup. Fix some compiler warnings.Jeff Ames1-26/+23
2009-08-07Another stab at cmickeyb's patch for script GC.Melanie1-8/+8
Moved the Close() for the appdomain-hosted parts into a new destructor on ScriptInstance.
2009-08-07Revert the XEngine memleak patch, it causes premature GC.Melanie1-8/+8
This matches behavior seen with an earlier attempt to do this, apparently the sponsor mechanism does't work in Mono
2009-08-06|From: James J Greensky <jame.j.greensky@intel.com>Melanie1-8/+8
|Date: Wed, 5 Aug 2009 09:51:52 -0700 |Subject: [PATCH] Closed two major memory leaks for scripted objects | |Two major memory leaks for the scripted objects were fixed |- One leak had to do with remoting acrossing app domains. When a script and | its controlling agent communicate across an application boundary, it calls | functions on a stub proxy object that then invokes the remote method on | the object in the other app domain. These stub objects (two for each script) | were setup to have infinate lifetimes and were never being garbage collected. |- The second leak was the result of adding a scene object part instance method | to a scene event and never removing it. This cause the event's delegate list | to maintain a link to that object which is then never freed as the scene event | object is never destroyed. Patch applied, please direct feedback to me. Possible issue: Longtime idle scripts like vendors may fail.
2009-08-04Add plumbing for the SceneObjectDeleter to wait for the script engine toMelanie1-0/+5
allow final deletion of objects. Meant to support the attach(NULL_KEY) event,
2009-07-15A stab at implementing llSetDamage. Not persistent.Melanie Thielker1-0/+9
2009-06-26Extracted the code that handles the sending of prim updates to the client, ↵MW1-4/+4
from ScenePresence into ISceneViewer/SceneViewer. Currently ScenePresence "has" a ISceneViewer, although if we had a proper Node based scenegraph then it would most likely be attached directly to the nodes. By extracting this code, it should make it easier to experiment with different ways of managing the update process. [Next step to make this module based, could be to create a SceneViewerFactoryModule]
2009-06-10Formatting cleanup.Jeff Ames1-2/+2
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames1-1/+1
LICENSE.txt.
2009-05-29* refactor: little tweaks to trigger another buildJustin Clarke Casey1-4/+15
2009-05-29* Add save xml2 serialization testJustin Clarke Casey1-0/+2
2009-05-29reinstate a hopefully more robust experimental decoded sculpt map caching schemeDahlia Trimble1-2/+2
2009-05-29disable sculpt map caching until a better method of avoiding asset requests ↵Dahlia Trimble1-1/+3
can be found
2009-05-29null test for texture assets when using cached sculpt mapDahlia Trimble1-2/+3
addresses mantis #3735
2009-05-29Experimental decoded sculpt map cachingDahlia Trimble1-1/+1
2009-05-27From: Chris Yeoh <cyeoh@au1.ibm.com>Dr Scofield1-1/+14
The attached patch implements llPassTouches. It has been added to the export/import XML along with the flag for AllowedInventoryDrop. The MySQL backend has been updated as well, though I haven't done one of those before so could do with a check. I added the migration mysql file as well. The other data backends need updating as well.
2009-05-25Revert "From: Chris Yeoh <cyeoh@au1.ibm.com>"Dr Scofield1-14/+1
This reverts r9666. for some reason the mysql update does not work.
2009-05-25From: Chris Yeoh <cyeoh@au1.ibm.com>Dr Scofield1-1/+14
The attached patch implements llPassTouches. It has been added to the export/import XML along with the flag for AllowedInventoryDrop. The MySQL backend has been updated as well, though I haven't done one of those before so could do with a check. I added the migration mysql file as well. The other data backends need updating as well.
2009-05-15Heart surgery on asset service code bits. Affects OpenSim.ini configuration ↵diva1-4/+12
-- please see the example. Affects region servers only. This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing. Known problems: * HG asset transfers are borked for now * missing texture is missing * 3 unit tests commented out for now
2009-05-04* minor: remove some mono compiler warnings, minor cleanupJustin Clarke Casey1-1/+1
2009-04-25Thank you kindly, RemedyTomm, for a patch that fixes:Charles Krinke1-1/+4
llSetPrimitiveParams in a large linkset can disrupt the entire region. However, when the script is in a large linkset, it appears to totally lag out the scene and stops updates from being sent.
2009-04-20* Allow passing of material type to physics engineTeravus Ovares1-1/+8
* Define low friction and medium bounce for Glass
2009-04-10Handle ObjectSpin* packets to spin physical prims on Ctrl+Shift+Dragnlin1-0/+5
Addresses Mantis #3381 The current implementation works as expected if the object has no rotation or only rotation around the Z axis; you can spin the object left or right (around the world Z axis). It works a little unexpectedly if the object has a non-Z-axis rotation; in this case the body is spun about its local Z axis, not the world Z-axis. (But SL also behaves oddly with a spin on an arbitrarily rotated object.)
2009-03-27* This updates LibOMV to the current release 0.6.0 on March 19 2009Teravus Ovares1-1/+1
* Important: HttpServer.dll was changed to HttpServer_OpenSim.dll so that the HttpServer references do not conflict if you've copied the OpenMetaverse.Http.dll and requirements to the OpenSimulator bin folder. This means that if you reference HttpServer.dll in any projects, you will need to change the reference to HttpServer_OpenSim.dll. It still uses the Same HttpServer namespace though.
2009-03-27* refactor: call some EventManager triggers directly rather than through sceneJustin Clarke Casey1-5/+2
2009-03-11add a taint to SOP.UpdateShape() - addresses Mantis #3277Dahlia Trimble1-0/+1
2009-03-06Fixes Mantis #3260. Thank you kindly, MCortez for a patch that:Charles Krinke1-0/+17
llSetHoverHeight() should not clamp the x/y position of an object the way MoveTo does, and it should recalculate the absolute height to hover at as an object moves to reflect the current ground/water height under it. Correctly implementing required adjusting the Physics interfaces and implementing at the physics plug-in level. The attached is a patch that correctly implements llSetHoverHeight() including updates to the ODE physics plug-in.
2009-03-05* remove now unused serialization codeJustin Clarke Casey1-124/+1
2009-02-25* Refactored SOP.FolderID weirdness by removing calls to empty setter. YEs, ↵lbsa711-1/+3
I do realize the setter has to be there for legacy reasons, but since the calls will never acually DO anyhting, I'm removing them. * So, SOP.FolderID is actually a cruft field that should be removed.
2009-02-22Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:Charles Krinke1-9/+9
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
2009-02-20* Consistently lock part.TaskInventory as pointed out in ↵Justin Clarke Casey1-13/+21
http://opensimulator.org/mantis/view.php?id=3159 * Not locking causes enumeration exceptions as described in this matis * part.TaskInventory needs to be locked for every access as it's a dictionary * Extra locking will hopefully not cause any major issues - in places where the enumeration of the dictionary performs other lock or long running operations, the dictionary is cloned instead
2009-02-16* refactor: remove AssetCache field hanging off SceneJustin Clarke Casey1-3/+5
* This is always available at Scene.CommsManager.AssetCache
2009-02-06This changeset is the step 1 of 2 in refactoringDr Scofield1-3/+3
OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
2009-02-03* minor: remove some pointless assignments in SOG.Copy() that had already ↵Justin Clarke Casey1-1/+1
been done by MemberwiseClone()
2009-01-18Subscribe to collision events if needed when turning an object to ↵idb1-0/+10
non-phantom from phantom. Fixes Mantis #1883
2009-01-15Added a taint to the sculpt texture callback in an attempt to mitigate ↵Dahlia Trimble1-0/+2
Mantis #2908. Thanks Teravus for the suggestions :)
2009-01-14Improve parsing of joint parameters for NINJA physics (Mantis #2966). nlin1-1/+1
Multiple spaces or leading/trailing spaces when specifying the prims to connect should no longer cause problems.