aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into vehiclesMelanie2009-10-151-19/+9
|\
| * Optimized heartbeat by calling Update() only on updated objects.Dan Lake2009-10-131-19/+9
| | | | | | | | | | | | | | | | 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.
| * Revert "Rewrote parts of the code that were double-locking different ↵Melanie2009-10-071-23/+13
| | | | | | | | | | | | objects. This is about half of the code base reviewed." This reverts commit e992ca025571a891333a57012c2cd4419b6581e5.
| * Rewrote parts of the code that were double-locking different objects. This ↵Diva Canto2009-10-061-13/+23
| | | | | | | | is about half of the code base reviewed.
* | Merge branch 'master' into vehiclesMelanie2009-10-011-1/+18
|\ \ | |/
| * Formatting cleanup.Jeff Ames2009-10-011-1/+1
| |
| * A little hack to see if this fixes the problems with ~20% of SOG's becoming ↵Diva Canto2009-09-291-0/+17
| | | | | | | | phantom after an import to megaregions.
* | Commit initial version of KittoFlora's vehicle changesopensim2009-09-301-3/+3
|/
* Thank you, dslake, for a set of patches to improve OpenSim startupMelanie2009-09-021-2/+2
| | | | and idle performance.
* Removed some debug messagesDiva Canto2009-08-161-7/+0
|
* Making attachments work again. Tons of debug more. This needs more testing ↵Diva Canto2009-08-161-1/+12
| | | | and a lot of cleaning.
* Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim into ↵Diva Canto2009-08-161-10/+7
|\ | | | | | | inventory-connector
| * Misc cleanup.Jeff Ames2009-08-161-10/+7
| |
* | Changed one word in a commentDiva Canto2009-08-151-1/+1
| |
* | Changed FromAssetID to FromItemIDDiva Canto2009-08-151-7/+7
| |
* | Redirected all calls to CachedUserProfile methods to the inventory service. ↵Diva Canto2009-08-121-2/+2
|/ | | | Redirection of the RootFolder property is still todo. This compiles but probably inventory will be inconsistent.
* Slight change to state management for attach scheduling.Alan Webb2009-08-041-2/+2
| | | | Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
* This change adds support for the attach event in scripts.Alan Webb2009-08-041-0/+2
| | | | | | | | | | | | | | | | | | | [1] Added a new OnAttach event to Scene/EventManager [2] Hooked up existing attach event handler in XEngine. [3] Modified SceneGraph and Scene.Inventory to trigger attach events at the appropriate places. I was forced to distribut the changes across two files because of the way attach processing is distributed across the two files. [4] In the case of RezSingleAttachmentFromInventory it is necessary to handle event scheduling in a special way. There is no synchronous path available, so the fact that this object is attached, and who it is attached to, is cached when the ScriptInstance is created. When the script is started, the attached handler is driven after on_rez (but before changed, this should be reviewed). Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
* fixed the bug where changing the rotation of a selection of prims in a ↵MW2009-07-171-0/+19
| | | | | | | | | linkset, made each of those prims rotate around its own centre rather than around the geometric centre of the selection like they should do (and like the client expects). This involved adding a new OnUpdatePrimSingleRotationPosition event to IClientAPI so that we can get the changed position from the client. Btw adding new events to IClientAPI is really tedious where you have to copy the change across to at least 5 or 6 other files. [Note this doesn't fix the bug where any rotation changes to the root prim (but not the whole linkset) cause rotation errors on the child prims.]
* Explicitly set the changed status of the prim groups affected in a delinkMelanie Thielker2009-06-021-0/+1
| | | | | | Mantis #2484
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-011-1/+1
| | | | LICENSE.txt.
* Add a tweakable for the prim queue preloadMelanie Thielker2009-05-011-0/+1
|
* Again, completely revamp the unlink code to finally allow unlinking Melanie Thielker2009-04-291-79/+81
| | | | | | | | arbitrary combinations of root and child prims from one or multiple link sets. Please test throughly and consider things UNSTABLE until this is proven out.
* Formatting cleanup.Jeff Ames2009-04-141-5/+5
|
* Thank you, dslake, for a patch that converts many of the linear searchesMelanie Thielker2009-04-121-241/+197
| | | | | | | | in SceneGraph to fast dictionary lookups. Includes a regression fix for attachments by myself. Fixes Mantis #3312
* Handle ObjectSpin* packets to spin physical prims on Ctrl+Shift+Dragnlin2009-04-101-0/+41
| | | | | | | | | | | | | | 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.)
* * Implements retrieving child primitives via World.Objects[id] (MRM)Adam Frisby2009-04-091-0/+3
| | | | | | * Optimizes SceneGraph - fetches on primitives via "GetGroupByPrim" wont search the entire list if the primitive is infact the root. (Core) * Updates Test MRM.
* * refactor: Move god related methods in Scene out to a moduleJustin Clarke Casey2009-03-301-1/+1
|
* Change DropObject to public. Fixes Mantis #3314Melanie Thielker2009-03-201-1/+1
|
* From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield2009-03-101-0/+17
| | | | | | This commit fixes the attachment position problem described in OpenSim Mantis 2841 (and a couple of duplicate tickets).
* This started as way to correct Mantis #3158, which I believe should be fixed ↵diva2009-02-151-1/+1
| | | | now. The flying status was temporarily being ignored, which caused the avie to drop sometimes -- there was a race condition. In the process it also fixes that annoying bug in basic physics where the avie would drop half-way to the ground upon region crossings (SetAppearance was missing). Additionally, a lot of child-agent-related code has been cleaned up; namely child agents are now consistently not added to physical scenes, and they also don't have appearances. All of that happens in MakeRoot, consistently.
* Moved prim crossing out of OGS1 and into RESTComms and ↵diva2009-02-091-0/+1
| | | | | | | | | | LocalInterregionComms. This breaks interregion comms with older versions in what concerns prim crossing. In the process of moving the comms, a few things seem to be working better, namely this may address mantis #3011, mantis #1698. Hopefully, this doesn't break anything else. But I'm still seeing weirdnesses with attchments jumping out of place after a cross/TP. The two most notable changes in the crossing process were: * Object gets passed in only one message, not two as done before. * Local object crossings do not get serialized, as done before.
* This changeset is the step 1 of 2 in refactoringDr Scofield2009-02-061-0/+1814
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!