aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PacketPool.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-11-15Revert "Merge master into teravuswork", it should have been avination, not ↵teravus1-83/+14
master. This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
2012-11-15Make PacketPool class stats pull stats instead of push stats so they can be ↵Justin Clark-Casey (justincc)1-62/+52
lifted up into LLUDPServer and be distiguished by scene name
2012-10-23Add object count stats for new IncomingPacket and UDPPacketBuffer pools if ↵Justin Clark-Casey (justincc)1-6/+34
they are enabled. Add count stats for existing LLUDP pool. This introduces a pull stat type in addition to the push stat type. A pull stat takes a method on construction which knows how to update the stat on request. In this way, special interfaces for pull stat collection are not necessary.
2012-10-17Explicitly return only the incoming AgentUpdate packet as this is the only ↵Justin Clark-Casey (justincc)1-2/+8
one we pool atm, rather than attempting to return all incoming packets.
2012-10-12minor: Fix bug in categorization of blocks reused stat from packetpoolJustin Clark-Casey (justincc)1-1/+1
2012-10-12Add AgentUpdate to PacketPool. This is the most common inbound packet from ↵Justin Clark-Casey (justincc)1-1/+7
viewers.
2012-10-12Fix percentage stats to multiply by 100. Adjust container name for ↵Justin Clark-Casey (justincc)1-2/+2
packetpool stats.
2012-10-11Fix packetpool for ImprovedTerseObjectUpdate packets.Justin Clark-Casey (justincc)1-2/+2
These were neither being returned or in many places reused. Getting packets from a pool rather than deallocating and reallocating reduces memory churn which in turn reduces garbage collection time and frequency.
2012-10-11Extend "show stats" command to "show stats [list|all|<category name>]"Justin Clark-Casey (justincc)1-8/+35
This allows different categories of stats to be shown, with options to list categories or show all stats. Currently categories are scene and simulator and only a very few stats are currently registered via this mechanism. This commit also adds percentage stats for packets and blocks reused from the packet pool.
2012-10-05refactor: Move OpenSim.Framework.PacketPool to ↵Justin Clark-Casey (justincc)1-3/+5
OpenSim.Region.Clientstack.Linden.UDP This is to allow it to use OpenSim.Framework.Monitoring in the future. This is also a better location since the packet pool is linden udp specific
2011-07-31In the packetpool, if we encounter a data block that somehow wasn't ↵Justin Clark-Casey (justincc)1-6/+11
retrieved via GetDataBlock() then create a new stack instead of throwing an exception
2009-09-30Limit the number of packet data blocks to 50, as packets are already limitedMelanie1-1/+2
This is enough to prevent the fast back and forth of allocation and release the pool is meant to prevent, but not too much so we don't hog memory
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames1-1/+1
LICENSE.txt.
2009-05-08Implement an ingenious solution to pacekt pool performance suggested byMelanie Thielker1-20/+10
dlslake.
2009-05-05Add copyright header. Formatting cleanup. Ignore some generated files.Jeff Ames1-1/+1
2009-05-02Numerous packet improvements.Melanie Thielker1-44/+60
Don't allow packets to be resent before they have actually been sent for the first time. Switch from serializing a packet to get it's length to the LibOMV provided Length property. Fix resend timing. Fix the use of dangling references to Acked packets. Fix the packet handler to play nice with the packet pool. Fix the packet pool. Add data block recycling to the packet pool. Packet pool is now ENABLED by default. Add config option to disable packet and data block reuse. Add ObjectUpdate and ImprovedTerseObjectUpdate to the packets being recycled.
2009-05-02Also add these packet to the list of packets to be recycled. No enabledMelanie Thielker1-0/+2
by default
2009-05-02Fix the issue that stopped the packet pool from working. Add a mechanismMelanie Thielker1-0/+66
to recycley data blocs within a packet. Recycle the ObjectUpdate* data blocks. Speeds up loading even more. This may mean that the packet pool is now viable.
2009-03-03Avoid NRE if client sends unrecognized packet type.Jeff Ames1-1/+8
2008-12-17* Replace manually zeroing with Array.Clear(). Thanks cmickeybJustin Clarke Casey1-3/+1
2008-10-13* Apply a modified version of the part of ↵Justin Clarke Casey1-1/+1
http://opensimulator.org/mantis/view.php?id=2361 that allows region registration to be enabled/disabled on the grid server * Region registration is enabled by default in the configuration unless the user chooses otherwise * On the console * show status - shows grid status * enable-reg - enables region registration to the grid * disable-reg - disables region registration * Enabling or disabling region registration will not affect any other grid functions or regions already on the grid
2008-10-12Update svn properties, minor formatting cleanup.Jeff Ames1-2/+2
2008-10-12Add one more check for key presenceMelanie Thielker1-1/+1
2008-10-12* Removed a lock in a high performance section of OpenSim, in cases when it ↵Adam Frisby1-0/+3
is not necessary.
2008-10-12* Small fix for when PacketPool is disabled to prevent it from crashing ↵Adam Frisby1-1/+1
immedietly.
2008-10-12LLUDP Client ViewAdam Frisby1-22/+32
* Experimenting with the PacketPool mechanism. * It's still disabled in the code, however there's now a flag to enable it. * Converted to use Generic Collections vs Hashtables, also now uses a list of 'OK to pool' packets, starting with the high volume PacketAck packet.
2008-09-08Implement proper persistence of the following prim properties:Melanie Thielker1-0/+4
Floating text, Rotation, Texture animation, Particle System This will make "Eye Candy" scripts work without modification in XEngine. The use of the CHANGED_REGION_RESTART hack is no longer needed. Implemented in MySQL only, hovertext also in SQLite.
2008-09-07* minor: just minor doc and tidy upJustin Clarke Casey1-0/+4
2008-09-06* This is the fabled LibOMV update with all of the libOMV types from JHurlimanTeravus Ovares1-5/+7
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
2008-08-08Patch #9160Melanie Thielker1-40/+1
Refactor proxy encode/decode methods out of the PacketPool into their own class.
2008-05-14More formatting cleanup.Jeff Ames1-1/+1
2008-05-14Formatting cleanup.Jeff Ames1-1/+1
2008-05-01* Breaking all the code, breaking all the code..!Adam Frisby1-2/+2
* Made a bunch more members static, removed some dead code, general cleaning.
2008-04-29* Spring cleaning.Adam Frisby1-39/+37
* Added new generic "Location" class to handle 2D integer locations. Going to use it to replace all RegionHandle and X,Y coordinate references throughout the entire project. You have been warned.
2008-04-21* Optimised using statements and namespace references across entire project ↵Adam Frisby1-7/+8
(this took a while to run).
2008-03-20Added back a fix that lbsa71 did aqes ago to fix a buffer overflow in the ↵MW1-1/+2
packetpool, which somewhere through time got lost/reverted
2008-03-18Formatting cleanup.Jeff Ames1-10/+10
2008-03-18Formatting cleanup.Jeff Ames1-26/+26
2008-03-05* Removed more compiler warnings, dead code, etc.Adam Frisby1-0/+2
2008-03-04Merged 3Di code that provides scene and avatar serialization, and plugin ↵Johan Berntsson1-43/+61
support for region move/split/merge. See ThirdParty/3Di/README.txt. Unless the new modules are used there should be no noticeable changes when running OpenSim.
2008-01-10Whitespace cleanup.Jeff Ames1-3/+3
2008-01-03Packet recycling has been temporarily disabled to avoid the performance ↵Johan Berntsson1-0/+5
problems reported in Mantis 281
2008-01-02Fixed buffer overrun bug in ZeroDecodeCommandJohan Berntsson1-2/+23
2008-01-02* Fixed an issue where the PacketPool would ZeroDecodeCommand into a too ↵lbsa711-1/+2
small buffer. The new buffer size is based on analysis of real data, not on knowledge; this should be reviewed by the original PacketPool author.
2007-12-28Patch from Johan: LibSL updated to the latest revision (1568) and all ↵Adam Johnson1-0/+131
packets are now recycled to improve performance and memory usage.