summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-10-31 16:46:28 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-10-31 16:46:28 +0200
commitf5b447bc4781d518fbe7841eea6cadd909b57a0a (patch)
treec05cfa849c0cbb5b87d0a4a6986210bc85e22f2f /indra/newview
parent0aabcf9a856cf32f6f2c9df472a9b491059b19ce (diff)
SL-18495 Enable autofps for new users by default
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/app_settings/settings.xml4
-rw-r--r--indra/newview/llstartup.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 657119ae53..292eef64b9 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -16742,14 +16742,14 @@
<key>Type</key>
<string>U32</string>
<key>Value</key>
- <integer>25</integer>
+ <integer>30</integer>
</map>
<key>AutoTuneFPS</key>
<map>
<key>Comment</key>
<string>Allow the viewer to adjust your settings to achieve target FPS</string>
<key>Persist</key>
- <integer>0</integer>
+ <integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index e66fefdd1a..87fba5ec1b 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -2254,6 +2254,10 @@ bool idle_startup()
if (STATE_CLEANUP == LLStartUp::getStartupState())
{
+ if (gAgent.isFirstLogin())
+ {
+ gSavedSettings.setBOOL("AutoTuneFPS", TRUE);
+ }
set_startup_status(1.0, "", "");
display_startup();