revert the slowdown of osMessageObject. Also reduce the slowdown osMessageAttachments to (100 + 10 *NumberTargetedPrims) miliseconds. Some action games shown a bit of visible negative impact, so lets test

This commit is contained in:
UbitUmarov
2022-01-06 02:34:14 +00:00
parent 2e6790d164
commit ce5dca5c56

View File

@@ -2139,7 +2139,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
MessageObject(objUUID, message);
ScriptSleep(25); // mostly a thread yield
//ScriptSleep(25); // mostly a thread yield
}
private void MessageObject(UUID objUUID, string message)
@@ -4409,7 +4409,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
UUID hostCreatorID = m_host.CreatorID;
UUID itemCreatorID = m_item.CreatorID;
int penalty = 200;
//int penalty = 200;
int penalty = 100;
foreach (SceneObjectGroup sog in attachments)
{
if(sog.IsDeleted || sog.inTransit || ((sog.ScriptEvents & scriptEvents.dataserver) == 0))