diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-01-18 17:14:06 +0200 |
|---|---|---|
| committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-01-18 17:14:06 +0200 |
| commit | cf2e153b7add9faefb3066051dbd971ab8f8dddb (patch) | |
| tree | 3a76ba421f149eb1c98f1fcc5c50e78a86e9ea1f /indra/newview/llperfstats.h | |
| parent | a7280281a1dc8c7ff1ec5729ff77dbc5e8eb8e67 (diff) | |
SL-18978 Avatars switch to/from impostored too quickly
Diffstat (limited to 'indra/newview/llperfstats.h')
| -rw-r--r-- | indra/newview/llperfstats.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llperfstats.h b/indra/newview/llperfstats.h index fb0b197f20..17d936483f 100644 --- a/indra/newview/llperfstats.h +++ b/indra/newview/llperfstats.h @@ -45,7 +45,7 @@ namespace LLPerfStats // Note if changing these, they should correspond with the log range of the correpsonding sliders static constexpr U64 ART_UNLIMITED_NANOS{50000000}; static constexpr U64 ART_MINIMUM_NANOS{100000}; - static constexpr U64 ART_MIN_ADJUST_UP_NANOS{20000}; + static constexpr U64 ART_MIN_ADJUST_UP_NANOS{5000}; static constexpr U64 ART_MIN_ADJUST_DOWN_NANOS{10000}; static constexpr F32 PREFERRED_DD{180}; @@ -62,6 +62,7 @@ namespace LLPerfStats extern bool belowTargetFPS; extern U32 lastGlobalPrefChange; extern U32 lastSleepedFrame; + extern U64 meanFrameTime; extern std::mutex bufferToggleLock; enum class ObjType_t{ @@ -203,7 +204,8 @@ namespace LLPerfStats StatsRecorder(); static int countNearbyAvatars(S32 distance); - static U64 getMeanTotalFrameTime(U64 tot_frame_time_raw); + static U64 getMeanTotalFrameTime(); + static void updateMeanFrameTime(U64 tot_frame_time_raw); // StatsArray is a uint64_t for each possible statistic type. using StatsArray = std::array<uint64_t, static_cast<size_t>(LLPerfStats::StatType_t::STATS_COUNT)>; using StatsMap = std::unordered_map<LLUUID, StatsArray, boost::hash<LLUUID>>; |
