From ce5dca5c568655adde2e86e8922c5bfeb40add4f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 6 Jan 2022 02:34:14 +0000 Subject: [PATCH] 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 --- .../ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index c30b8aae09..3897040aad 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -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))