aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-06-13 21:55:31 -0700
committerMcCabe Maxsted2009-06-13 21:55:31 -0700
commit0280f6e63524bf8f4bc9741fb8086590a278accd (patch)
tree1cbbccea711e2be4d43878f3e31a16616926c8cf /linden/indra/newview
parentApplied Aimee's patch for VWR-4106: Mini-map beacon icon doesn't display corr... (diff)
downloadmeta-impy-0280f6e63524bf8f4bc9741fb8086590a278accd.zip
meta-impy-0280f6e63524bf8f4bc9741fb8086590a278accd.tar.gz
meta-impy-0280f6e63524bf8f4bc9741fb8086590a278accd.tar.bz2
meta-impy-0280f6e63524bf8f4bc9741fb8086590a278accd.tar.xz
Applied Aimee's patch for VWR-12631: setting to adjust the maximum size of objects displayed on the minimap (MiniMapPrimMaxRadius)
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llnetmap.cpp6
-rw-r--r--linden/indra/newview/llviewerobjectlist.cpp4
3 files changed, 16 insertions, 5 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index f23daee..774a13b 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -4808,6 +4808,17 @@
4808 <key>Value</key> 4808 <key>Value</key>
4809 <integer>1</integer> 4809 <integer>1</integer>
4810 </map> 4810 </map>
4811 <key>MiniMapPrimMaxRadius</key>
4812 <map>
4813 <key>Comment</key>
4814 <string>Radius of the largest prim to show on the MiniMap. Increasing beyond 256 may cause client lag.</string>
4815 <key>Persist</key>
4816 <integer>1</integer>
4817 <key>Type</key>
4818 <string>F32</string>
4819 <key>Value</key>
4820 <real>256.0</real>
4821 </map>
4811 <key>MiniMapRotate</key> 4822 <key>MiniMapRotate</key>
4812 <map> 4823 <map>
4813 <key>Comment</key> 4824 <key>Comment</key>
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index 9c607e0..6fa6745 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -626,11 +626,7 @@ void LLNetMap::renderScaledPointGlobal( const LLVector3d& pos, const LLColor4U &
626 LLVector3 local_pos; 626 LLVector3 local_pos;
627 local_pos.setVec( pos - mObjectImageCenterGlobal ); 627 local_pos.setVec( pos - mObjectImageCenterGlobal );
628 628
629 // DEV-17370 - megaprims of size > 4096 cause lag. (go figger.) 629 S32 diameter_pixels = llround(2 * radius_meters * mObjectMapTPM);
630 const F32 MAX_RADIUS = 256.0f;
631 F32 radius_clamped = llmin(radius_meters, MAX_RADIUS);
632
633 S32 diameter_pixels = llround(2 * radius_clamped * mObjectMapTPM);
634 renderPoint( local_pos, color, diameter_pixels ); 630 renderPoint( local_pos, color, diameter_pixels );
635} 631}
636 632
diff --git a/linden/indra/newview/llviewerobjectlist.cpp b/linden/indra/newview/llviewerobjectlist.cpp
index 78398bb..9ccbf99 100644
--- a/linden/indra/newview/llviewerobjectlist.cpp
+++ b/linden/indra/newview/llviewerobjectlist.cpp
@@ -1030,6 +1030,7 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)
1030 LLColor4 group_own_below_water_color = 1030 LLColor4 group_own_below_water_color =
1031 gColors.getColor( "NetMapGroupOwnBelowWater" ); 1031 gColors.getColor( "NetMapGroupOwnBelowWater" );
1032 1032
1033 F32 max_radius = gSavedSettings.getF32("MiniMapPrimMaxRadius");
1033 1034
1034 for (S32 i = 0; i < mMapObjects.count(); i++) 1035 for (S32 i = 0; i < mMapObjects.count(); i++)
1035 { 1036 {
@@ -1045,6 +1046,9 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)
1045 1046
1046 F32 approx_radius = (scale.mV[VX] + scale.mV[VY]) * 0.5f * 0.5f * 1.3f; // 1.3 is a fudge 1047 F32 approx_radius = (scale.mV[VX] + scale.mV[VY]) * 0.5f * 0.5f * 1.3f; // 1.3 is a fudge
1047 1048
1049 // DEV-17370 - megaprims of size > 4096 cause lag. (go figger.)
1050 approx_radius = llmin(approx_radius, max_radius);
1051
1048 LLColor4U color = above_water_color; 1052 LLColor4U color = above_water_color;
1049 if( objectp->permYouOwner() ) 1053 if( objectp->permYouOwner() )
1050 { 1054 {