When a client connects to a scene, send other avatar appearance data asynchronously to reduce hold up in the IN UDP packet processing loop.
This is already being done for the initial object data send.iar_mods
parent
f61e54892f
commit
54360dd20e
|
@ -2504,6 +2504,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
}
|
||||
|
||||
public void SendInitialDataToMe()
|
||||
{
|
||||
// Send all scene object to the new client
|
||||
Util.FireAndForget(delegate
|
||||
{
|
||||
// we created a new ScenePresence (a new child agent) in a fresh region.
|
||||
// Request info about all the (root) agents in this region
|
||||
|
@ -2511,9 +2514,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
SendOtherAgentsAvatarDataToMe();
|
||||
SendOtherAgentsAppearanceToMe();
|
||||
|
||||
// Send all scene object to the new client
|
||||
Util.FireAndForget(delegate
|
||||
{
|
||||
EntityBase[] entities = Scene.Entities.GetEntities();
|
||||
foreach(EntityBase e in entities)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue