diff options
author | Oz Linden <oz@lindenlab.com> | 2017-11-29 11:31:08 -0800 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2017-11-29 11:31:08 -0800 |
commit | a12e282cd473d5b7fc3e23fdd8fdfed11cc88864 (patch) | |
tree | cf07df2ae2219009bdc8337f4f9b4f1247fbd65d /indra/newview/llappviewer.cpp | |
parent | 28f3b032076929bf595c34ab10666930c7ea1464 (diff) | |
parent | 1693ccba58eef676df1f91e50627545ac35bb819 (diff) |
merge changes for 5.0.9-release
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 7e6caeba50..b20784f36b 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -693,7 +693,6 @@ LLAppViewer::LLAppViewer() mSavePerAccountSettings(false), // don't save settings on logout unless login succeeded. mQuitRequested(false), mLogoutRequestSent(false), - mYieldTime(-1), mLastAgentControlFlags(0), mLastAgentForceUpdate(0), mMainloopTimeout(NULL), @@ -1457,10 +1456,11 @@ bool LLAppViewer::frame() LL_RECORD_BLOCK_TIME(FTM_SLEEP); // yield some time to the os based on command line option - if(mYieldTime >= 0) + static LLCachedControl<S32> yield_time(gSavedSettings, "YieldTime", -1); + if(yield_time >= 0) { LL_RECORD_BLOCK_TIME(FTM_YIELD); - ms_sleep(mYieldTime); + ms_sleep(yield_time); } // yield cooperatively when not running as foreground window @@ -2752,8 +2752,6 @@ bool LLAppViewer::initConfiguration() } } - mYieldTime = gSavedSettings.getS32("YieldTime"); - // Display splash screen. Must be after above check for previous // crash as this dialog is always frontmost. |