aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-03-04 23:55:41 -0700
committerJacek Antonelli2010-03-11 19:15:18 -0600
commit0ab52f3e9632c2f61c504837274273bed0d22c00 (patch)
tree93e745a738cdc8f69139386d1ac282d6cd0dd2e3 /linden/indra/newview/llstartup.cpp
parentAdded menus from BetterNotecardFloater Cool Viewer patch. (diff)
downloadmeta-impy-0ab52f3e9632c2f61c504837274273bed0d22c00.zip
meta-impy-0ab52f3e9632c2f61c504837274273bed0d22c00.tar.gz
meta-impy-0ab52f3e9632c2f61c504837274273bed0d22c00.tar.bz2
meta-impy-0ab52f3e9632c2f61c504837274273bed0d22c00.tar.xz
Applied Speed Rez v2 patch from Cool Viewer.
Dynamically changes draw distance after teleporting. Patch by Henri Beauchamp. (slviewer-0-v12350-SpeedRez_v2.patch)
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llstartup.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index 7a7e023..11bd87b 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -2636,6 +2636,16 @@ bool idle_startup()
2636 LLStartUp::setStartupState( STATE_STARTED ); 2636 LLStartUp::setStartupState( STATE_STARTED );
2637 LLStartUp::setStartedOnce(true); 2637 LLStartUp::setStartedOnce(true);
2638 2638
2639 if (gSavedSettings.getBOOL("SpeedRez"))
2640 {
2641 // Speed up rezzing if requested.
2642 F32 dist1 = gSavedSettings.getF32("RenderFarClip");
2643 F32 dist2 = gSavedSettings.getF32("SavedRenderFarClip");
2644 gSavedDrawDistance = (dist1 >= dist2 ? dist1 : dist2);
2645 gSavedSettings.setF32("SavedRenderFarClip", gSavedDrawDistance);
2646 gSavedSettings.setF32("RenderFarClip", 32.0f);
2647 }
2648
2639 // Unmute audio if desired and setup volumes. 2649 // Unmute audio if desired and setup volumes.
2640 // Unmute audio if desired and setup volumes. 2650 // Unmute audio if desired and setup volumes.
2641 // This is a not-uncommon crash site, so surround it with 2651 // This is a not-uncommon crash site, so surround it with