Yengine changed position and shape events can bt throttled by mineventdelay

0.9.1.0-post-fixes
UbitUmarov 2019-02-21 22:05:38 +00:00
parent 16596b6ad0
commit b7507b70bc
1 changed files with 15 additions and 0 deletions

View File

@ -106,6 +106,21 @@ namespace OpenSim.Region.ScriptEngine.Yengine
m_nextEventTime = now + m_minEventDelay;
break;
}
case ScriptEventCode.changed:
{
const int canignore = ~(CHANGED_SCALE | CHANGED_POSITION);
int change = (int)evt.Params[0];
if(change == 0) // what?
return;
if((change & canignore) == 0)
{
double now = Util.GetTimeStamp();
if (now < m_nextEventTime)
return;
m_nextEventTime = now + m_minEventDelay;
}
break;
}
default:
break;
}