summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorVir Linden <vir@lindenlab.com>2021-11-10 17:31:47 +0000
committerVir Linden <vir@lindenlab.com>2021-11-10 17:31:47 +0000
commitd0b2395b8914218d211bb97b098092b63e375cd4 (patch)
tree56aa1f9bea3ae94faa3e2413b0bb9beb6fc60355 /indra
parent4d0010d1fcb22ce0672d2667d73f5a612c600e14 (diff)
parentd3b8f823fa48a6f7d15d569b9e554e25c97075f6 (diff)
Merged DRTVWR-546 into SL-16329
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewercontrol.cpp2
-rw-r--r--indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml24
2 files changed, 14 insertions, 12 deletions
diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp
index 3e7459ee8a..0e64d7152a 100644
--- a/indra/newview/llviewercontrol.cpp
+++ b/indra/newview/llviewercontrol.cpp
@@ -243,7 +243,9 @@ static bool handleAnisotropicChanged(const LLSD& newvalue)
static bool handleVSyncChanged(const LLSD& newvalue)
{
+#if LL_WINDOWS
gViewerWindow->getWindow()->toggleVSync(newvalue.asBoolean());
+#endif
return true;
}
diff --git a/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml b/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml
index cba75e8ea7..4f355cce00 100644
--- a/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml
+++ b/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml
@@ -102,6 +102,18 @@
Low
</text>
+ <check_box
+ control_name="RenderVSyncEnable"
+ height="16"
+ initial_value="true"
+ label="Enable VSync"
+ layout="topleft"
+ left="30"
+ top_delta="16"
+ name="vsync"
+ tool_tip="Synchronizes the frame rate to the refresh rate of the monitor, which results in smooth performance."
+ width="315" />
+
<text
type="string"
length="1"
@@ -334,18 +346,6 @@
width="256" />
<check_box
- control_name="RenderVSyncEnable"
- height="16"
- initial_value="true"
- label="Enable VSync"
- layout="topleft"
- left="30"
- top_delta="16"
- name="vsync"
- tool_tip="Synchronizes the frame rate to the refresh rate of the monitor, which results in smooth performance."
- width="315" />
-
- <check_box
control_name="RenderCompressTextures"
height="16"
initial_value="true"