aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-20Use using() semantics in XBakesModule to ensure disposable objects are alway ↵Justin Clark-Casey (justincc)1-39/+42
disposed no matter what
2014-12-20In XBakes use proper disposal semantics to always close the stream on ↵Justin Clark-Casey (justincc)1-4/+2
Store() no matter what
2014-12-17Fix recent regression where a race condition meant SP.MakeRootAgent() would ↵Justin Clark-Casey (justincc)2-37/+40
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-16Add command to reset region's user cacheBlueWall1-0/+15
2014-12-16Adding command to reset user's email addressBlueWall1-1/+43
2014-12-15Remove XEngine.m_uniqueScriptsJustin Clark-Casey (justincc)1-8/+0
This provides no obvious benefit as far as I can tell but has a definite cost in keep script strings in memory for the entire simulator session.
2014-12-10Fix a regression where objects crossing regions in the same simulator (on ↵Justin Clark-Casey (justincc)7-61/+266
their own or as attachments) with AppDomainLoading = false would create the new state in the source region area rather than the dest. This was beause the code was finding the script DLL compiled for the source region as everything is in the same appdomain and using this as the location for the destination script state, etc. This resolves the regression by passing the proper destination separately from the DLL retrieved. Probably a regression since commit d7b92604 (11 July 2014). Added regression test for this case. At least partly addresses http://opensimulator.org/mantis/view.php?id=7278
2014-12-10Avoid a possible race condition where the XEngine script compile thread ↵Justin Clark-Casey (justincc)1-0/+8
could complete but see OnRezScript() insert a new job and complete before it set m_CurrentCompile = null If the above happened, it would mean the new script would not compile until some script was added for compilation.
2014-12-09In XEngine, enqueue a script rez to the compile queue after setting ↵Justin Clark-Casey (justincc)1-3/+4
m_CompileDict to avoid a rare but not impossible race condition.
2014-12-05refactor: rename IteratingUuidGather.AddAssetUuidToInspect() and ↵Justin Clark-Casey (justincc)2-115/+120
RecordAssetUuids() to AddForInspection() as this properly describes what both of these methods do.
2014-12-05Make "fache assets" console command more efficient by only updating access ↵Justin Clark-Casey (justincc)1-17/+24
times on each cached asset once, not for every reference.
2014-12-04refactor: Make IteratingUUIDGatherer take a dictionary in its constructor ↵Justin Clark-Casey (justincc)2-12/+26
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)2-1/+19
2014-12-04If "fcache assets" is executed, don't stop with an exception if there's an ↵Justin Clark-Casey (justincc)1-2/+1
access violation if another thread is operating on the file at the same time. Resolves one issue from http://opensimulator.org/mantis/view.php?id=7271
2014-12-04refactor: breakout flotasm cache last file access time to separate ↵Justin Clark-Casey (justincc)1-7/+19
UpdateFileLastAccessTime() method for imminent reuse.
2014-12-04Don't worry about checking FlotsamAssetCache.m_CurrentlyWriting when ↵Justin Clark-Casey (justincc)1-8/+1
updating access time. The majority of updates won't be for anything currently writing and any sharing exception from an actual clash can be caught and ignored anyway.
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)2-7/+9
region with its parameters rather than 2
2014-12-03minor: If we are recompiling scripts in response to a ScriptStopStrategy ↵Justin Clark-Casey (justincc)1-0/+8
config change (a rare situation), then explicitly log this for debug purposes.
2014-12-03Reintroduce general xengine extra debugging log level. This can be ↵Justin Clark-Casey (justincc)1-31/+32
controlled at runtime with the command "debug xengine log <level>", as with similar commands. If log level is 1 then every script load is logged. This means the <logger name="OpenSim.Region.ScriptEngine.XEngine"> section in OpenSim.exe.config is no longer needed to avoid log spam on regions with many scripts and can be removed.
2014-12-03minor: improve logged error in XEngine.SetXmlState if there was a problem ↵Justin Clark-Casey (justincc)1-1/+2
writing the linemap. The previous error report of already exists is inaccurate since existing files do get overwritten.
2014-12-03Always close script linemap file after reading and always dispose of other ↵Justin Clark-Casey (justincc)2-29/+29
streams in the script engine even if exceptions are thrown.
2014-11-30BulletSim: move detail log of InternalScheduleRebuild to reduce log file spamRobert Adams1-5/+5
2014-11-30BulletSim: Remove linkset 'Incomplete' flag as its meaning couldn't be made ↵Robert Adams3-23/+26
clear. Add 'InternalScheduleRebuild() CHange rebuild code to call InternalScheduleRebuild() rather than ForceRebuild() to limit the scope of the changes made by the linkset.
2014-11-30BulletSim: add BSLinkset.AllPartsComplete that checks of all linkset members ↵Robert Adams2-21/+18
are not Incomplete and not waiting for assets. Change BSPrimLinkable to use AllPartsComplete.
2014-11-30BulletSim: Make BSPrimLinkable 'incomplete' if any of its children are ↵Robert Adams1-1/+23
waiting for assets to load.
2014-11-30BulletSim: add shape and linkset rebuild scheduled flags. Add ↵Robert Adams7-19/+101
BSPrim.Incomplete flag based on rebuild flags to say when an object is being rebuilt.
2014-11-29Correct 690fe0c to actually log the exception reported in ↵Justin Clark-Casey (justincc)1-1/+2
DoOnRezScriptQueue()(and now the scene name).
2014-11-29If there are any exceptions in XEngine.DoOnRezScriptQueue() then log the ↵Justin Clark-Casey (justincc)1-31/+43
error and always set m_CurrentCompile = null Setting m_CurrentCompile = null in the finally block reduces the risk that an exception could permanently stop any future scripts compiling until the simulator is restarted. If an exception is seen from this then please report and further changes to fix the bug or improve compiling reliability can be made.
2014-11-29Remove minor race condition where two threads could race on fields such as ↵Justin Clark-Casey (justincc)1-6/+6
m_ScriptFailCount as set in XEngine.DoOnRezScriptQueue()
2014-11-29Restore zero'ing RawVelocity in BSCharacter.ZeroMotion() in favour of not ↵Justin Clark-Casey (justincc)1-1/+1
calling ZeroMotion in SetPhysicalProperties() at all SetPhysicalProperties is only called when adding a new character so it looks like there is no existing data to reset anyway.
2014-11-29minor: Remove a few indenting problems introduced to recent 265fe349 and ↵Justin Clark-Casey (justincc)1-3/+3
convert the m_log.DebugFormat() call back to the original DetailLog call
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-29When performing region cross, don't add the velocity to the new position in ↵Justin Clark-Casey (justincc)1-1/+2
ETM.CrossAgentIntoNewRegionMain() since this has already been performed by SP.CheckForBorderCrossing()
2014-11-29Somewhat improve avatar region crossings by properly preserving velocity ↵Justin Clark-Casey (justincc)12-54/+94
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-28Avoid repeated lag-generating continuous attempts to retrieve HG service ↵Justin Clark-Casey (justincc)1-7/+11
Urls in UMM if the initial request fails, possibly due to the home URL not being present Instead, the failure information is effectively added to the memory cache (so no persistence over simualtor sessions). A future improvement may be to invalidate negative cache results after some time has passed in case the failure was transient. Looks to resolve http://opensimulator.org/mantis/view.php?id=7382
2014-11-28Remove unmaintained MSSQL support.Justin Clark-Casey (justincc)33-9148/+0
This has not been maintained for more than 2 years, is unimplemented for newer features (e.g. built-in groups) and has no core developers using it. If somebody fixes these issues then it could be reinstated.
2014-11-28Stop writing SizeZ config parameter for now when creating regions from ↵Justin Clark-Casey (justincc)1-1/+1
console as it is unused/ignored, at least in core.
2014-11-27Be more explicit again in UMM bad HomeURL message by logging the original ↵Justin Clark-Casey (justincc)1-2/+2
creator data
2014-11-27Make UMM.AddUser(UUID, string) log message when bad creatorData is given to ↵Justin Clark-Casey (justincc)1-4/+8
reflect its location (UMM not Scene) and add the user name and ID.
2014-11-25Fix whitespace hoping to avoid a floggingBlueWall3-12/+12
2014-11-25refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)27-185/+270
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-25Fix ghosts copy of SimulatorFeatureModule to enable logging.Justin Clark-Casey (justincc)1-8/+13
2014-11-25Fix bug in HG attachment throttling code where attachments were never rezzed ↵Justin Clark-Casey (justincc)1-55/+63
on any teleport within a foreign grid after the first. Bug was introduced in ghosts branch commit 69abade
2014-11-25Change jobengine logging command to "debug jobengine log <int>" rather than ↵Justin Clark-Casey (justincc)1-7/+6
loglevel, in common with similar commands.
2014-11-25Make small adjustment to JobEngine default from previous commit to enable it ↵Justin Clark-Casey (justincc)1-1/+1
when [Startup] section is not present (though this is extremely unlikely).
2014-11-25Add [Startup] JobEngineEnabled setting that allows the job engine to be ↵Justin Clark-Casey (justincc)1-1/+3
disabled for testing purposes if necessary.
2014-11-25Move conditionals which control whether a task is placed in the JobEngine ↵Justin Clark-Casey (justincc)2-45/+62
inside Watchdog.RunJob() (renamed from RunWhenPossible) and generalize them.
2014-11-25Add [BulletSim] option AvatarToAvatarCollisionsByDefault to control whether ↵Justin Clark-Casey (justincc)3-3/+16
avatars collide. This is true by default. This is implemented with a new collision type (PhantomToOthersAvatar) to potentially allow colliding and non-colliding avatars to be present in the same scene. So there is no provision yet for giving avatars different collision types. This commit replaces the temporary change in commit f3eaa6d8 where avatars would never collide when using BulletSim This is equivalent to the av_av_collisions_off option in ODE.
2014-11-25Fix compile error from previous 1d56029848e96016b5809f596619e32d0ebcc995Justin Clark-Casey (justincc)1-1/+1