From 46dce3cedb195bcfa2a1ccf8de29cf9795879709 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 16 Jun 2020 16:12:14 +0100 Subject: [PATCH] speeup time update a bit ( this will be a conf option) --- OpenSim/Framework/ViewerEnviroment.cs | 2 ++ .../Region/CoreModules/World/LightShare/EnvironmentModule.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/ViewerEnviroment.cs b/OpenSim/Framework/ViewerEnviroment.cs index e9e5777e10..3c5284c5e5 100644 --- a/OpenSim/Framework/ViewerEnviroment.cs +++ b/OpenSim/Framework/ViewerEnviroment.cs @@ -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) diff --git a/OpenSim/Region/CoreModules/World/LightShare/EnvironmentModule.cs b/OpenSim/Region/CoreModules/World/LightShare/EnvironmentModule.cs index 4ab4fd0fca..99da3a7606 100644 --- a/OpenSim/Region/CoreModules/World/LightShare/EnvironmentModule.cs +++ b/OpenSim/Region/CoreModules/World/LightShare/EnvironmentModule.cs @@ -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;