aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Formatting cleanup.Jeff Ames2009-10-192-4/+4
| |
* | * 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
* | * Rewrote the methods that build ObjectUpdate and ImprovedTerseObjectUpdate ↵John Hurliman2009-10-182-109/+85
| | | | | | | | | | | | | | | | | | | | packets to fill in the data more accurately and avoid allocating memory that is immediately thrown away * Changed the Send*Data structs in IClientAPI to use public readonly members instead of private members and getters * Made Parallel.ProcessorCount public * Started switching over packet building methods in LLClientView to use Util.StringToBytes[256/1024]() instead of Utils.StringToBytes() * More cleanup of the ScenePresences vs. ClientManager nightmare * ScenePresence.HandleAgentUpdate() will now time out and drop incoming AgentUpdate packets after three seconds. This fixes a deadlock on m_AgentUpdates that was blocking up the LLUDP server
* | * Big performance increase in loading prims from the region database with MySQLJohn Hurliman2009-10-181-0/+2
| | | | | | | | | | | | * Handle the AgentFOV packet * Bypass queuing and throttles for ping checks to make ping times more closely match network latency * Only track reliable bytes in LLUDPCLient.BytesSinceLastACK
* | Committing the second part of Jim Greensky @ Intel Lab's patch, ↵John Hurliman2009-10-171-0/+27
| | | | | | | | re-prioritizing updates
* | Added a description for RegionTypeJohn Hurliman2009-10-171-1/+1
| |
* | Merge branch 'master' into prioritizationMelanie2009-10-171-0/+1
|\ \ | |/
| * Adds SendAvatarInterestsUpdate to IClientAPIMelanie2009-10-171-0/+1
| | | | | | | | Thank you, Fly-Man
* | Merge branch 'master' into prioritizationMelanie2009-10-171-16/+16
|\ \ | |/
| * Re-rename ProductName back to it's original RegionTypeMelanie2009-10-171-16/+16
| |
* | Merge branch 'master' into prioritizationMelanie2009-10-171-1/+23
|\ \ | |/
| * Add ProductName to RegionInfo (for search)Melanie2009-10-171-1/+23
| |
* | 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
* | Object update prioritization by Jim Greensky of Intel Labs, part one. This ↵John Hurliman2009-10-151-23/+231
| | | | | | | | implements a simple distance prioritizer based on initial agent positions. Re-prioritizing and more advanced priority algorithms will follow soon
* | Replaced the update lists with a priority queue implementation in LLClientViewjjgreens2009-10-151-0/+375
|/ | | | | | | Replaced the update lists with a priority queue implementation in LLClientView. The priority queues are based on the MinHeap implementation also included in this commit within the OpneSim.Framework namespace. Initially setup to exactly mimic the behavior beofre the change which was a first come first serve queue.
* * Clean up the SetThrottle() code and add a maxBurstRate parameter to allow ↵John Hurliman2009-10-141-5/+6
| | | | more tweaking in the future
* * Switched to a plain lock for the ClientManager collections and protected ↵John Hurliman2009-10-141-69/+81
| | | | | | the TryGetValues with try/catch instead of a lock * Added ClientManager.ForEachSync() for operations that need to run synchronously, such as "show connections"
* * Split Task category into Task and StateJohn Hurliman2009-10-131-4/+14
| | | | * Crude prioritization hack
* * Copied LocklessQueue.cs into OpenSim.Framework and added the .Count ↵John Hurliman2009-10-132-14/+139
| | | | | | | | | property and .Clear() method * Changed the way the QueueEmpty callback is fired. It will be fired asynchronously as soon as an empty queue is detected (this can happen immediately following a dequeue), and will not be fired again until at least one packet is dequeued from that queue. This will give callbacks advanced notice of an empty queue and prevent callbacks from stacking up while the queue is empty * Added LLUDPClient.IsConnected checks in several places to prevent unwanted network activity after a client disconnects * Prevent LLClientView.Close() from being called twice every disconnect * Removed the packet resend limit and improved the client timeout check
* * Consolidated adding / removing ClientManager IClientAPIs to two places in ↵John Hurliman2009-10-131-0/+14
| | | | | | | | Scene * Added some missing implementations of IClientAPI.RemoteEndPoint * Added a ClientManager.Remove(UUID) overload * Removed a reference to a missing project from prebuild.xml
* * Fixed a bug where clients were being added to ClientManager twiceJohn Hurliman2009-10-132-11/+13
| | | | | | * Changed the ClientManager interface to reduce potential errors with duplicate or mismatched keys * Added IClientAPI.RemoteEndPoint, which can (hopefully) eventually replace IClientAPI.CircuitCode * Changed the order of operations during client shutdown
* * Rewrote ClientManager to remove Lindenisms from OpenSim core, improve ↵John Hurliman2009-10-132-27/+145
| | | | | | | | performance by removing locks, and replace LLUDPClientCollection * Removed the confusing (and LL-specific) shutdowncircuit parameter from IClientAPI.Close() * Updated the LLUDP code to only use ClientManager instead of trying to synchronize ClientManager and m_clients * Remove clients asynchronously since it is a very slow operation (including a 2000ms sleep)
* * Unregister event handlers in LLUDPServer when a client logs out and ↵John Hurliman2009-10-132-151/+13
| | | | | | | | disconnects * Move ViewerEffect handling to Scene.PacketHandlers * Removing the unused CloseAllAgents function * Trimming ClientManager down. This class needs to be reworked to keep LLUDP circuit codes from intruding into the abstract OpenSim core code
* Merge branch 'master' into htb-throttleMelanie2009-10-121-5/+5
|\
| * Use Util.UTF8 instead of creating a new heap object every time.Diva Canto2009-10-101-5/+5
| |
* | Merge branch 'master' into htb-throttleMelanie2009-10-101-23/+12
|\ \ | |/ | | | | | | This is hand-edited to not let master changes creep into here and may cause a somewhat rocky merge to master later.
| * A slight improvement on name fetching -- using the local name cache, since ↵Diva Canto2009-10-091-0/+6
| | | | | | | | it exists.
| * Use the cache, Luke!Diva Canto2009-10-091-25/+8
| |
* | Merge branch 'master' into htb-throttleMelanie2009-10-092-0/+8
|\ \ | |/
| * Adding a hair item to the default wearables, fixes newly created avatars ↵Rob Smart2009-10-092-0/+8
| | | | | | | | appearing as a cloud
* | Calling .Close() on AutoResetEvent and ManualResetEvent (those classes ↵John Hurliman2009-10-093-3/+7
|/ | | | contain an unmanaged resource that will not automatically be disposed when they are GCed), and commenting out some ManualResetEvents that are not in use yet
* Remove ThreadTrackerTest. It's no longer relevant because the threadMelanie2009-10-081-56/+0
| | | | tracker now uses the system thread list
* Bug fix.Diva Canto2009-10-071-2/+6
|
* Printout one more field in show threads, but this won't buy us much.Diva Canto2009-10-071-1/+2
|
* Merge branch 'master' into htb-throttleMelanie2009-10-071-17/+62
|\
| * * One more debug message on FetchInventoryDescendantsDiva Canto2009-10-061-17/+62
| | | | | | | | * More streams close on finally
| * Revert "Rewrote parts of the code that were double-locking different ↵Melanie2009-10-071-27/+39
| | | | | | | | | | | | objects. This is about half of the code base reviewed." This reverts commit e992ca025571a891333a57012c2cd4419b6581e5.
* | Revert "Merging in diva's locking fixes"Melanie2009-10-073-32/+44
| | | | | | | | This reverts commit 832cc685138b2244529f10b54b373c34adb4a633.
* | Merging in diva's locking fixesJohn Hurliman2009-10-063-44/+32
|\ \ | |/
| * Rewrote parts of the code that were double-locking different objects. This ↵Diva Canto2009-10-061-39/+27
| | | | | | | | is about half of the code base reviewed.
| * * Change some more default ports to the robust default of 8003Justin Clark-Casey (justincc)2009-10-062-5/+5
| | | | | | | | | | * Make these use existing constants rather than hardcoding * These will probably go away soon anyway once all services are under ROBUST
* | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim into ↵John Hurliman2009-10-061-2/+2
|\ \ | |/ | | | | htb-throttle
| * Corrected words in error message.Diva Canto2009-10-061-2/+2
| |
* | * 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
* | Fixing a few compile errors in the previous commitJohn Hurliman2009-10-062-159/+8
| |
* | * Continued work on the new LLUDP implementation. Appears to be functioning, ↵John Hurliman2009-10-063-122/+248
| | | | | | | | | | | | | | | | 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 'master' of ssh://opensimulator.org/var/git/opensim into ↵John Hurliman2009-10-052-3/+21
|\ \ | |/ | | | | htb-throttle
| * * GridServerPostHandler.cs: Try/catch in HandleDiva Canto2009-10-051-1/+7
| | | | | | | | * BaseOpenSimServer.cs: Added thread pool numbers in show threads
| * More error messages to warn when/if things go wrong.Diva Canto2009-10-051-2/+14
| |
* | Beginning work on the new LLUDP implementationJohn Hurliman2009-10-051-7/+1
|/