Skip to content
Snippets Groups Projects
Commit 65a130c3 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Hot setting and misc opt

parent 5c1270ef
No related branches found
No related tags found
No related merge requests found
...@@ -121,9 +121,9 @@ void LLFloaterJoystick::draw() ...@@ -121,9 +121,9 @@ void LLFloaterJoystick::draw()
{ {
F32 minbar, maxbar; F32 minbar, maxbar;
mAxisStatsBar[i]->getRange(minbar, maxbar); mAxisStatsBar[i]->getRange(minbar, maxbar);
if (llabs(value) > maxbar) F32 range = llabs(value);
if (range > maxbar)
{ {
F32 range = llabs(value);
mAxisStatsBar[i]->setRange(-range, range); mAxisStatsBar[i]->setRange(-range, range);
} }
} }
......
...@@ -625,7 +625,8 @@ void LLGLTexMemBar::draw() ...@@ -625,7 +625,8 @@ void LLGLTexMemBar::draw()
&x_right, FALSE); &x_right, FALSE);
F32Kilobits bandwidth(LLAppViewer::getTextureFetch()->getTextureBandwidth()); F32Kilobits bandwidth(LLAppViewer::getTextureFetch()->getTextureBandwidth());
F32Kilobits max_bandwidth(gSavedSettings.getF32("ThrottleBandwidthKBPS")); static LLCachedControl<F32> band_width(gSavedSettings,"ThrottleBandwidthKBPS", 3000.0f);
F32Kilobits max_bandwidth(band_width());
color = bandwidth > max_bandwidth ? LLColor4::red : bandwidth > max_bandwidth*.75f ? LLColor4::yellow : text_color; color = bandwidth > max_bandwidth ? LLColor4::red : bandwidth > max_bandwidth*.75f ? LLColor4::yellow : text_color;
color[VALPHA] = text_color[VALPHA]; color[VALPHA] = text_color[VALPHA];
text = llformat("BW:%.0f/%.0f",bandwidth.value(), max_bandwidth.value()); text = llformat("BW:%.0f/%.0f",bandwidth.value(), max_bandwidth.value());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment