speeup time update a bit ( this will be a conf option)
parent
70f867a518
commit
46dce3cedb
|
@ -992,11 +992,13 @@ namespace OpenSim.Framework
|
||||||
east_angle = Utils.TWO_PI + east_angle;
|
east_angle = Utils.TWO_PI + east_angle;
|
||||||
|
|
||||||
// this is just a case on one example daycyles, as wrong as any
|
// this is just a case on one example daycyles, as wrong as any
|
||||||
|
/*
|
||||||
if (Utils.ApproxEqual(east_angle, Utils.PI, 1e-4f))
|
if (Utils.ApproxEqual(east_angle, Utils.PI, 1e-4f))
|
||||||
{
|
{
|
||||||
east_angle = 0;
|
east_angle = 0;
|
||||||
sun_angle = Utils.PI - sun_angle;
|
sun_angle = Utils.PI - sun_angle;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if (Math.Abs(sun_angle) < 1e-6)
|
if (Math.Abs(sun_angle) < 1e-6)
|
||||||
sun_angle = 0;
|
sun_angle = 0;
|
||||||
else if (sun_angle < 0)
|
else if (sun_angle < 0)
|
||||||
|
|
|
@ -741,7 +741,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
||||||
private void UpdateEnvTime()
|
private void UpdateEnvTime()
|
||||||
{
|
{
|
||||||
double now = Util.GetTimeStamp();
|
double now = Util.GetTimeStamp();
|
||||||
if (now - m_framets < 10.0)
|
if (now - m_framets < 2.5) // this will be a conf option
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_framets = now;
|
m_framets = now;
|
||||||
|
|
Loading…
Reference in New Issue