* Re-Adding Scene TimeDilation to Object Update Packets.

* Added Calculating Time Dilation in the OdePlubin
* When multiple object updates are stuffed into one packet, average the time dilation between them as a compromise.
* Time Dilation on the update is calculated when the EntityUpdate object is created.  The pre-calc-ed TD is stored in the Entity update and used when it goes out on the wire.  Previously, it was 1.0 all the time. The time dilation is tied to when the update is created, not when the update is sent.
This commit is contained in:
Teravus Ovares (Dan Olivares)
2010-12-23 03:30:09 -05:00
parent 862da9a55f
commit 46db73b62b
3 changed files with 34 additions and 7 deletions

View File

@@ -574,11 +574,13 @@ namespace OpenSim.Framework
{
public ISceneEntity Entity;
public PrimUpdateFlags Flags;
public float TimeDilation;
public EntityUpdate(ISceneEntity entity, PrimUpdateFlags flags)
public EntityUpdate(ISceneEntity entity, PrimUpdateFlags flags, float timedilation)
{
Entity = entity;
Flags = flags;
TimeDilation = timedilation;
}
}