summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2025-06-27 15:55:22 -0400
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2025-06-27 15:55:22 -0400
commite2227b9a1aceabe87cf90e134789cf31798021bf (patch)
tree87533ee52a9b250c210ec83ef0ef07950d9ac189
parent15574431354e55059c4514fa51a7c78b90ed8b6e (diff)
Make sure to reset the metrics after the first calculation.
-rw-r--r--indra/newview/llviewerstats.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llviewerstats.cpp b/indra/newview/llviewerstats.cpp
index e5a347ecdd..822e3ad61a 100644
--- a/indra/newview/llviewerstats.cpp
+++ b/indra/newview/llviewerstats.cpp
@@ -348,10 +348,12 @@ void LLViewerStats::updateFrameStats(const F64Seconds time_diff)
ninety_fifth_percentile = mFrameTimes[ninety_fifth_index];
}
}
-
sample(LLStatViewer::FRAMETIME_99TH, ninety_ninth_percentile);
sample(LLStatViewer::FRAMETIME_95TH, ninety_fifth_percentile);
+ ninety_ninth_percentile = F64Seconds(0);
+ ninety_fifth_percentile = F64Seconds(0);
+ frame_time_stddev = F64Seconds(0);
if (mFrameTimesJitter.size() > 1)
{
F64Seconds mean(0);