mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Thank you, Teravus for: Solution for 'after using physical prim with MonoSqliteDataStore, the sim lags with constantly updating assets.". This mostly affects BulletX.
This commit is contained in:
@@ -579,7 +579,11 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
AddTerseUpdateToAllAvatars();
|
||||
ClearUpdateSchedule();
|
||||
ScheduleTerseUpdate();
|
||||
if ((ObjectFlags & (uint)LLObject.ObjectFlags.Physics) != 0)
|
||||
{
|
||||
// Only send the constant terse updates on physical objects!
|
||||
ScheduleTerseUpdate();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -125,8 +125,15 @@ namespace OpenSim.DataStore.MonoSqlite
|
||||
{
|
||||
foreach (SceneObjectPart prim in obj.Children.Values)
|
||||
{
|
||||
MainLog.Instance.Verbose("DATASTORE", "Adding obj: " + obj.UUID + " to region: " + regionUUID);
|
||||
addPrim(prim, obj.UUID, regionUUID);
|
||||
if ((prim.ObjectFlags & (uint)LLObject.ObjectFlags.Physics) == 0)
|
||||
{
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user