mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* A hacky Top Scripts display. It isn't accurate as far as ms accounting, however you can use it to help find out what scripts are causing your simulator to cry.
* Access it from the Estate tools/Debug tab.
This commit is contained in:
@@ -90,6 +90,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// since the group's last persistent backup
|
||||
/// </summary>
|
||||
public bool HasGroupChanged = false;
|
||||
public float scriptScore = 0f;
|
||||
|
||||
|
||||
|
||||
@@ -959,6 +960,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public void AddScriptLPS(int count)
|
||||
{
|
||||
if (scriptScore + count >= float.MaxValue - count)
|
||||
scriptScore = 0;
|
||||
|
||||
scriptScore += (float)count;
|
||||
InnerScene d = m_scene.m_innerScene;
|
||||
d.AddToScriptLPS(count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user