diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-11-09 14:42:27 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-11-09 14:42:27 +0200 |
commit | 72b1cfc76b6deda8771935b086f040b887ffe804 (patch) | |
tree | fc231adf0f05348a5e935769ce6f37e37e8f7b58 /indra/newview/llperfstats.h | |
parent | af675bbe6311f712738976dc35d89061bff35962 (diff) |
SL-18586 FIXED Crash when opening 360 snapshot
Diffstat (limited to 'indra/newview/llperfstats.h')
-rw-r--r-- | indra/newview/llperfstats.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llperfstats.h b/indra/newview/llperfstats.h index 961594f18c..ac44afe5db 100644 --- a/indra/newview/llperfstats.h +++ b/indra/newview/llperfstats.h @@ -55,6 +55,8 @@ namespace LLPerfStats static constexpr U32 TUNE_AVATARS_ONLY{0}; static constexpr U32 TUNE_SCENE_AND_AVATARS{1}; + extern F64 cpu_hertz; + extern std::atomic<int64_t> tunedAvatars; extern std::atomic<U64> renderAvatarMaxART_ns; extern bool belowTargetFPS; @@ -398,9 +400,9 @@ namespace LLPerfStats }; - inline double raw_to_ns(U64 raw) { return (static_cast<double>(raw) * 1000000000.0) / (F64)LLTrace::BlockTimer::countsPerSecond(); }; - inline double raw_to_us(U64 raw) { return (static_cast<double>(raw) * 1000000.0) / (F64)LLTrace::BlockTimer::countsPerSecond(); }; - inline double raw_to_ms(U64 raw) { return (static_cast<double>(raw) * 1000.0) / (F64)LLTrace::BlockTimer::countsPerSecond(); }; + inline double raw_to_ns(U64 raw) { return (static_cast<double>(raw) * 1000000000.0) / LLPerfStats::cpu_hertz; }; + inline double raw_to_us(U64 raw) { return (static_cast<double>(raw) * 1000000.0) / LLPerfStats::cpu_hertz; }; + inline double raw_to_ms(U64 raw) { return (static_cast<double>(raw) * 1000.0) / LLPerfStats::cpu_hertz; }; using RecordSceneTime = RecordTime<ObjType_t::OT_GENERAL>; using RecordAvatarTime = RecordTime<ObjType_t::OT_AVATAR>; |