| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
so initialize it to sane defaults
* Simplified the InitThreadPool() function
|
| |
|
|
|
|
| |
promoting an agent to a root agent (logins and teleports). Changed to an async method
|
|
|
|
|
|
|
| |
(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."
|
| |
|
|\
| |
| |
| |
| | |
This makes SmartThreadPool configurable and also makes it the default, since
the regular thread pool simply stinks.
|
| |
| |
| |
| | |
ScriptDelayFactor in config
|
| | |
|
| |
| |
| |
| | |
for FireAndForget. This lets us limit concurrency to make OpenSim play nice
|
| | |
|
|/
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
upped it to 30ms
* Removed the unused PacketSent() function
* Switched UnackedPacketCollection from a SortedDictionary to a Dictionary now that the sorting is no longer needed. Big performance improvement for ResendUnacked()
|
|\ |
|
| |
| |
| |
| |
| | |
of the named constants for the rule selector.
Information provided by Snowcrash
|
| | |
|
| | |
|
| |
| |
| |
| | |
LLProxyLoginModule.
|
| |
| |
| |
| |
| |
| | |
a server port to use for modules in a generic way and also add support
for disabling modules that don't support proper disabling.
Add support for selective loading by class name (advanced users only)
|
| |
| |
| |
| | |
ports in region modules
|
| |
| |
| |
| | |
File name is enforced to NOT be OpenSim.ini
|
| | |
|
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
per-client back to per-scene
* Testing a fix from Jim to make the cpu usage fix cleaner
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
can take several seconds, and was blocking up packet handling in the meantime
* Clamp retransmission timeout values between three and 10 seconds
* Log outgoing time for a packet right after it is sent instead of well before
* Loop through the entire UnackedPacketCollection when looking for expired packets
|
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
same category
|
| |
| |
| |
| | |
handling with an interruptible wait handle
|
| |
| |
| |
| |
| |
| | |
the case where no scripting engine is enabled
* Added TokenBucket.cs to OpenSim, with some fixes for setting a more accurate MaxBurst value and getting a more accurate Content value (by Drip()ing each get)
|
| |
| |
| |
| |
| |
| | |
being done for AgentUpdate packets
* Start LLUDPClients unpaused (this variable is not being used yet)
|
| |
| |
| |
| | |
* Changed the outgoing packet handler to use a real function instead of a closure and to track time on a per-client basis instead of a global basis
|
| |
| |
| |
| | |
incoming packet handler
|
| | |
|
| |
| |
| |
| | |
out exactly what is and isn't needed
|
| |
| |
| |
| |
| |
| | |
based on something that could change
* Tweaked a few other GetHashCode() overrides to bring them in line with MSDN recommendations
|
| |
| |
| |
| |
| |
| | |
and UDP code
* Changing the cache modules to only initialize the caches if they are actually enabled. Should save a bit of resources from unused cache systems
|
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| |
| | |
* Replaced calls to ThreadPool.QueueUserWorkItem() with ThreadPool.UnsafeQueueUserWorkItem() since OpenSim does not use Code Access Security sandboxing
|
|\ \
| | |
| | |
| | | |
into prioritization
|
| | | |
|
| | | |
|
|\ \ \
| | |/
| |/|
| | | |
prioritization
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
debug pane. This will still use DEBUG_CHANNEL currently, since it is not
fully implemented. This also removes the "Compiled successfully" message
that pops up in the viewer.
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| | |
| | |
| | | |
into prioritization
|