diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llfasttimerview.cpp | 8 | ||||
| -rw-r--r-- | indra/newview/llfloaterjoystick.cpp | 22 | ||||
| -rw-r--r-- | indra/newview/llvosky.cpp | 2 | 
3 files changed, 19 insertions, 13 deletions
diff --git a/indra/newview/llfasttimerview.cpp b/indra/newview/llfasttimerview.cpp index 56e5710726..32ed662548 100644 --- a/indra/newview/llfasttimerview.cpp +++ b/indra/newview/llfasttimerview.cpp @@ -514,7 +514,7 @@ void LLFastTimerView::draw()  			else  			{  				ms = LLUnit<LLUnits::Seconds, F64>(frame_recording.getPeriodMean(*idp)); -				calls = frame_recording.getPeriodMean(idp->callCount()); +				calls = (S32)frame_recording.getPeriodMean((F32)idp->callCount());  			}  			if (mDisplayCalls) @@ -728,7 +728,7 @@ void LLFastTimerView::draw()  				}  				else if (prev_id && get_depth(prev_id) < get_depth(idp))  				{ -					U64 sublevelticks = 0; +					F64 sublevelticks = 0;  					for (TimeBlock::child_const_iter it = prev_id->beginChildren();  						it != prev_id->endChildren(); @@ -934,7 +934,7 @@ void LLFastTimerView::draw()  			max_time = llmax(LLUnit<LLUnits::Microseconds, F32>(1), LLUnit<LLUnits::Microseconds, F32>(cur_max));  		} -		max_calls = lerp((F32)max_calls, (F32) cur_max_calls, LLCriticalDamp::getInterpolant(0.1f)); +		max_calls = llround(lerp((F32)max_calls, (F32) cur_max_calls, LLCriticalDamp::getInterpolant(0.1f)));  		if (llabs((S32)(max_calls - cur_max_calls)) <= 1)  		{  			max_calls = cur_max_calls; @@ -1011,7 +1011,7 @@ void LLFastTimerView::draw()  			}  			LLUnit<LLUnits::Milliseconds, F32> ms = ticks; -			timer_stat += llformat("%.1f",ms); +			timer_stat += llformat("%.1f",ms.value());  			if (idp->getCollapsed())  			{ diff --git a/indra/newview/llfloaterjoystick.cpp b/indra/newview/llfloaterjoystick.cpp index e2813a8272..ab7fc1cf3f 100644 --- a/indra/newview/llfloaterjoystick.cpp +++ b/indra/newview/llfloaterjoystick.cpp @@ -42,14 +42,20 @@  #include "llviewerjoystick.h"  #include "llcheckboxctrl.h" -static LLTrace::Measurement<> sJoystickAxes[6] =  +static LLTrace::Measurement<> sJoystickAxis1("Joystick axis 1"), +								sJoystickAxis2("Joystick axis 2"), +								sJoystickAxis3("Joystick axis 3"), +								sJoystickAxis4("Joystick axis 4"), +								sJoystickAxis5("Joystick axis 5"), +								sJoystickAxis6("Joystick axis 6"); +static LLTrace::Measurement<>* sJoystickAxes[6] =   { -	LLTrace::Measurement<>("Joystick axis 1"), -	LLTrace::Measurement<>("Joystick axis 2"), -	LLTrace::Measurement<>("Joystick axis 3"), -	LLTrace::Measurement<>("Joystick axis 4"), -	LLTrace::Measurement<>("Joystick axis 5"), -	LLTrace::Measurement<>("Joystick axis 6") +	&sJoystickAxis1, +	&sJoystickAxis2, +	&sJoystickAxis3, +	&sJoystickAxis4, +	&sJoystickAxis5, +	&sJoystickAxis6  };  LLFloaterJoystick::LLFloaterJoystick(const LLSD& data) @@ -71,7 +77,7 @@ void LLFloaterJoystick::draw()  	for (U32 i = 0; i < 6; i++)  	{  		F32 value = joystick->getJoystickAxis(i); -		sJoystickAxes[i].sample(value * gFrameIntervalSeconds.value()); +		sJoystickAxes[i]->sample(value * gFrameIntervalSeconds.value());  		if (mAxisStatsBar[i])  		{  			F32 minbar, maxbar; diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index 31358df85f..82de61cda2 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -2146,7 +2146,7 @@ void LLVOSky::updateFog(const F32 distance)  		// get the water param manager variables  		float water_fog_density = LLWaterParamManager::getInstance()->getFogDensity(); -		LLColor4 water_fog_color = LLDrawPoolWater::sWaterFogColor.mV; +		LLColor4 water_fog_color(LLDrawPoolWater::sWaterFogColor.mV);  		// adjust the color based on depth.  We're doing linear approximations  		float depth_scale = gSavedSettings.getF32("WaterGLFogDepthScale");  | 
