aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into careminster-presence-refactorMelanie2011-02-241-3/+10
|\
| * Parameterizes the view distance used to compute and manageMic Bowman2011-02-221-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | child agents in neighbor regions. This means you can extend the view on a simulator beyond the default 3x3 regions. This uses a region default draw distance and should be replaced at some point by the avatar specified draw distance. That will require more careful, dynamic recomputation of child agents every time the draw distance changes. WARNING: this is experimental and has known instabilities. specifically all regions "within site" should be running the same default draw distance or agents will not be closed correctly.
* | Merge branch 'master' into careminster-presence-refactorMelanie2011-02-071-0/+10
|\ \ | |/ | | | | | | | | | | | | | | Conflicts: OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs OpenSim/Server/Handlers/Simulation/AgentHandlers.cs OpenSim/Services/Connectors/SimianGrid/SimianGridMaptileModule.cs OpenSim/Services/GridService/HypergridLinker.cs
| * Put something in the ImprovedInstantMessage.BinaryBucket for ↵Justin Clark-Casey (justincc)2011-02-041-0/+10
| | | | | | | | | | | | | | llInstantMessage() to stop this crashing viewer 2.4.0 (1.23.5 was fine with this). We're putting in a string of format "<region name><x pos floor int><y pos floor int><z pos floor int> which appears to be the expected value. This resolves http://opensimulator.org/mantis/view.php?id=5356
* | Revert my previous SHA1 commit in favour of a better implementationTom2011-01-261-3/+9
| |
* | Provide an SL compatible llMD5String function across all platformsTom2011-01-261-4/+10
| |
* | Merge branch 'master' into careminster-presence-refactorMelanie2011-01-131-3/+24
|\ \ | |/
| * Make FireAndForgetWrapper a singleton classBlueWall2011-01-131-3/+24
| | | | | | | | | | | | Made FireAndForgetWrapper a singleton class to allow us to drop dependancy on the BclExtras35 library. BclExtras is broken in Mono 2.8.2 and we used the library in only one function.
* | Merge branch 'master' into careminster-presence-refactorMelanie2010-12-031-0/+81
|\ \ | |/ | | | | Also prevent god takes from ending up in Lost and Found
| * Preservation of creator information now also working in IARs. Cleaned up ↵Diva Canto2010-11-291-0/+20
| | | | | | | | usage help. Moved Osp around, deleted unnecessary OspInventoryWrapperPlugin, added manipulation of SOP's xml representation in a generic ExternalRepresentationUtils function.
| * Changed the parser for InventoryItem deserialization. Moved some utility ↵Diva Canto2010-11-271-0/+61
| | | | | | | | functions around.
* | Merge branch 'master' into careminster-presence-refactorMelanie2010-11-181-0/+8
|\ \ | |/
| * minor: add some method commentsJustin Clark-Casey (justincc)2010-11-171-0/+8
| |
* | Merge branch 'master' into careminster-presence-refactorMelanie2010-10-031-0/+11
|\ \ | |/
| * Port ExecutingDirectory from omfOS Util class.Melanie2010-10-031-0/+11
| |
* | Merge branch 'master' into careminster-presence-refactorMelanie2010-09-051-0/+44
|\ \ | |/
| * Make User Agent Service and Login Service separable.Diva Canto2010-09-041-1/+17
| |
| * Added XFF header processing. Untested, for lack of proxy.Diva Canto2010-09-031-0/+28
| |
| * Correct display of landmark about info. Also correct region maturity ratingMelanie Thielker2010-08-071-1/+11
| | | | | | | | | | in LM info. Maturity is NOT the parcel's setting, that is only for the image and text. Parcel maturity is governed by region maturity.
* | Correct display of landmark about info. Also correct region maturity ratingMelanie Thielker2010-08-071-1/+11
| | | | | | | | | | in LM info. Maturity is NOT the parcel's setting, that is only for the image and text. Parcel maturity is governed by region maturity.
* | Merge branch 'master' into careminster-presence-refactorMelanie2010-04-191-1/+1
|\ \ | |/
| * Fix http://opensimulator.org/mantis/view.php?id=4657 where ↵Justin Clark-Casey (justincc)2010-04-161-1/+1
| | | | | | | | | | | | OpenSim.Grid.UserServer.exe fails on startup if no previous config probably appears to occur because mono 2.4.2.3 (and possibly later) erroneously returns a value of 0 for BufferWidth and BufferHeight in some circumstances
* | Merge branch 'master' into careminster-presence-refactorMelanie2010-03-091-0/+18
|\ \ | |/
| * Bug fix: store correct position information upon logout. Fixes mantis #4608Diva Canto2010-03-061-0/+18
| |
* | Merge branch 'master' into careminster-presence-refactorMelanie2010-03-031-7/+40
|\ \ | |/ | | | | This brings careminster on the level of master. To be tested
| * Merge branch 'master' into presence-refactorMelanie2010-02-221-6/+12
| |\ | | | | | | | | | This brings presence-refactor up to master again
| | * Change handling of the SYSTEMIP constant to be more sane.Melanie2010-02-181-6/+12
| | | | | | | | | | | | | | | | | | This will now choose the first network interface IP address, or the loopback interface if no external interfaces are found. It will log the IP address used as [NETWORK]: Using x.x.x.x for SYSTEMIP.
| * | Changed an error message to w warning message.Diva Canto2010-01-301-1/+1
| | |
| * | More progress on both the Simulation service and the Login service. Both ↵Diva Canto2009-12-311-0/+27
| |/ | | | | | | still unfinished.
* | Merge branch 'master' into careminsterMelanie2009-12-141-0/+20
|\ \ | |/
| * * Implements OSSL function: osGetSimulatorMemory - returns the current ↵Adam Frisby2009-12-131-0/+20
| | | | | | | | | | | | | | | | amount of memory allocated to the simulator process (Moderate Threat Level). * Cleans redundant information out of the Simulator Version. Versions now look like: "OpenSimulator 0.6.9(dev) Unix/Mono" * [Minor] additional log info for MySQLInventoryData
* | Merge branch 'master' into careminsterMelanie2009-12-021-24/+24
|\ \ | |/
| * * Fix Inconsistent line ending style in UtilTeravus Ovares (Dan Olivares)2009-12-011-24/+24
| |
* | Merge branch 'master' into careminsterMelanie2009-11-301-1/+25
|\ \ | |/
| * * Patch from Misterblue to fix Environment.TickCount for statistics ↵Teravus Ovares (Dan Olivares)2009-11-291-1/+25
| | | | | | | | | | | | purposes. Resolves the wrap-around of the 32 bit uint. * Teravus moved the Environment methods to the Util class
* | Remove OS version crap from about dialogMelanie2009-11-261-13/+13
|/
* Experimental test to rate limit the incoming packet handler and try to ↵John Hurliman2009-10-271-0/+21
| | | | always leave a worker thread available for other tasks
* * Change the way Util.FireAndForget() calls SmartThreadPool to avoid using a ↵John Hurliman2009-10-231-1/+11
| | | | delegate (which STP appears to hold on to). This removes the slow leak I was seeing when using async_call_method=SmartThreadPool and stabilizes allocated memory for an idle OpenSim instance
* Terrible typo in the previous commit!John Hurliman2009-10-221-1/+1
|
* * Added a check if Util.m_ThreadPool is null before trying to use it, and if ↵John Hurliman2009-10-221-13/+7
| | | | | | so initialize it to sane defaults * Simplified the InitThreadPool() function
* * Allow SmartThreadPool to be initialized without setting max stack size ↵John Hurliman2009-10-221-5/+7
| | | | | | | (like the original implementation) * Only initialize Util's SmartThreadPool if it is actually being used * No longer initializing Util's SmartThreadPool with a custom max stack size. From MSDN: "Avoid using this constructor overload. The default stack size used by the Thread(ThreadStart) constructor overload is the recommended stack size for threads."
* Merge branch 'melanie_test' into prioritizationMelanie2009-10-221-3/+23
|\ | | | | | | | | This makes SmartThreadPool configurable and also makes it the default, since the regular thread pool simply stinks.
| * Reduce the default pool threads to 15 (from 30) and the minimum from 5 to 2Melanie2009-10-221-1/+1
| |
| * Add MaxPoolThreads in startup to limit the size of the thread pool usedMelanie2009-10-221-12/+22
| | | | | | | | for FireAndForget. This lets us limit concurrency to make OpenSim play nice
* | * Changed the misc. methods calling ThreadPool.UnsafeQueueUserWorkItem() to ↵John Hurliman2009-10-211-19/+51
|/ | | | | | Util.FireAndForget() * Changed Util.FireAndForget() to use any of five different methods set with async_call_method in the [Startup] section of OpenSim.ini. Look at the example config for possible values
* * Change Util.FireAndForget to use ThreadPool.UnsafeQueueUserWorkItem(). ↵John Hurliman2009-10-191-8/+10
| | | | | | | | | | | | | | 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
* Converted FireAndForget methods to use a singleton pattern to attempt to ↵John Hurliman2009-10-161-2/+21
| | | | work around a Mono bug with nested delegates
* * Try/catch around EndInvoke() when Util.FireAndForget() returns to catch ↵John Hurliman2009-10-061-1/+3
| | | | | | | exceptions thrown in the async method * Added packet stats handling to the new LLUDP implementation * Attempting to avoid a race condition when creating a new LLUDPClient
* * Continued work on the new LLUDP implementation. Appears to be functioning, ↵John Hurliman2009-10-061-0/+36
| | | | | | | | although not everything is reimplemented yet * Replaced logic in ThreadTracker with a call to System.Diagnostics that does the same thing * Added Util.StringToBytes256() and Util.StringToBytes1024() to clamp output at byte[256] and byte[1024], respectively * Fixed formatting for a MySQLAssetData error logging line
* Merge branch 'diva-textures-osgrid'Melanie2009-10-041-4/+6
|\