diff options
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llcommon/lltracerecording.cpp | 2 | ||||
-rwxr-xr-x | indra/llui/llstatbar.cpp | 11 | ||||
-rwxr-xr-x | indra/newview/llfasttimerview.cpp | 16 |
3 files changed, 14 insertions, 15 deletions
diff --git a/indra/llcommon/lltracerecording.cpp b/indra/llcommon/lltracerecording.cpp index dbf6771e66..ce09c32db5 100644 --- a/indra/llcommon/lltracerecording.cpp +++ b/indra/llcommon/lltracerecording.cpp @@ -171,7 +171,7 @@ F64Seconds Recording::getSum(const StatType<TimeBlockAccumulator::SelfTimeFacet> update(); const TimeBlockAccumulator& accumulator = mBuffers->mStackTimers[stat.getIndex()]; const TimeBlockAccumulator* active_accumulator = mActiveBuffers ? &mActiveBuffers->mStackTimers[stat.getIndex()] : NULL; - return F64Seconds((F64)(accumulator.mSelfTimeCounter) + (F64)(active_accumulator ? active_accumulator->mSelfTimeCounter : 0) / (F64)LLTrace::BlockTimer::countsPerSecond()); + return F64Seconds(((F64)(accumulator.mSelfTimeCounter) + (F64)(active_accumulator ? active_accumulator->mSelfTimeCounter : 0)) / (F64)LLTrace::BlockTimer::countsPerSecond()); } diff --git a/indra/llui/llstatbar.cpp b/indra/llui/llstatbar.cpp index 24256c3193..2b325c27f0 100755 --- a/indra/llui/llstatbar.cpp +++ b/indra/llui/llstatbar.cpp @@ -327,6 +327,7 @@ void LLStatBar::draw() ? mNumHistoryFrames : mNumShortHistoryFrames; S32 num_rapid_changes = 0; + S32 decimal_digits = mDecimalDigits; switch(mStatType) { @@ -374,6 +375,10 @@ void LLStatBar::draw() display_value = current; // always display current value, don't rate limit mLastDisplayValue = current; + if (is_approx_equal((F32)(S32)display_value, display_value)) + { + decimal_digits = 0; + } } } break; @@ -412,12 +417,6 @@ void LLStatBar::draw() mCurMaxBar = LLSmoothInterpolation::lerp(mCurMaxBar, mMaxBar, 0.05f); mCurMinBar = LLSmoothInterpolation::lerp(mCurMinBar, mMinBar, 0.05f); - S32 decimal_digits = mDecimalDigits; - if (is_approx_equal((F32)(S32)display_value, display_value)) - { - decimal_digits = 0; - } - // rate limited updates if (mLastDisplayValueTimer.getElapsedTimeF32() < MEAN_VALUE_UPDATE_TIME) { diff --git a/indra/newview/llfasttimerview.cpp b/indra/newview/llfasttimerview.cpp index bd92b4b6ca..768f7c1a03 100755 --- a/indra/newview/llfasttimerview.cpp +++ b/indra/newview/llfasttimerview.cpp @@ -961,10 +961,10 @@ void LLFastTimerView::printLineStats() first = false; legend_stat += idp->getName(); - if (idp->getTreeNode().mCollapsed) - { - it.skipDescendants(); - } + //if (idp->getTreeNode().mCollapsed) + //{ + // it.skipDescendants(); + //} } LL_INFOS() << legend_stat << LL_ENDL; @@ -995,10 +995,10 @@ void LLFastTimerView::printLineStats() timer_stat += llformat("%.1f",ms.value()); - if (idp->getTreeNode().mCollapsed) - { - it.skipDescendants(); - } + //if (idp->getTreeNode().mCollapsed) + //{ + // it.skipDescendants(); + //} } LL_INFOS() << timer_stat << LL_ENDL; mStatsIndex = -1; |