aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-30Renamed VERSION_NUMBER to VersionNumberDiva Canto1-1/+1
2014-12-30This cleans up versioning. Specifically:Diva Canto1-1/+1
- It establishes 4 digits for opensim versions - It uses the same number between opensim releases and mono addins versions It also eliminates the last addin.xml files that were still there, for consistency.
2014-12-30WARNING: BREAKING CHANGES FOR REGION MODULE DEVELOPMENT.Diva Canto3-0/+7
This cleans up Opensim's use of mono addins. In particular, the extension points /OpenSim/RegionModules and /OpenSim/WindModule moved from OpenSim.exe to OpenSim.Region.Framework.dll. From here on, developers of region modules should declare their dlls to be dependent on OpenSim.Region.Framework, starting with version 0.8.1 Additional changes: - Addins version uniformly updated to 0.8.1. These numbers should be compatible with the release numbers or else it becomes very confusing. - Mono addins directives moved from files addins.xml to embedded directives in the class and assembly declarations, to make it all consistent
2014-12-25Allow for richer semantics of object derez. Specifically, allow the ↵Diva Canto2-13/+54
existence of region modules that do other kinds of garbage collection. Instead of placing deleted objects in the user's Trash folder, or deleting them immediately (UseTrashOnDelete = false), a module may decide to take garbage collection under its control. For example, it may place derezzed objects in a certain area inworld and delete them later.
2014-12-17Fix recent regression where a race condition meant SP.MakeRootAgent() would ↵Justin Clark-Casey (justincc)1-32/+29
sometimes look to start attachment scripts before ETM.HandleIncomingSceneObject() had added them. Probably a regression since ghosts branch merge on Nov 26 2014
2014-12-05refactor: rename IteratingUuidGather.AddAssetUuidToInspect() and ↵Justin Clark-Casey (justincc)1-114/+119
RecordAssetUuids() to AddForInspection() as this properly describes what both of these methods do.
2014-12-04refactor: Make IteratingUUIDGatherer take a dictionary in its constructor ↵Justin Clark-Casey (justincc)1-9/+23
like UUIDGatherer, so we can deal with future cases where the dictionary may already be pre-populated.
2014-12-04Allow scripts in attachments on an owned NPC to call NPC functions on that NPCJustin Clark-Casey (justincc)1-0/+11
2014-12-03Remove long unused region parameters from SceneBase. Some of these weren't ↵Justin Clark-Casey (justincc)2-5/+0
even being set. Region parameters come from Scene.RegionInfo instead.
2014-12-03minor: Just have one message that displays successful registration of a ↵Justin Clark-Casey (justincc)1-5/+5
region with its parameters rather than 2
2014-11-29Halve the prediction lag for region crossing to improve most flying region ↵Justin Clark-Casey (justincc)1-2/+2
crossings without degrading the walk cross experience (neither of which have been that great anyway).
2014-11-29Somewhat improve avatar region crossings by properly preserving velocity ↵Justin Clark-Casey (justincc)1-20/+24
when avatar enters the new region. This commit addresses the following issues were causing velocity to be set to 0 on the new region, disrupting flight in particular * Full avatar updates contained no velocity information, which does appear to have some effect in testing. * BulletSim was always setting the velocity to 0 for the new BSCharacter. Now, physics engines take a velocity parameter when setting up characters so we can avoid this. This patch applies to both Bullet and ODE.
2014-11-25refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)2-17/+17
thread and run work in the jobengine from Watchdog to a WorkManager class. This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management. Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget. Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere
2014-11-25Move conditionals which control whether a task is placed in the JobEngine ↵Justin Clark-Casey (justincc)1-43/+25
inside Watchdog.RunJob() (renamed from RunWhenPossible) and generalize them.
2014-11-25When processing incoming attachments via HG, if a request for uuid gathering ↵Justin Clark-Casey (justincc)1-3/+18
or final asset import takes too long remove remaining requests from same user to prevent hold up of other user's incoming attachments. This improves upon the earlier naive simply queueing immplementation. Threshold is 30 seconds. If this happens to a user they can relog and fetch will be reattempted.
2014-11-25Introduce an IteratingUuidGatherer where each fetch from the asset service ↵Justin Clark-Casey (justincc)1-44/+563
(iteration) can be controlled by the caller. This is to enable an imminent change where incoming HG scene object fetching can assess the time taken by each request rather than being forced to perform all requests in one call. Soon, this will replace the existing UuidGatherer since it is both simpler and more flexible.
2014-11-25Add naive implementation of controlled incoming HG attachments to manage load.Justin Clark-Casey (justincc)2-52/+4
Instead of processing all incoming attachment scene object concurrently, process them consecutively to eliminate potential overload from this source. This is a naive implementation because it does not currently account for slow foreign asset services. Although it may take longer, this approach may also improve attachment visibility for HG avatars since the scene object is now always added to the scene after receiving assets from the foreign service and not before.
2014-11-25Label all threadpool calls being made in core OpenSimulator. This is to add ↵Justin Clark-Casey (justincc)2-5/+10
problem diagnosis. "show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats.
2014-11-25Add "wearables check" console commandJustin Clark-Casey (justincc)1-64/+158
This checks that all the wearable assets and any assets for a given logged in avatar exist in the asset service
2014-11-25minor: Correct letter accidentally added to copyright notice on top of ↵Justin Clark-Casey (justincc)1-1/+1
Scene.cs (almost five years ago!)
2014-11-25In Scene.AddNewAgent(), avoid a situation where an exception can result in a ↵Justin Clark-Casey (justincc)1-11/+23
client being added to the manager without IClientAPI.SceneAgent being set. This is done by adjusting the order of code so that SceneAgent will always be set before adding the client. Various parts of the code (rightly) assume that a a client registered to the manager will always have a SceneAgent set no matter what.
2014-11-25If JobEngine is active, then use it to copy/rez attachments for an avatar ↵Justin Clark-Casey (justincc)1-22/+62
entering the scene that isn't initially logging on. This will execute tasks consecutively rather than concurrently. This has two aims 1) Reduce initial teleport failures when a foreign Hypergrid user enters a region by not holding up the teleport for attachment rez (this can be particularly costly when HG gets all assets in the object graph. 2) Reduce server load that may impact other simulator activities. This complements existing JobEngine options that perform initial login attachment rez and appearance send in consecutive tasks.
2014-11-25refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)25-25/+0
package rather than some in OpenSim.Tests.Common.Mock the separate mock package was not useful and was just another using line to always add
2014-11-25Eliminate a few unnecessary calculations in the maintenance loop.Justin Clark-Casey (justincc)1-7/+17
Also uses wait event instead of sleep for periodicity control.
2014-11-25Fix recent minor regression where the default frame time wasn't being set if ↵Justin Clark-Casey (justincc)1-2/+1
there was no startup config section. Caused some regression tests to fail.
2014-11-25Improve frame time stability by taking a few unnecessary repeated ↵Justin Clark-Casey (justincc)2-21/+42
calculations out of the main scene loop. Also uses a wait event to sleep rather than a Thread.Sleep to allow the loop to be interrupted in a more controlled manner when necessary.
2014-11-25Set ThreadPriority on main scene thread to highest.Justin Clark-Casey (justincc)1-0/+1
This will only have an effect on Windows systems or mono with the (not recommended) mono-3.2.8 debug patch https://gist.github.com/justincc/31e52218d098529b4696 applied
2014-11-25Temporarily add root agent rez attachments work to job engine if it is ↵Justin Clark-Casey (justincc)1-4/+8
running rather than as a fire and forget. Experiment to see if serializing attachment rez and send initial data jobs improves other parts of sim performance.
2014-11-25Add experimental job engine to see if queueing some existing async work ↵Justin Clark-Casey (justincc)1-1/+1
during root agent entry to a region improves perf rather than always attempting to execute everything concurrently Job engine is controlled via "debug jobengine start|stop|status". Can only currently be enabled and disabled dynamically at runtime. Currently only applies to code sending initial region data (objects, other avatar data) to a client.
2014-11-19refactor: capitalize SOP.moveToTarget() and stopMoveToTarget() in accordance ↵Justin Clark-Casey2-4/+4
with code guidelines and the rest of the methods.
2014-11-19If calling llStopMoveToTarget() on an in-world prim, don't send an ↵Justin Clark-Casey1-2/+1
unnecessary object update if the prim was not moving to target. This involves making PhysicsActor.PIDActive get as well as set. On physics components that don't implement this (all characters and some phys engines) we return false.
2014-11-19Remove SOP.StopMoveToTarget scheduled update which is now being done in ↵Justin Clark-Casey1-3/+0
SOG.stopMoveToTarget() as of last commit 67e568
2014-11-19If llStopMoveToTarget() is called on an attachment, then stop the avatar if ↵Justin Clark-Casey1-5/+19
it was moving to target. Same behaviour as on Linden Lab grid. Will probably also address http://opensimulator.org/mantis/view.php?id=7369 by not generating spurious object updates when llStopMoveToTarget() is called in attachments where the avatar is not moving.
2014-11-11Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵Justin Clark-Casey1-8/+12
valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case.
2014-10-16Fix transferring inventory from prims to agent inventoryMelanie Thielker1-6/+11
2014-10-04Add LSL transaction_result event.Justin Clark-Casey (justincc)1-0/+1
This is cinderblocks' transaction_result.diff from http://opensimulator.org/mantis/view.php?id=7329 but I have used lsl.parser.cs and lsl.lexer.cs files generated directly from opensim-libs rather than those supplied in the patch. I also added scriptEvents.transaction_reuslt. The required parser/lexer generation file changes were made in commit d564f28 in the opensim-libs repo. Thanks!
2014-10-02Do not add attachments to the region scene object backup list.Justin Clark-Casey (justincc)1-2/+2
Attachment persistence is not handled in this way and this just results in a load of busy work until a check in each SOG terminates a backup check for attachments anyway.
2014-10-02Set appearance refresh to false by default.Justin Clark-Casey (justincc)1-1/+1
This setting was originally added some time ago to deal with issues where appearance was not received properly by all users. However, it does not scale well with large numbers of agents. Disabling to see if the original problem has abated or whether this will have to be tackled in another way.
2014-09-27Move expired objects cleaning trigger to the maintenance thread of a region ↵Justin Clark-Casey (justincc)1-20/+23
rather than it's main scene loop. [Startup] default setting UpdateTempCleaningEveryNFrames becomes UpdateTempCleaningEveryNSeconds. Default becomes 180s instead of effective 182s (which would also vary with any changes in frame time or extra long frames)
2014-09-26Make "generate map" console command also trigger upload to maptiles as well ↵Justin Clark-Casey (justincc)1-0/+37
as asset generation without performing tile generation twice.
2014-09-24Remove an unnecessary check at the bottom of Scene.CloseAgent()Justin Clark-Casey (justincc)1-7/+2
At this point sp != null so no check required.
2014-09-23Modifications to previous IAR commits to bring them more inline with ↵AliciaRaven1-5/+5
existing OpenSim code conventions. Also include new IAR save switch in console help print out.
2014-09-23Add an event callback for loading IAR files. The callback for creating them ↵AliciaRaven1-3/+24
already existed but not for loading. This is of interest for use by region modules. Also includes reporting numbers of items saved and items filtered to the completed log printout.
2014-09-23Change existing IAR save to use UUID for its callback reference instead of ↵AliciaRaven1-3/+4
Guid. This is for uniformity as discussed on IRC.
2014-09-17This fixes the Scene thread renaming issueBlueWall1-1/+0
2014-09-17Undo "Revert "Small changes to threading to send thread names to unmanaged ↵BlueWall1-1/+3
threads. Needs Mono 3.6+ to see thread names in utilities like top -H . Some formatting of the thread name to fin in the 16 byte limit on Linux. Please test on Windows to see if the work has any adverse effects."" Fix for break in next commit This reverts commit 376fab140227e92dbd841436509a97b87c9e7792.
2014-09-17Changes to be committed: modified: ↵Edward1-0/+15
OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs modified: OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs This solves mantis bug# 5005: llRegionSay script does not trigger ChatFromWorld event. This was solved by adding World.SimChat() command to the llRegionSay() function (per suggestion of DrCuriosity). Additionally this fixes llRegionSayTo() which was also not functioning by adding a World.SimChat() command and adding a new SimChatToAgent() overrided function to Scene.PacketHandlers.cs This is the second patch revision. Corrections made to the position of World.SimChat() and removal of tabs per suggestion by justincc.
2014-09-17Revert "Small changes to threading to send thread names to unmanaged ↵BlueWall1-3/+1
threads. Needs Mono 3.6+ to see thread names in utilities like top -H . Some formatting of the thread name to fin in the 16 byte limit on Linux. Please test on Windows to see if the work has any adverse effects." This reverts commit af286d5fcb688e8b64202b6deca4f249e9a2b6b8. Issue with Jenkins builds
2014-09-17Small changes to threading to send thread names to unmanaged threads. Needs ↵BlueWall1-1/+3
Mono 3.6+ to see thread names in utilities like top -H . Some formatting of the thread name to fin in the 16 byte limit on Linux. Please test on Windows to see if the work has any adverse effects.
2014-09-12Fix issues where setting llSetTextureAnim(FALSE... did not work properly).Justin Clark-Casey (justincc)1-11/+20
I ended up amalgamating patches from http://opensimulator.org/mantis/view.php?id=7313 and http://opensimulator.org/mantis/view.php?id=7318 Thanks a lot to both bobshaffer2 and cinderblocks.