summaryrefslogtreecommitdiff
path: root/indra/newview/llviewercontrol.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-01-13 15:34:59 +0200
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-01-13 15:43:37 +0200
commit1ecb7186fb33e8cf2d9598e5c3c3d0a8041ab1d2 (patch)
tree7f661d27aaafa167d9b17c8e747f7408704eb96c /indra/newview/llviewercontrol.cpp
parent005b29b89f7a3cbe54d37b53c0061ee36c80d871 (diff)
SL-18973 Wait a bit after viewer regains focus before engaging the Preferred frame rate
Diffstat (limited to 'indra/newview/llviewercontrol.cpp')
-rw-r--r--indra/newview/llviewercontrol.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp
index 407aacdd99..0bade93c45 100644
--- a/indra/newview/llviewercontrol.cpp
+++ b/indra/newview/llviewercontrol.cpp
@@ -267,6 +267,7 @@ static bool handleAnisotropicChanged(const LLSD& newvalue)
static bool handleVSyncChanged(const LLSD& newvalue)
{
+ LLPerfStats::tunables.vsyncEnabled = newvalue.asBoolean();
gViewerWindow->getWindow()->toggleVSync(newvalue.asBoolean());
return true;