From 4e01aa4879381a6b6230ea63b52c513656a2896f Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 24 Sep 2007 16:39:26 +0000 Subject: * Added time dilation property to Scene * Default Terrain algorithm now produces something slightly less mountainous. * Fixed lolcat --- OpenSim/Region/Environment/Scenes/Scene.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index fbda669..5849519 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -100,6 +100,8 @@ namespace OpenSim.Region.Environment.Scenes protected float m_timespan = 0.1f; protected DateTime m_lastupdate = DateTime.Now; + protected float m_timedilation = 1.0f; + private int m_update_physics = 1; private int m_update_entitymovement = 1; private int m_update_entities = 1; @@ -307,6 +309,8 @@ namespace OpenSim.Region.Environment.Scenes finally { updateLock.ReleaseMutex(); + + m_timedilation = m_timespan / (float)SinceLastFrame.TotalSeconds; m_lastupdate = DateTime.Now; } } -- cgit v1.1