mirror of
https://github.com/FirestormViewer/phoenix-firestorm.git
synced 2026-08-14 00:48:30 +00:00
Take median over longer period to avoid out-of-bounds warning on gcc
Not sure why this only complained today.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user