adjust createAgent delay on childs creation. Beeing bad, it should be high
enougth to reasonable account for grid and region lag spikesavinationmerge
parent
117d563fd4
commit
1314a02a95
|
@ -2097,15 +2097,21 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
|
|
||||||
string reason = String.Empty;
|
string reason = String.Empty;
|
||||||
|
|
||||||
|
int ts = Util.EnvironmentTickCount();
|
||||||
bool regionAccepted = scene.SimulationService.CreateAgent(reg, a, (uint)TeleportFlags.Default, out reason);
|
bool regionAccepted = scene.SimulationService.CreateAgent(reg, a, (uint)TeleportFlags.Default, out reason);
|
||||||
|
|
||||||
|
// m_log.DebugFormat("[ENTITY TRANSFER MODULE] SimulationService.CreateAgent took {0}ms",Util.EnvironmentTickCountSubtract(ts));
|
||||||
|
|
||||||
if (regionAccepted && newAgent)
|
if (regionAccepted && newAgent)
|
||||||
{
|
{
|
||||||
// give some time for createAgent finish possible async tasks
|
// give time for createAgent to finish, since it is async and does grid services access
|
||||||
// does nothing usefull... out
|
|
||||||
// int dly = 100 - sp.ControllingClient.PingTimeMS;
|
// int dly = 500 - sp.ControllingClient.PingTimeMS;
|
||||||
// if (dly > 20)
|
// if (dly > 20)
|
||||||
// Thread.Sleep(dly);
|
// Thread.Sleep(dly);
|
||||||
|
// ping is unrealiable after a login :(, just delay a fair amount
|
||||||
|
|
||||||
|
Thread.Sleep(500);
|
||||||
|
|
||||||
if (m_eqModule != null)
|
if (m_eqModule != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue