aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-07-20Allow Megaregions to start properly after an unclean shutdownMelanie1-1/+1
2010-06-28Remove AgentID and GroupOD from the signature of SOG.Copy(). They were neverMelanie Thielker1-3/+3
used, but made for a very mispleading read of the code in the callers.
2010-06-28Fix Copy on Ray, Drag Copy and other little things. Removed the wrong andMelanie Thielker1-16/+2
nonworking ownership assignment in SOG, which messed things up before. No longer trust the client to send the ID of the person something is copied as, since it allows to run a script with someone else's permissions. Properly adjust inventory ownership and perms.
2010-06-09Bug fix on attachments: attach->drop->attach works now.Diva Canto1-0/+1
2010-06-08Reduce number of full updates sent on region crossing for attachments/huds ↵Justin Clark-Casey (justincc)1-1/+2
to 1 from 3 This is one step towards reducing hud glitches on region crossing, since the viewer fails to display prims if it receives child full updates before the root prim full update This commit also introduces a mechanism in LLClientView to stop child attachment updates ever going out before the root one This is a very temporary mechanism and will be commented out when the next step of the fix (to give root prims higher udpate priority) is committed This code is a foreport from the equivalent changes in 0.6.9-post-fixes
2010-06-01Fix prim returns I broke earlierMelanie Thielker1-1/+1
2010-06-01Split GetAxisAlignedBoundingBox into two methods to allow calculation ofMelanie Thielker1-3/+20
combined bounding boxes and offsets
2010-05-31Fix create selection getting overwritten by multiple updates for the same prim.Melanie Thielker1-1/+1
2010-05-21* Moving all of the prioritization/reprioritization code into a new file ↵John Hurliman1-100/+1
Prioritizer.cs * Simplified the interest management code to make it easier to add new policies. Prioritization and reprioritization share code paths now * Improved the distance and front back policies to always give your avatar the highest priority
2010-03-17Inconsistent locking of ScenePresence array in SceneGraph. Fixed by ↵Dan Lake1-7/+5
eliminating option to return the actual list. Callers can now either request a copy of the array as a new List or ask the SceneGraph to call a delegate function on every ScenePresence. Iteration and locking of the ScenePresences now takes place only within the SceneGraph class. This patch also applies a fix to Combat/CombatModule.cs which had unlocked iteration of the ScenePresences and inconsistent try/catch around the use of those ScenePresences.
2010-03-10Formatting cleanup. Add copyright notices.Jeff Ames1-3/+3
2010-03-03compiler warnings revealed that public PlaySoundSlavePrims properties were ↵Justin Clark-Casey (justincc)1-2/+2
changing the wrong protected fields. correcting these may resolve the sound problems seen recently on the mailing list, though not guaranteed.
2010-03-03refactor: push sog.SendPartFullUpdate() down into sop where it better belongsJustin Clark-Casey (justincc)1-33/+4
no functional changes
2010-03-03Fix bug where approximately half the time, attachments would rez only their ↵Justin Clark-Casey (justincc)1-7/+28
root prim until right clicked (or otherwise updated). The root cause of this problem was that multiple ObjectUpdates were being sent on attachment which differed enough to confuse the client. Sometimes these would eliminate each other and sometimes not, depending on whether the scheduler looked at the queued updates. The solution here is to only schedule the ObjectUpdate once the attachment code has done all it needs to do.
2010-02-22Formatting cleanup.Jeff Ames1-1/+1
2010-02-16minor: Make SOG.DelinkFromGroup() return the newly delinked scene object ↵Justin Clark-Casey (justincc)1-10/+25
instead of void
2010-02-14Revolution is on the roll again! :)Revolution1-35/+104
Fixes: Undo, T-pose of others on login, modifiedBulletX works again, feet now stand on the ground instead of in the ground, adds checks to CombatModule. Adds: Redo, Land Undo, checks to agentUpdate (so one can not fall off of a region), more vehicle parts. Finishes almost all of LSL (1 function left, 2 events). Direct flames and kudos to Revolution, please Signed-off-by: Melanie <melanie@t-data.com>
2010-02-08refactor: Reuse SceneObjectGroup.IsAttachmentCheckFull() in ↵Justin Clark-Casey (justincc)1-1/+10
Scene.AddSceneObject since this wraps a check that is much less clear
2010-02-02minor: add reminder to lock SOG.Children before using it directly in order ↵Justin Clark-Casey (justincc)1-2/+5
to avoid threading issues
2010-01-11Whitespace cleanupMelanie1-124/+124
2010-01-11Adds llRotTarget and the events at_rot_target and not_at_rot_target.Revolution1-3/+127
Signed-off-by: Melanie <melanie@t-data.com>
2009-12-31Readds llCollisionFilter and adds llPassCollision.Revolution1-0/+11
Applied with whitespace cleanup Signed-off-by: Melanie <melanie@t-data.com>
2009-12-31Readds llCollisionFilter and adds llPassCollision.Revolution1-0/+11
Applied with whitespace cleanup Signed-off-by: Melanie <melanie@t-data.com>
2009-12-22Glue code for a couple of new LSL function implementationsMelanie1-0/+39
2009-12-06Remove extra forced updates. They're not needed for each prim. Really.Melanie1-8/+8
2009-12-06Eliminate multiple updates on link/unlinkMelanie1-4/+4
2009-12-03* Fixes the 10x10x10 hard physics limitation. (wierdly, you have to set ↵Teravus Ovares (Dan Olivares)1-1/+3
this for each region in your Regions.ini[PhysicalPrimMax = 10(default)]) * Adds a configurable maximum object mass before the mass is clamped. Default is 10000.01. Configurable by changing maximum_mass_object in the [ODEPhysicsSettings] section. * Clamping the mass is important for limiting the amount of CPU an object can consume in physics calculations. Too high, and the object overcomes restitution forces by gravity alone. This generates more collisions potentially leading to 'deep think'.
2009-11-27Reset update flag when a SOG is deleted. This fixes llDie();Melanie1-0/+1
2009-11-26Remove the old (Remoting) region crossing code. Fix the new code toMelanie1-11/+0
pass script state and assembly again properly. Reintroduce respecting tht TrustBinaries flag. Changes the interregion protocol! No version bump because it was broken anyway, so with a version mismatch it will simply stay broken, but not crash. Region corssing still doesn't work because there is still monkey business with both rezzed prims being pushed across a border and attached prims when walking across a border. Teleport is untested by may work.
2009-11-14Make GroupRootUpdate be a terse update. This method is not used by opensim ↵Diva Canto1-2/+2
(it should), but it's used by external modules.
2009-11-04Removing EntityBase.RotationJohn Hurliman1-0/+8
2009-11-02Another race condition fix in SceneObjectGroupJohn Hurliman1-7/+11
2009-10-28Small performance tweaks to code called by the heartbeat loopJohn Hurliman1-15/+2
2009-10-28Always send a time dilation of 1.0 while we debug rubberbanding issuesJohn Hurliman1-2/+2
2009-10-26Experimental change of PhysicsVector to Vector3. UntestedJohn Hurliman1-14/+12
2009-10-25Changing Scene.ForEachClient to use the synchronous for loop instead of ↵John Hurliman1-1/+1
Parallel. This is quite possibly the source of some deadlocking, and at the very least the synchronous version gives better stack traces * Lock the LLUDPClient RTO math * Add a helper function for backing off the RTO, and follow the optional advice in RFC 2988 to clear existing SRTT and RTTVAR values during a backoff * Removing the unused PrimitiveBaseShape.SculptImage parameter * Improved performance of SceneObjectPart instantiation * ZeroMesher now drops SculptData bytes like Meshmerizer, to allow the texture data to be GCed * Improved typecasting speed in MySQLLegacyRegionData.BuildShape() * Improved the instantiation of PrimitiveBaseShape
2009-10-23Implemented a "FrontBack" prioritizer, using distance plus the plane ↵John Hurliman1-3/+30
equation to give double weight to prims/avatars in front of you
2009-10-23Experimental change to use an immutable array for iterating ScenePresences, ↵John Hurliman1-2/+2
avoiding locking and copying the list each time it is accessed
2009-10-19* Change Util.FireAndForget to use ThreadPool.UnsafeQueueUserWorkItem(). ↵John Hurliman1-1/+1
This avoids .NET remoting and a managed->unmanaged->managed jump. Overall, a night and day performance difference * Initialize the LLClientView prim full update queue to the number of prims in the scene for a big performance boost * Reordered some comparisons on hot code paths for a minor speed boost * Removed an unnecessary call to the expensive DateTime.Now function (if you *have* to get the current time as opposed to Environment.TickCount, always use DateTime.UtcNow) * Don't fire the queue empty callback for the Resend category * Run the outgoing packet handler thread loop for each client synchronously. It seems like more time was being spent doing the execution asynchronously, and it made deadlocks very difficult to track down * Rewrote some expensive math in LandObject.cs * Optimized EntityManager to only lock on operations that need locking, and use TryGetValue() where possible * Only update the attachment database when an object is attached or detached * Other small misc. performance improvements
2009-10-15Object update prioritization by Jim Greensky of Intel Labs, part one. This ↵John Hurliman1-1/+73
implements a simple distance prioritizer based on initial agent positions. Re-prioritizing and more advanced priority algorithms will follow soon
2009-10-13Optimized heartbeat by calling Update() only on updated objects.Dan Lake1-9/+6
During the heartbeat loop, Update() is called on every SceneObjectGroup which in turn checks if any SceneObjectPart has changed. For large regions (> 100k prims) this work consumes 20-30% of a CPU even though there are only a few objects updating each frame. There is only one other reason to check every object on every frame, and that is the case where a script has registered the object with an "at target" listener. We can easily track when an object is registered or unregistered with an AtTarget, so this is not a reason to check every object every heartbeat. In the attached patch, I have added a dictionary to the scene which tracks the objects which have At Targets. Each heartbeat, the AtTarget() function will be called on every object registered with a listener for that event. Also, I added a dictionary to SceneGraph which stores references to objects which have been queued for updates during the heartbeat. At each heartbeat, Update() is called only on the objects which have generated updates during that beat.
2009-10-02- cleaning up LandData/ILandObject capitalization issuesdr scofield (aka dirk husemann)1-6/+6
- adding LandDataSerializer to OAR mechanics
2009-10-02Revert "* Adding Scale to EntityBase * Fixing the incorrect initialization ↵Melanie1-23/+7
of EntityBase.Rotation * Removed SceneObjectGroup.GroupRotation and added overrides for Scale/Rotation/Velocity" This reverts commit 39842eb4af3b5a8c52d56c0f7f05ad54f0651bb0.
2009-10-02Revert "* Adding Scale to EntityBase * Fixing the incorrect initialization ↵Melanie1-23/+7
of EntityBase.Rotation * Removed SceneObjectGroup.GroupRotation and added overrides for Scale/Rotation/Velocity" This reverts commit 39842eb4af3b5a8c52d56c0f7f05ad54f0651bb0.
2009-10-01Formatting cleanup.Jeff Ames1-1/+1
2009-09-30Commit initial version of KittoFlora's vehicle changesopensim1-15/+27
2009-10-01Formatting cleanup.Jeff Ames1-12/+12
2009-09-25* Does a full battery of tests to ensure that the object isn't an attachment ↵Teravus Ovares (Dan Olivares)1-1/+6
before border crossing * Fixes 'Inconsistent Attachment State' when teleporting into another region besides the SW most region slot on a MegaRegion. * Fixes a host of other unintended attachment border cross edge cases that lead to Inconsistent attachment state.
2009-09-16* Adding Scale to EntityBase * Fixing the incorrect initialization of ↵John Hurliman1-7/+23
EntityBase.Rotation * Removed SceneObjectGroup.GroupRotation and added overrides for Scale/Rotation/Velocity
2009-09-16SceneObjectGroup cleanup. Removes the default constructor and unnecessary ↵John Hurliman1-82/+28
null checks on m_rootPart