* Added time dilation property to Scene

* Default Terrain algorithm now produces something slightly less mountainous.
* Fixed lolcat
This commit is contained in:
Adam Frisby
2007-09-24 16:39:26 +00:00
parent b82b8b8f4f
commit 4e01aa4879
3 changed files with 15 additions and 0 deletions

View File

@@ -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;
}
}