mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
speeup time update a bit ( this will be a conf option)
This commit is contained in:
@@ -992,11 +992,13 @@ namespace OpenSim.Framework
|
||||
east_angle = Utils.TWO_PI + east_angle;
|
||||
|
||||
// this is just a case on one example daycyles, as wrong as any
|
||||
/*
|
||||
if (Utils.ApproxEqual(east_angle, Utils.PI, 1e-4f))
|
||||
{
|
||||
east_angle = 0;
|
||||
sun_angle = Utils.PI - sun_angle;
|
||||
}
|
||||
*/
|
||||
if (Math.Abs(sun_angle) < 1e-6)
|
||||
sun_angle = 0;
|
||||
else if (sun_angle < 0)
|
||||
|
||||
@@ -741,7 +741,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
||||
private void UpdateEnvTime()
|
||||
{
|
||||
double now = Util.GetTimeStamp();
|
||||
if (now - m_framets < 10.0)
|
||||
if (now - m_framets < 2.5) // this will be a conf option
|
||||
return;
|
||||
|
||||
m_framets = now;
|
||||
|
||||
Reference in New Issue
Block a user