aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the whitespace in Scene.csOren Hurvitz2015-07-131-515/+515
| | | | The whitespace in this file was fubared recently
* Refactor AgentPreferences so that database operations happen centrally. the ↵Cinder2015-06-131-0/+11
| | | | | | opensim way. Signed-off-by: Diva Canto <diva@metaverseink.com>
* Merge branch 'master' into mosesMelanie Thielker2015-05-201-1/+8
|\ | | | | | | | | Conflicts: OpenSim/Region/Framework/Scenes/Scene.cs
| * New values returned by llGetEnvTalun2015-05-201-1/+7
| | | | | | | | | | | | | | | | Implements recent changes to llGetEnv region_cpu_ratio hardcoded to 1 region_product_sku hardcoded to OpenSim Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* | Removing duplicate definitionMichael Heilmann2015-05-191-2/+0
| |
* | Merging Opensim upstream before generating patchMichael Heilmann2015-05-191-7/+7
|\ \ | |/
| * Added in all metrics for Phase 1 except for Time Dilation.Steven Zielinski2015-04-291-1/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Test Plan: Tested on local opensim and firestorm. Not tested with JSON stats reporter. Reviewers: rlouden Reviewed By: rlouden Differential Revision: http://cr.irl.ucf.edu/D269 Signed-off-by: Diva Canto <diva@metaverseink.com>
* | Merge branch 'master' of https://github.com/M-O-S-E-S/opensim into ↵Glenn Martin2015-05-191-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | moses.metricsPhase2 Fixed conflicts. Conflicts: OpenSim/Region/Framework/Scenes/Scene.cs
| * | Changed the 10 value to be a constant value inside of the Scene called ↵Steven Zielinski2015-04-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | m_DefaultNumberFramesStored. Test Plan: Tested on windows with the json stats reporter. Reviewers: rlouden, kboswell, clattin, ssirigam, martin Reviewed By: rlouden, kboswell, clattin, ssirigam, martin Differential Revision: http://cr.irl.ucf.edu/D273
| * | Changed the 10 value to be a constant value inside of the Scene called ↵Steven Zielinski2015-04-281-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | m_DefaultNumberFramesStored. Test Plan: Tested on windows with the json stats reporter. Reviewers: rlouden, ssirigam, martin, kboswell, clattin Differential Revision: http://cr.irl.ucf.edu/D273
* | | Merge remote-tracking branch 'upstream/master' into moses.metricsPhase2Glenn Martin2015-05-011-0/+9
|\ \ \ | |/ / | | | | | | | | | | | | Conflicts: OpenSim/Region/Framework/Scenes/Scene.cs OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
| * | Added in all metrics for Phase 1 except for Time Dilation.Steven Zielinski2015-04-211-1/+103
| |/ | | | | | | | | | | | | | | | | | | | | | | Test Plan: Tested on local opensim and firestorm. Not tested with JSON stats reporter. Reviewers: rlouden Reviewed By: rlouden Differential Revision: http://cr.irl.ucf.edu/D269
* | Updated phase 2 to have the changes originally done in phase 1 for the ↵Steven Zielinski2015-04-301-5553/+5556
| | | | | | | | | | | | | | | | | | | | | | | | defaultNumberFramesStored. Test Plan: Tested using opensim standalone on windows with json stats. Reviewers: rlouden Reviewed By: rlouden Differential Revision: http://cr.irl.ucf.edu/D275
* | Phase 2 additons with Frame Dilation metric.Robert Louden2015-04-211-5674/+5696
| |
* | Moved over metrics from previous OpenSim 0.8.0.3 repository (this new ↵Glenn Martin2015-04-211-1/+107
|/ | | | repository is now the master branch from OpenSim).
* BulletSim: add VEHICLE_ more parameter value limit checking.Robert Adams2015-03-071-0/+4
| | | | | | This only bounds passed parameters as there is no good way of refusing the parameter setting. This mostly means that passing NaN's won't crash the simulator.
* Revert "Adding dynamic ossl permission control"BlueWall2015-02-271-61/+0
| | | | | This reverts commit a3681f3052fb5e98e31e7051329a5b748a8bdd8d until further testing. Jenkins now fails ossl tests.
* Adding dynamic ossl permission controlBlueWall2015-02-271-0/+61
| | | | | | | | | | | Add permission by identifying uuid (owner/creator/group) and function. Revoke permission in the same manner. Permission adjustments immediately effect running scripts ability to call os functions. osGrantScriptPermissions(UUID key,string function) Threat Level Severe osRevokeScriptPermissions(UUID key,string function) Threat Level Severe work sponsored by: Rage
* Remove long unused region parameters from SceneBase. Some of these weren't ↵Justin Clark-Casey (justincc)2014-12-031-1/+0
| | | | even being set. Region parameters come from Scene.RegionInfo instead.
* minor: Just have one message that displays successful registration of a ↵Justin Clark-Casey (justincc)2014-12-031-5/+5
| | | | region with its parameters rather than 2
* refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)2014-11-251-6/+6
| | | | | | | | 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
* Add naive implementation of controlled incoming HG attachments to manage load.Justin Clark-Casey (justincc)2014-11-251-52/+2
| | | | | | | 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.
* minor: Correct letter accidentally added to copyright notice on top of ↵Justin Clark-Casey (justincc)2014-11-251-1/+1
| | | | Scene.cs (almost five years ago!)
* In Scene.AddNewAgent(), avoid a situation where an exception can result in a ↵Justin Clark-Casey (justincc)2014-11-251-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.
* Eliminate a few unnecessary calculations in the maintenance loop.Justin Clark-Casey (justincc)2014-11-251-7/+17
| | | | Also uses wait event instead of sleep for periodicity control.
* Fix recent minor regression where the default frame time wasn't being set if ↵Justin Clark-Casey (justincc)2014-11-251-2/+1
| | | | | | there was no startup config section. Caused some regression tests to fail.
* Improve frame time stability by taking a few unnecessary repeated ↵Justin Clark-Casey (justincc)2014-11-251-19/+40
| | | | | | 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.
* Set ThreadPriority on main scene thread to highest.Justin Clark-Casey (justincc)2014-11-251-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
* Set appearance refresh to false by default.Justin Clark-Casey (justincc)2014-10-021-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.
* Move expired objects cleaning trigger to the maintenance thread of a region ↵Justin Clark-Casey (justincc)2014-09-271-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)
* Remove an unnecessary check at the bottom of Scene.CloseAgent()Justin Clark-Casey (justincc)2014-09-241-7/+2
| | | | At this point sp != null so no check required.
* This fixes the Scene thread renaming issueBlueWall2014-09-171-1/+0
|
* Undo "Revert "Small changes to threading to send thread names to unmanaged ↵BlueWall2014-09-171-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.
* Revert "Small changes to threading to send thread names to unmanaged ↵BlueWall2014-09-171-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
* Small changes to threading to send thread names to unmanaged threads. Needs ↵BlueWall2014-09-171-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.
* For monitoring purposes, start non-timeout tasks (which do not currently use ↵Justin Clark-Casey (justincc)2014-09-051-10/+7
| | | | | | | a threadpool) via Watchdog.RunInThread() rather than Util.RunThreadNoTimeout() The functionality is the same but this allow us to monitor such tasks via "show threads" and abort them for test purposes, etc. Also extends thread names to provide more info (e.g. SendInitialDataToClient says what client the task is for).
* Add [EntityTransfer] AllowAvatarCrossing setting to determine whether ↵Justin Clark-Casey (justincc)2014-09-031-0/+17
| | | | | | avatars are allowed to cross regions at all. Defaults to true. For test purposes.
* minor: Eliminate more unnecessary code copying individual parameters for ↵Justin Clark-Casey (justincc)2014-08-281-17/+19
| | | | Vector3 copying in Scene - this is not necessary as Vector3 is a value type
* Don't allow update timer to invoke another scene update if the previous is ↵Justin Clark-Casey (justincc)2014-08-261-1/+10
| | | | still active.
* Fix frame times when updating scene on timer.Justin Clark-Casey (justincc)2014-08-261-15/+17
|
* Implement experimental non-default mechanism to update scene via a timer ↵Justin Clark-Casey (justincc)2014-08-261-34/+60
| | | | | | | | rather than a persistent thread with sleep. This is to see if an inaccuracy in sleep times under load is responsible for increase in frame times even when there is spare time still available. Can currently only be activated by setting "debug scene set update-on-timer true". Can be switched between timer and thread with sleep updates whilst the scene is running.
* Make RootTerseUpdatePeriod and ChildTerseUpdatePeriod configurable in ↵Justin Clark-Casey (justincc)2014-08-141-0/+3
| | | | | | | | | | [InterestManagement] in OpenSim.ini for experimental purposes. If n > 1 for RootTerseUpdatePeriod only every n terse update is actually sent to observers on same region, unless velocity is effectively zero (to stop av drift). If n > 1 for ChildTerseUpdatePeriod only every n terse update is sent to observers in other regions, unless velocity is effectively zero. Defaults are same as before (all packets are sent). Tradeoff is reduction of UDP traffic vs fidelity of observed av mvmt. Increasing n > 1 leads to jerky observed mvmt immediateley for root, though not on child, where experimentally have gone to n = 4 before jerkiness is noticeable.
* Make some existing reprioritization values changeable outside the scene for ↵Justin Clark-Casey (justincc)2014-08-141-15/+18
| | | | | | test purposes, and use more consise property syntax. No functional change.
* Change RootRotationUpdateTolerance from 0.01 to 0.1 in code as well.Justin Clark-Casey (justincc)2014-08-081-1/+1
|
* Fixed crash when using Allowed/Denied Viewers, and the viewer's name is ↵Oren Hurvitz2014-08-061-2/+2
| | | | | | shorter than one of the test strings This fixes http://opensimulator.org/mantis/view.php?id=7294
* Add RootPositionUpdateTolerance, RootRotationUpdateTolerance, and ↵Justin Clark-Casey (justincc)2014-08-061-0/+7
| | | | | | | RootVelocityUpdateTolerance parameters to [InterestManagement] in OpenSimDefaults.ini These govern when AgentUpdates are sent to observers on position, rotation and velocity changes to an avatar (including the avatar themselves). Higher values reduce AgentUpdate traffic but at a certain level will degrade smoothness of avatar and perceived avatar movement.
* refactor: Rename recent new Client*UpdateTolerance to Root*UpdateTolerance ↵Justin Clark-Casey (justincc)2014-08-061-9/+9
| | | | for better accuracy and consistency with other similar parameters
* Implement "scene debug set root-upd-per" for dropping 1 in N root agent ↵Justin Clark-Casey (justincc)2014-07-291-0/+5
| | | | | | | updates except to originator For experimental purposes. Also corrects a previous bug where each terse update sent was counted rather than each set of terse updates to agents.
* Add debug mechanism for only sending 1 in N AgentUpdate packets to child agents.Justin Clark-Casey (justincc)2014-07-291-0/+5
| | | | | | Allows experiments in manually reducing updates under heavy load. Activated by "debug scene set client-upd-per" console command. In a simple test, can send as few as every 4th update before observed movement starts becoming disturbingly rubber-banded.
* Make it possible to change avatar position update, rotation and velocity ↵Justin Clark-Casey (justincc)2014-07-291-1/+19
| | | | | | | tolerances on the fly. This is done via "debug scene set client-pos-upd, client-rot-upd, client-vel-upd". For testing purposes.