From 77bdbf965f9f2d86bc4d9dfcf24a671fc9181e57 Mon Sep 17 00:00:00 2001 From: Beq Date: Wed, 1 Oct 2025 17:41:29 +0100 Subject: [PATCH] Take median over longer period to avoid out-of-bounds warning on gcc Not sure why this only complained today. --- indra/newview/lloutfitslist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp index f81bc78ed0..246a9ab626 100644 --- a/indra/newview/lloutfitslist.cpp +++ b/indra/newview/lloutfitslist.cpp @@ -1171,7 +1171,7 @@ void LLOutfitListBase::onIdleRefreshList() F64 MAX_TIME = 0.05f; constexpr F64 min_time = 0.001f; constexpr F64 threshold_fps = 30.0; - const auto current_fps = LLTrace::get_frame_recording().getPeriodMedianPerSec(LLStatViewer::FPS, 1); + const auto current_fps = LLTrace::get_frame_recording().getPeriodMedianPerSec(LLStatViewer::FPS,10); if (current_fps < threshold_fps) { MAX_TIME = min_time + (current_fps / threshold_fps) * (MAX_TIME - min_time);