Thank you, Teravus for: Solution for 'after using physical prim with MonoSqliteDataStore, the sim lags with constantly updating assets.". This mostly affects BulletX.

afrisby
Charles Krinke 2007-11-05 04:33:06 +00:00
parent 76aa5b81b0
commit 7eff1572cb
2 changed files with 15 additions and 4 deletions

View File

@ -579,7 +579,11 @@ namespace OpenSim.Region.Environment.Scenes
{ {
AddTerseUpdateToAllAvatars(); AddTerseUpdateToAllAvatars();
ClearUpdateSchedule(); ClearUpdateSchedule();
ScheduleTerseUpdate(); if ((ObjectFlags & (uint)LLObject.ObjectFlags.Physics) != 0)
{
// Only send the constant terse updates on physical objects!
ScheduleTerseUpdate();
}
} }
else else
{ {

View File

@ -125,8 +125,15 @@ namespace OpenSim.DataStore.MonoSqlite
{ {
foreach (SceneObjectPart prim in obj.Children.Values) foreach (SceneObjectPart prim in obj.Children.Values)
{ {
MainLog.Instance.Verbose("DATASTORE", "Adding obj: " + obj.UUID + " to region: " + regionUUID); if ((prim.ObjectFlags & (uint)LLObject.ObjectFlags.Physics) == 0)
addPrim(prim, obj.UUID, regionUUID); {
MainLog.Instance.Verbose("DATASTORE", "Adding obj: " + obj.UUID + " to region: " + regionUUID);
addPrim(prim, obj.UUID, regionUUID);
}
else
{
MainLog.Instance.Verbose("DATASTORE", "Ignoring Physical obj: " + obj.UUID + " in region: " + regionUUID);
}
} }
} }
@ -1026,4 +1033,4 @@ namespace OpenSim.DataStore.MonoSqlite
} }
} }
} }
} }