speeup time update a bit ( this will be a conf option)

master
UbitUmarov 2020-06-16 16:12:14 +01:00
parent 70f867a518
commit 46dce3cedb
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

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