aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-10-30* Disables automatic packet splitting on AvatarGroupsReply packets. This ↵John Hurliman1-12/+14
packet is a mess and shouldn't be used at all (in favor of the event queue message) * Clean up the way we send AvatarGroupsReply packets, including clamping the group name and group title
2009-10-30* Fix for a potential race condition in ScenePresence.AbsolutePositionJohn Hurliman1-2/+0
* Unified the way region handles are stored and used in ScenePresence * Fixed camera position for child agents * CheckForSignificantMovement now checks avatar and camera position (both are important for scene prioritization) * Removing debug code from the previous commit
2009-10-30* Moving parcel media and avatar update packets from the unthrottled ↵John Hurliman1-4/+7
category to task * Fixing a bug where the max burst rate for the state category was being set as unlimited, causing connections to child agents to saturate bandwidth * Upped the example default drip rates to 1000 bytes/sec, the minimum granularity for the token buckets
2009-10-30* Fixes issue #4329 "llDialog fails silently" by updating OpenMetaverse.dllJohn Hurliman1-6/+6
* Prints a warning for any future packet splitting failures
2009-10-28Always send a time dilation of 1.0 while we debug rubberbanding issuesJohn Hurliman1-101/+0
2009-10-28Marking ImprovedTerseObjectUpdate packets for avatars as unthrottled to testJohn Hurliman1-1/+1
2009-10-28Modified visibilities of properties and methods. This is so that SL client ↵Mikko Pallari1-7/+7
based clients can use UDP server that is inherited from LLUDPServer.
2009-10-27* Converts ClientManager.ForEach() (and as a result, Scene.ForEachClient()) ↵John Hurliman1-3/+5
to use a non-blocking parallel method when operating in async mode * Minor code readability cleanup
2009-10-26* Double the priority on avatar bake texture requests to get avatars rezzing ↵John Hurliman1-4/+14
in faster than the surrounding scene * Adds duplicate tracking for SceneObjectParts and ScenePresences to avoid sending out duplicate ImprovedTerseObjectUpdate packets
2009-10-26ParcelObjectOwnersReplyPacket has null DataBlock when a client requests a ↵Dan Lake1-0/+4
list of their prims in the region and none exist. Instead of leaving pack.Data null, this patch sets a new DataBlock[0];
2009-10-23Cleaning up OpenSim.ini.example for LLUDP. The [LLClient] section has been ↵John Hurliman1-13/+4
removed and several new parameters have been added to [ClientStack.LindenUDP]
2009-10-23Experimental change to use an immutable array for iterating ScenePresences, ↵John Hurliman1-71/+70
avoiding locking and copying the list each time it is accessed
2009-10-22Add copyright header. Formatting cleanup.Jeff Ames1-1/+1
2009-10-21* Changed the misc. methods calling ThreadPool.UnsafeQueueUserWorkItem() to ↵John Hurliman1-3/+3
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
2009-10-21* Change the OnQueueEmpty signature to send the flags of the queues that are ↵John Hurliman1-24/+26
empty instead of firing once per empty queue * Change the OnQueueEmpty firing to use a minimum time until next fire instead of a sleep * Set OutgoingPacket.TickCount = 0 earlier to avoid extra resends when things are running slowly (inside a profiler, for example)
2009-10-21* FireQueueEmpty now checks if a measurable amount of time has passed, and ↵John Hurliman1-32/+10
if not it sleeps for a small amount of time. This throttles OnQueueEmpty calls where there is no callback or the callback is doing very little work * Changed HandleQueueEmpty()'s Monitor.TryEnter() calls to locks. We want to take our time in this function and do all the work necessary, since returning too fast will induce a sleep anyways
2009-10-21* Changed the timing calculations for sending resends/acks/pings from ↵John Hurliman1-3/+3
per-client back to per-scene * Testing a fix from Jim to make the cpu usage fix cleaner
2009-10-21* Replaced the UnackedPacketCollection with a lockless implementation. The ↵John Hurliman1-9/+2
tiny amount of time spent in the locks turned into a lot of time when the rest of the LLUDP implementation went lockless * Changed the timer tracking numbers for each client to not have "memory". It will no longer queue up calls to functions like ResendUnacked * Reverted Jim's WaitHandle code. Although it was technically more correct, it exhibited the exact same behavior as the old code but spent more cycles. The 20ms has been replaced with the minimum amount of time before a token bucket could receive a drip, and an else { sleep(0); } was added to make sure the outgoing packet handler always yields at least a minimum amount
2009-10-21Committing Jim's optimization to replace the 20ms sleep in outgoing packet ↵John Hurliman1-0/+6
handling with an interruptible wait handle
2009-10-20Fixing position/rotation/collisionplane in ObjectUpdate packets for avatarsJohn Hurliman1-6/+8
2009-10-19* Optimized sending of terrain dataJohn Hurliman1-146/+166
* Send terrain data in a spiral pattern instead of a typewriter pattern (placeholder until terrain data becomes part of the interest list management) * Added a debug line when resent packets are being sent
2009-10-19* Removed OpenSim.Data.NHibernateJohn Hurliman1-3/+3
* Replaced calls to ThreadPool.QueueUserWorkItem() with ThreadPool.UnsafeQueueUserWorkItem() since OpenSim does not use Code Access Security sandboxing
2009-10-19* Change Util.FireAndForget to use ThreadPool.UnsafeQueueUserWorkItem(). ↵John Hurliman1-45/+43
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
2009-10-18* Rewrote the methods that build ObjectUpdate and ImprovedTerseObjectUpdate ↵John Hurliman1-646/+369
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
2009-10-18* Process the avatar terse update priority queue as soon as an update for ↵John Hurliman1-40/+39
our own avatar is ready to send * Reduce the scope of the locks when processing the update queues * Reuse the ImprovedTerseObjectUpdate.RegionData block
2009-10-18* Big performance increase in loading prims from the region database with MySQLJohn Hurliman1-10/+14
* 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
2009-10-17* Committing Nini.dll with the patch from #3773 appliedJohn Hurliman1-1/+1
* Fixing a log message typo
2009-10-17Committing the second part of Jim Greensky @ Intel Lab's patch, ↵John Hurliman1-17/+90
re-prioritizing updates
2009-10-16Changing avatar movement updates to the Task throttle category until we get ↵John Hurliman1-5/+6
finer grained prioritization of avatars vs. prims
2009-10-16* Simplified the prioritization packet creation code to reduce CPU usage and ↵John Hurliman1-84/+17
increase throughput. Apologies to Jim for hacking on your code while it's only halfway done, I'll take responsibility for the manual merge * Changed LLUDP to use its own MTU value of 1400 instead of the 1200 value pulled from the currently shipped libomv
2009-10-16* Change appearance packets from State to Task. This will hopefully fix the ↵John Hurliman1-1/+1
cloud issues * Changed the throttling logic to obey the requested client bandwidth limit but also share bandwidth between some of the categories to improve throughput on high prim or heavily trafficked regions
2009-10-16Thank you, Fly man, for plumbing the AvatarInterestsUpdate packetMelanie1-5/+22
2009-10-15Object update prioritization by Jim Greensky of Intel Labs, part one. This ↵John Hurliman1-209/+135
implements a simple distance prioritizer based on initial agent positions. Re-prioritizing and more advanced priority algorithms will follow soon
2009-10-15Replaced the update lists with a priority queue implementation in LLClientViewjjgreens1-45/+179
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.
2009-10-15* Removed some of the redundant broadcast functions in Scene and SceneGraph ↵John Hurliman1-1/+228
so it is clear who/what the broadcast is going to each time * Removed two redundant parameters from SceneObjectPart * Changed some code in terse update sending that was meant to work with references to work with value types (since Vector3 and Quaternion are structs) * Committing a preview of a new method for sending object updates efficiently (all commented out for now)
2009-10-15* Request from lkalif to have the Sim send a coarselocationupdate for each ↵Teravus Ovares (Dan Olivares)1-2/+5
avatar in the sim, including yourself. * Apparently the LLClientView should have been doing this previously.. Also fixed the 'You' on the index block.. so the client doesn't display an extra green dot. * Thanks lkalif for bringing it to our attention.
2009-10-14* Minimized the number of times textures are pulled off the priority queueJohn Hurliman1-3/+4
* OnQueueEmpty is still called async, but will not be called for a given category if the previous callback for that category is still running. This is the most balanced behavior I could find, and seems to work well * Added support for the old [ClientStack.LindenUDP] settings (including setting the receive buffer size) and added the new token bucket and global throttle settings * Added the AssetLoaderEnabled config variable to optionally disable loading assets from XML every startup. This gives a dramatic improvement in startup times for those who don't need the functionality every startup
2009-10-13* Split Task category into Task and StateJohn Hurliman1-6/+7
* Crude prioritization hack
2009-10-13* Copied LocklessQueue.cs into OpenSim.Framework and added the .Count ↵John Hurliman1-7/+4
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
2009-10-13* Consolidated adding / removing ClientManager IClientAPIs to two places in ↵John Hurliman1-59/+2
Scene * Added some missing implementations of IClientAPI.RemoteEndPoint * Added a ClientManager.Remove(UUID) overload * Removed a reference to a missing project from prebuild.xml
2009-10-13* Fixed a bug where clients were being added to ClientManager twiceJohn Hurliman1-21/+15
* 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
2009-10-13* Rewrote ClientManager to remove Lindenisms from OpenSim core, improve ↵John Hurliman1-54/+23
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)
2009-10-13* Unregister event handlers in LLUDPServer when a client logs out and ↵John Hurliman1-234/+208
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
2009-10-13Better handling of missing assets.Diva Canto1-9/+16
2009-10-12Better handling of missing assets.Diva Canto1-9/+23
2009-10-12* Fixes http://opensimulator.org/mantis/view.php?id=4225Diva Canto1-7/+14
* Fixes http://opensimulator.org/mantis/view.php?id=3959 * Allows for viewing inventory textures outside home grid
2009-10-08Simplified LLUDPClientCollection from three collections down to one. This ↵John Hurliman1-1/+2
will prevent any potential problems from inconsistency between the internal collections
2009-10-07replace LLClientView with proper versionMelanie1-1898/+1332
2009-10-07Replace LLClientView on the branch with master. UNCOMPILABLE!Melanie1-1332/+1898
2009-10-07Revert "Rewrote parts of the code that were double-locking different ↵Melanie1-69/+47
objects. This is about half of the code base reviewed." This reverts commit e992ca025571a891333a57012c2cd4419b6581e5.