From 1ecb7186fb33e8cf2d9598e5c3c3d0a8041ab1d2 Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Fri, 13 Jan 2023 15:34:59 +0200 Subject: SL-18973 Wait a bit after viewer regains focus before engaging the Preferred frame rate --- indra/newview/llperfstats.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/newview/llperfstats.h') diff --git a/indra/newview/llperfstats.h b/indra/newview/llperfstats.h index 7aa3e1491c..f00a28703c 100644 --- a/indra/newview/llperfstats.h +++ b/indra/newview/llperfstats.h @@ -61,6 +61,7 @@ namespace LLPerfStats extern std::atomic renderAvatarMaxART_ns; extern bool belowTargetFPS; extern U32 lastGlobalPrefChange; + extern U32 lastSleepedFrame; extern std::mutex bufferToggleLock; enum class ObjType_t{ @@ -133,6 +134,7 @@ namespace LLPerfStats U32 userTargetFPS{0}; F32 userARTCutoffSliderValue{0}; S32 userTargetReflections{0}; + bool vsyncEnabled{true}; void updateNonImposters(U32 nv){nonImpostors=nv; tuningFlag |= NonImpostors;}; void updateReflectionDetail(S32 nv){reflectionDetail=nv; tuningFlag |= ReflectionDetail;}; -- cgit v1.2.3